sudoku-cli
A CLI tool for solving sudoku puzzles.
Installation
pip install sudoku-cli
Commands
The help page for the sudoku command is a good overview:
Usage: sudoku [OPTIONS] INPUT_FILE
A command line tool for taking an input file encoding sudoku problems and
writing their solutions to stdout.
The input file consists of one sudoku problem per line, where each line is
a string of integers in the range 0-9. A 0 denotes an empty location while
all the other digits are filled cells. This string represents a walk
through the grid from top to bottom and left to right.
By default it exits with a message after encountering either an invalid
problem or an unsolvable problem.
Options:
-s, --size INTEGER Size of the encoded sudoku problems. Defaults to 9.
-i, --ignore Silently ignores all errors. Writes blank lines for
unworkable problems.
--help Show this message and exit.
input_file
The input file format is described above in the help page.
So this board:
|0 9 0| |0,0,0| |0,0,6| |0 0 0| |9,6,0| |4,8,5| |0 0 0| |5,8,1| |0,0,0| |0,0,4| |0,0,0| |0,0,0| |5,1,7| |2,0,0| |9,0,0| |6,0,2| |0,0,0| |3,7,0| |1,0,0| |8,0,4| |0,2,0| |7,0,6| |0,0,0| |8,1,0| |3,0,0| |0,9,0| |0,0,0|
Would be encoded by this string:
090000006000960485000581000004000000517200900602000370100804020706000810300090000
Development
A Makefile is included to simplify the running of some common commands.
To install the requirements for local development:
make requirements
To run the tests along with a coverage report and linting:
make test
To install the package locally for testing:
make install
To run the benchmarks:
make benchmark
Metadata
Release files for sudoku-cli 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-cli-0.6.tar.gz | 4.3 kB | Without provenance | Details for sudoku-cli-0.6.tar.gz |
Release files / sudoku-cli-0.6.tar.gz
| Download URL | sudoku-cli-0.6.tar.gz |
|---|---|
| Size | 4.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6c10213db2dc8cbf74515f6f0d23813eccd2048d335b3cd169be3994e739d260
|
|
BLAKE2b-256 checksum How to use checksums |
a86c3ece258636e6ce10777d454e6cae36f6c3b7082b38b1c4c8201e65003749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for sudoku-cli 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.