SudokuJson2Pdf
This project provides a tool which converts json file of sudoku information to pdf.
How to Install
$ pip install SudokuJson2pdf
Usage
$ sudoku2pdf.py [option] question-filename [answer-filename]
For example,
$ cat examples/question1.json
[
[
[1, 8, 7, 4, 9, 3, 6, 5, 2],
[6, 4, 3, 1, 2, 5, 8, 9, 7],
[2, 5, 9, 7, 8, 6, 3, 1, 4],
[7, 1, 4, 2, 3, 8, 5, 6, 9],
[9, 6, 8, 5, 7, 1, 4, 2, 3],
[5, 3, 2, 6, 4, 9, 1, 7, 8],
[8, 7, 6, 9, 1, 4, 2, 3, 5],
[4, 9, 1, 3, 5, 2, 7, 8, 6],
[3, 2, 5, 8, 6, 7, 9, 4, 1]
],
[
[8, 4, 6, 9, 2, 7, 5, 1, 3],
[3, 5, 2, 8, 4, 1, 9, 7, 6],
[7, 1, 9, 6, 3, 5, 4, 2, 8],
[1, 7, 4, 5, 6, 9, 3, 8, 2],
[6, 8, 3, 2, 1, 4, 7, 9, 5],
[2, 9, 5, 3, 7, 8, 1, 6, 4],
[4, 2, 7, 1, 8, 3, 6, 5, 9],
[5, 6, 1, 4, 9, 2, 8, 3, 7],
[9, 3, 8, 7, 5, 6, 2, 4, 1]
]
]
$ cat examples/answer1.json
[
[
[1, ".", 7, 4, 9, 3, 6, 5, 2],
[6, 4, 3, 1, 2, 5, 8, 9, 7],
[2, 5, 9, 7, 8, 6, 3, 1, 4],
[7, 1, 4, 2, 3, 8, 5, 6, 9],
[9, 6, 8, 5, 7, 1, 4, 2, 3],
[5, 3, 2, 6, 4, 9, 1, 7, 8],
[8, 7, 6, 9, 1, 4, 2, 3, 5],
[4, 9, 1, 3, 5, 2, 7, 8, 6],
[3, 2, 5, 8, 6, 7, 9, 4, 1]
],
[
[8, ".", 6, 9, 2, 7, 5, 1, 3],
[3, 5, 2, 8, 4, 1, 9, 7, 6],
[7, 1, 9, 6, 3, 5, 4, 2, 8],
[1, 7, 4, 5, 6, 9, 3, 8, 2],
[6, 8, 3, 2, 1, 4, 7, 9, 5],
[2, 9, 5, 3, 7, 8, 1, 6, 4],
[4, 2, 7, 1, 8, 3, 6, 5, 9],
[5, 6, 1, 4, 9, 2, 8, 3, 7],
[9, 3, 8, 7, 5, 6, 2, 4, "."]
]
]
$ sudoku2pdf.py examples/question1.json examples/answer1.json -o examples/out.pdf
$ ls examples/out.pdf
examples/out.pdf
License
Apache License 2.0
Metadata
Release files for SudokuJson2Pdf 0.0.5
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 |
|---|---|---|---|---|
| SudokuJson2Pdf-0.0.5.tar.gz | 3.7 kB | Without provenance | Details for SudokuJson2Pdf-0.0.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| SudokuJson2Pdf-0.0.5-py2.py3-none-any.whl | Python 3, Python 2 | none | any | Details for SudokuJson2Pdf-0.0.5-py2.py3-none-any.whl |
Total release size: 11.4 kB
Release files / SudokuJson2Pdf-0.0.5.tar.gz
| Download URL | SudokuJson2Pdf-0.0.5.tar.gz |
|---|---|
| Size | 3.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
765ce6c375074676fd9d0538fc0b075f9ba1d0fecd8172d9ab11066664fca1ac
|
|
BLAKE2b-256 checksum How to use checksums |
313228ac968c9f0fdf728fd61734607fd6d768ac30eb18a1585bf766e47d8d1c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / SudokuJson2Pdf-0.0.5-py2.py3-none-any.whl
| Download URL | SudokuJson2Pdf-0.0.5-py2.py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
aaa71256c987f711cd1b6ae0d095c8e1e0e0e86b72f5b3a0f7f66131103da86b
|
|
BLAKE2b-256 checksum How to use checksums |
78ec98c8cfa77002e01ea304b42ae785e70e68ad63f665c3318fcedc10e2dec4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for SudokuJson2Pdf 0.0.5
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.