Skip to main content

rustoku

GitHub Actions Workflow Status License: MIT

High-performance Sudoku solving and generation for Python, powered by a core Rust engine.

Installation

pip install rustoku

Quick Start

import rustoku

# 1. Generate a puzzle
puzzle = rustoku.generate("medium")
print("Generated puzzle:", puzzle)

# 2. Solve a puzzle
solution = rustoku.solve(puzzle)
print("Solved puzzle:   ", solution)

# 3. Check solution validity
assert rustoku.check(solution)

# 4. Generate with symmetry and difficulty
symmetric = rustoku.generate_advanced(symmetry="rotational180", difficulty="hard")

# 5. Find all solutions (or check for uniqueness)
solutions = rustoku.solve_all(puzzle)
print(f"Found {len(solutions)} solution(s)")

# 6. Step-by-step human technique solve trace
trace = rustoku.solve_steps(puzzle, difficulty="expert")
print(f"Solved in {len(trace)} steps")

Features

  • Blazing Fast: Solves puzzles in microseconds using bitmask constraint tracking and MRV backtracking.
  • Human-like Techniques: Explains steps using human solving strategies (Naked/Hidden Singles, Pairs, Triples, Quads, Pointing/Claiming, X-Wing, Swordfish, Jellyfish, Skyscraper, W-Wing, XY-Wing, XYZ-Wing, and AIC).
  • Flexible Generation: Generate valid, uniquely solvable Sudoku boards across multiple difficulty levels (easy, medium, hard, expert) and symmetry modes (rotational180, rotational90, mirrorvertical, mirrorhorizontal, mirrordiagonal).

Documentation

For full API documentation and advanced usage, see the Python Guide in the GitHub repository.

Release files for rustoku 0.15.2

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

Source distribution (sdist)

Source distribution for rustoku 0.15.2
File Size Uploaded
rustoku-0.15.2.tar.gz 66.5 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rustoku 0.15.2
File
rustoku-0.15.2-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
rustoku-0.15.2-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
rustoku-0.15.2-cp314-cp314-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.12+ x86-64 Details
rustoku-0.15.2-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
rustoku-0.15.2-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
rustoku-0.15.2-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
rustoku-0.15.2-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
rustoku-0.15.2-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
rustoku-0.15.2-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
rustoku-0.15.2-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details
rustoku-0.15.2-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
rustoku-0.15.2-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
rustoku-0.15.2-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details
rustoku-0.15.2-cp310-cp310-win_amd64.whl CPython 3.10 CPython 3.10 Windows x86-64 Details

Total release size: 4.4 MB

Release files / rustoku-0.15.2.tar.gz

Download URL rustoku-0.15.2.tar.gz
Size 66.5 kB
Tags Source
SHA-256 checksum
How to use checksums
d2ba8626d61a6ac9abaadd4cf5757f6b54c1b9e25344e68f344b732b47ee010e
BLAKE2b-256 checksum
How to use checksums
cc5bcf19aaebfb7ab219dd905e1d3c0764c84e1f4469d1834a75958573622117
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp314-cp314-win_amd64.whl

Download URL rustoku-0.15.2-cp314-cp314-win_amd64.whl
Size 223.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
50a31aea6b4949b514d725481ca9be3d084c19be853876795d6b8900e7026cd8
BLAKE2b-256 checksum
How to use checksums
34e135f21a9a3f2fa37031b93871867f93b4eafb812c8dcce5bcfdce2953d92c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp314-cp314-macosx_11_0_arm64.whl

Download URL rustoku-0.15.2-cp314-cp314-macosx_11_0_arm64.whl
Size 345.2 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
77655fad6fe5d8a177c81408928a15f425b91c8fe36a86247c58d7dde2b4e338
BLAKE2b-256 checksum
How to use checksums
a809228fa15060d40bf4624cddbf92ce5f65ec958a97fa16d72df20074feda46
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp314-cp314-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.2-cp314-cp314-macosx_10_12_x86_64.whl
Size 348.6 kB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b9ca61bd7f3e12f2276f504918a2f55db2b94f0f14129e5849ef559d6810474b
BLAKE2b-256 checksum
How to use checksums
babfef0cce42d69bf0d22bcf900290763d5cee7d2edcc94d1ca74e989409d207
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp313-cp313-win_amd64.whl

