This project has been archived by its maintainers, and is no longer receiving any updates.
Sudoku Manager
Description
This package is made for easy sudoku generation and solving. Using the main Sudoku class, you'll easily be able to generate random sudokus (with a difficulty setting), load existing sudokus from different formats, and solve those sudokus. The Sudoku class has attributes dedicated to performance and backtracing, allowing you to study its behavior.
What it contains
The module contains 3 classes:
- Sudoku: this is the main class you'll be using. It represents a sudoku grid.
- Area: An area represents either a row, a column, or a square in a sudoku grid. It contains Cell instances, and is used to easily check "which values can be written"
- Cell: A single cell in a sudoku grid. There are 81 in a 9x9 sudoku, and each Cell is associated with 3 Area instances (1 row, 1 column, 1 square)
Note that :
- A Sudoku instance is made of 27 Area instances: 9 rows, 9 columns, and 9 squares
- A Sudoku instance is made of 81 Cell instances
- An Area instance is made of 9 Cell instances
- Each Cell instance is stored into 3 areas (1 row, 1 column, and 1 square)
How it works
- To install the module, use
pip install sudoku-manager - To import the module, use
import sudoku_manager - It is likely you will only use the Sudoku class. You can import it using
from sudoku_manager.sudoku import Sudoku - To generate a sudoku: simply call the
Sudoku.generate_grid()method with the correct settings. It will either output a JSON or return a grid. - To solve a sudoku: create a Sudoku instance (either from the normal constructor or a classmethod) and use the
.solve()method to solve it.
Metadata
Release files for sudoku-manager 1.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| sudoku_manager-1.0.6.tar.gz | 9.6 kB | Without provenance | Details for sudoku_manager-1.0.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| sudoku_manager-1.0.6-py3-none-any.whl | Python 3 | none | any | Details for sudoku_manager-1.0.6-py3-none-any.whl |
Total release size: 20.8 kB
Release files / sudoku_manager-1.0.6.tar.gz
| Download URL | sudoku_manager-1.0.6.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f9f696211a842fcf33356f5b41d3b4ed7a94f1d03d0c9f710d617b173d97f9fb
|
|
BLAKE2b-256 checksum How to use checksums |
059f5d4e5b5de2ceaea60d06bf74c45fc078e6ebc1d9466a7db9fcc179775c25
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Release files / sudoku_manager-1.0.6-py3-none-any.whl
| Download URL | sudoku_manager-1.0.6-py3-none-any.whl |
|---|---|
| Size | 11.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
716faa27c61f7151ee5f63cc84181e315eb3aa3b81096e0e40d846bba027ca3e
|
|
BLAKE2b-256 checksum How to use checksums |
5bc692b51580a147dcb91ff2b87c5fd44a1a5ade4e67d9b7d98c3cba71bb785e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.13.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.0.1 requests-toolbelt/0.9.1 tqdm/4.32.2 CPython/3.7.0
|
Security for sudoku-manager 1.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.