Skip to main content

pencil-puzzles for Python

Generate, solve, rate and check pencil puzzles such as sudoku and nurikabe. Generated puzzles have exactly one solution and a difficulty from easy to expert, set by the hardest solving technique they need.

Requires CPython 3.10 or newer on Windows, macOS or Linux:

pip install pencil-puzzles
import pencil_puzzles as pp

g = pp.generate("sudoku", difficulty="hard")
print(g.puzzle)
print(g.rating.level, g.rating.techniques)

assert pp.solve(g.puzzle) == g.solution
print(pp.hint(g.puzzle))  # the first step a solver would take

Documentation: quickstart, user guide, API reference and genres. Source and issues are on GitHub.

Metadata

Release files for pencil-puzzles 0.5.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pencil-puzzles 0.5.0
File Size Uploaded Provenance Actions
pencil_puzzles-0.5.0.tar.gz 390.6 kB With provenance Details for pencil_puzzles-0.5.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for pencil-puzzles 0.5.0
File Interpreter ABI Platform Actions
pencil_puzzles-0.5.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for pencil_puzzles-0.5.0-cp310-abi3-win_amd64.whl
pencil_puzzles-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for pencil_puzzles-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
pencil_puzzles-0.5.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for pencil_puzzles-0.5.0-cp310-abi3-macosx_11_0_arm64.whl

Total release size: 5.5 MB

Release files / pencil_puzzles-0.5.0.tar.gz

Download URL pencil_puzzles-0.5.0.tar.gz
Size 390.6 kB
Tags Source
SHA-256 checksum
How to use checksums
702bb03eba32ec009cfd7664e7fa401b1b901015ccbd6537c49ee0e8e8884ae3
BLAKE2b-256 checksum
How to use checksums
0ce452364332290be8111319e5d6fd986e9b9a8e7d6c300b0744866826e7827e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / pencil_puzzles-0.5.0-cp310-abi3-win_amd64.whl

Download URL pencil_puzzles-0.5.0-cp310-abi3-win_amd64.whl
Size 1.7 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
97feedd5d9530f41bd4eed2f5f74f3e577d9b31b0f3ea22dec520640b6e2cd8a
BLAKE2b-256 checksum
How to use checksums
dba67f559887bcba9c3c08f5b8017dc8261efeee86345d5fec77ff4aa2b3fb76
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / pencil_puzzles-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL pencil_puzzles-0.5.0-cp310-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 1.8 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
679d8327b13173cdbac5b90fdacc9f9839a94fbb74b4e1f0a9f6d4a8e222fb60
BLAKE2b-256 checksum
How to use checksums
fd3f26538907a35d154d6ca3dc4ae2e2383e51be3ad276610d0fbde4126ae327
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Release files / pencil_puzzles-0.5.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL pencil_puzzles-0.5.0-cp310-abi3-macosx_11_0_arm64.whl
Size 1.6 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a4e0c2754c3de1917d7e95311b7af14d05ce515f4ce1ae29f02eb1f137a6cbeb
BLAKE2b-256 checksum
How to use checksums
b69c734e29fb2c7c7a4f33d5fb3887c8a40771d82dbf5a042ed3ad104b062282
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

Security for pencil-puzzles 0.5.0

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.

Full provenance

All 4 files in this release have been uploaded with provenance metadata.

Select from 4 files

Attestation for pencil_puzzles-0.5.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 12, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page