Download URL rustoku-0.15.2-cp313-cp313-win_amd64.whl
Size 222.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
fcc6b8b0694a265d4a45223d27b39f02b169622884cd53ad2212941b17aeaf49
BLAKE2b-256 checksum
How to use checksums
c668ec68d580d6259cda3ebce95d412e6c198acada3e94f5353217a7d2a8d46f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp313-cp313-macosx_11_0_arm64.whl

Download URL rustoku-0.15.2-cp313-cp313-macosx_11_0_arm64.whl
Size 343.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
b5bb26d82d6c5b14249ce4859d61d50102b4e2428e3a5d803eb1f3cf5ae697c0
BLAKE2b-256 checksum
How to use checksums
a21e3063950cfe86cd7be72eb39698a6651e5a7fdccfd399b27a6f6a14072fce
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp313-cp313-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.2-cp313-cp313-macosx_10_12_x86_64.whl
Size 347.7 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3bf9a2a35b70f1480cd7a9718184447983f3f296484d9d7fdca20bac1ec13fa1
BLAKE2b-256 checksum
How to use checksums
f4d1403842abb87265639ee1a4d7ae0f06a2b2b7260e250fb0dcea6c87bf5be1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp312-cp312-win_amd64.whl

Download URL rustoku-0.15.2-cp312-cp312-win_amd64.whl
Size 222.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
3eaae58da74ece9bb5e04f7dbdc178d53df677c3fe38678f347a26b2b4e9e01c
BLAKE2b-256 checksum
How to use checksums
f9e6bb1d8eeb42e29599f1fa4bf85aaf36ca14f40829461cf3aa56fad48af8e8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL rustoku-0.15.2-cp312-cp312-manylinux_2_34_x86_64.whl
Size 411.3 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
dd15dd1e7d680e222333a31e51ac84737435623159522ad7712f2228f1015628
BLAKE2b-256 checksum
How to use checksums
7b9971f613e5cc76261769b7e9f86a1a1732b2711ff17e4f64e37acbced7a18b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp312-cp312-macosx_11_0_arm64.whl

Download URL rustoku-0.15.2-cp312-cp312-macosx_11_0_arm64.whl
Size 343.8 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
9f88483278349ce1c803cd62c30caef5ece80b6636868ef95937039050f3ecd0
BLAKE2b-256 checksum
How to use checksums
cf0748d2de80d52289d1ea88a681729af4925b4d8428b0aed470b8a8e0602348
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp312-cp312-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.2-cp312-cp312-macosx_10_12_x86_64.whl
Size 347.5 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
3aba8169692041ab945b41b75c2ee759f3dc9b89215a6b30c605e144ec0d342b
BLAKE2b-256 checksum
How to use checksums
8733b0ea88d0ce12b687b67406843d4f438a5d2a0e5b93ee5b53f8adbd254da8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp311-cp311-win_amd64.whl

Download URL rustoku-0.15.2-cp311-cp311-win_amd64.whl
Size 224.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
edbf0210775f17bd76d04513c0aa8362f4ab311f69b1d69596344b9fae7d4a2a
BLAKE2b-256 checksum
How to use checksums
3ed304ed7c7759d3064067d94e1ec505ac6e322c246f6fece9f0ef44970a24a8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp311-cp311-macosx_11_0_arm64.whl

Download URL rustoku-0.15.2-cp311-cp311-macosx_11_0_arm64.whl
Size 349.7 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
bb491f61bb2b6797b8497ec8473765a05ac32b37bd305900a5ba68480b194d92
BLAKE2b-256 checksum
How to use checksums
9e5c6734a3d522c5fd6084a46842752a7b3e05ca7f9c01527a9d53721863053b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp311-cp311-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.2-cp311-cp311-macosx_10_12_x86_64.whl
Size 349.2 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
595905ecea143567058b431f538a5daf317d66f1caaf716f8b6b8cf520c42024
BLAKE2b-256 checksum
How to use checksums
8c01e19f42bffa7fff9dbd911e7531d645d8cfb1c6a2ec9732f513fd743f1b75
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release files / rustoku-0.15.2-cp310-cp310-win_amd64.whl

Download URL rustoku-0.15.2-cp310-cp310-win_amd64.whl
Size 224.8 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a873fbf9f4415accd5dbca18e826b8273e3b95fb5c6b45ca1ed402edba98e931
BLAKE2b-256 checksum
How to use checksums
ebadecea88d0ba09b1dc00ebf856c79af4706f7fdc54ec9fb21a5471855eb82c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Sep 26, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.15.2 This release

15 release files

0.15.1

2 release files

0.15.0

2 release files

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