Skip to main content

rustoku

GitHub Actions Workflow Status PyPI 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.

Metadata

Release files for rustoku 0.16.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 rustoku 0.16.0
File Size Uploaded
rustoku-0.16.0.tar.gz 77.5 kB Details

Built distributions (wheels)

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

Total release size: 3.7 MB

Release files / rustoku-0.16.0.tar.gz

Download URL rustoku-0.16.0.tar.gz
Size 77.5 kB
Tags Source
SHA-256 checksum
How to use checksums
376396d422e0d05344ae183ec179f7957795c2644366eb6ebeb93a3196f701ba
BLAKE2b-256 checksum
How to use checksums
d435735424cf5e9192e5b6a19da705683281a0fd9826136aaf8470019fe5a254
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp314-cp314-win_amd64.whl
Size 184.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
8b12c706f1cd308ef7b864b35da48e97eed252f1c786a845b40a475fc050619d
BLAKE2b-256 checksum
How to use checksums
dcf3db885605923becbad23ccb33b904896ecca0410a1e2290c1d235ea24977e
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp314-cp314-macosx_11_0_arm64.whl
Size 299.8 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1b559ea67b55d8aa36ceb661b78ff6139a709962c1be40f40de6741e34350781
BLAKE2b-256 checksum
How to use checksums
ab7a061ff03fcf3aa550f91d59ab7b28fcb3660c534d3dcf89d475477b285ad6
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp314-cp314-macosx_10_12_x86_64.whl
Size 298.1 kB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
e0b063450baf7504a04d09c694b3116a5e1644a3f7f9629f73f3e5d5a79b3b91
BLAKE2b-256 checksum
How to use checksums
01694a49e52c796efab4ac7831b15a3e08a9b7356cf2b05e32ed4954c9f872b7
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp313-cp313-win_amd64.whl
Size 183.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
b6fd4f20f513f26bf368da5c0fb610613a2a9a716399fb980ce93bea160a7306
BLAKE2b-256 checksum
How to use checksums
c8b0fe9e081349800823e0143736448285b2065a07ad5ac9cdefbd3f090bee26
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp313-cp313-macosx_11_0_arm64.whl
Size 298.7 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
d1f526370a24718740f8736eba6a4c734ba0ae058d22c025c62c54c336499b21
BLAKE2b-256 checksum
How to use checksums
f21c2959a89e84857e832cc52fac62368d66d2914f3d846366d0d9e621dea842
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp313-cp313-macosx_10_12_x86_64.whl
Size 297.3 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
679673dea5b16f3d2b7467004e60b54f7ad99095578dcf49984435117aa7339e
BLAKE2b-256 checksum
How to use checksums
8d8de711f36ad15b31d2e5df06aeb48227d3f30723c178b971b769482d52a182
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp312-cp312-win_amd64.whl
Size 183.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
1b7a83c2c98a8600063d7c38e5a95481cf2577cbc8ac2089c322a46f1cdba307
BLAKE2b-256 checksum
How to use checksums
4d2df856250ae961b6eb74c41d196db9f767ea5afc0ff8ccf694dac9aa7eb839
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp312-cp312-manylinux_2_34_x86_64.whl
Size 346.3 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
0d41072e29e6d04e65aa3895c99f8949e1fea75bb921fe1c131becfbf0b135db
BLAKE2b-256 checksum
How to use checksums
01effee0cc8a7de305455d2db28238e506379cd1e5bd76497c652a2e1f30f2c3
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp312-cp312-macosx_11_0_arm64.whl
Size 298.4 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
7b445af7e5f176b38dd502acfb1595eb1d56b4f16962a7cd3aff3216964b0641
BLAKE2b-256 checksum
How to use checksums
1ded3ba93b0e1588efcb766f0f2b6dd7e703a41870e07ecf8d2bc9a664f331b8
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp312-cp312-macosx_10_12_x86_64.whl
Size 296.9 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
5bf3b13778bafb093adcc34a26f4373a12938f55467bb267e464350a8be8a806
BLAKE2b-256 checksum
How to use checksums
b7063c0d284d539c0fd1f3bd28bd85e96085da69b538fb66f6537c52d9a5cca6
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp311-cp311-win_amd64.whl
Size 186.0 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
c963f55b6c74717fb44c9259392dd68938660103b3ff218193c6d17a968cfe47
BLAKE2b-256 checksum
How to use checksums
c9e9d43244926ce02509b02e535aa88206897b522b440765138a8d7ad199587a
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp311-cp311-macosx_11_0_arm64.whl
Size 302.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1449db60369bb2f16faeecf7894d8b1f76d3a505fd70fb07a46814634f633355
BLAKE2b-256 checksum
How to use checksums
5faebee12c01122725c87df23161d88fa930e64f0824c2c4bc0f1f1d8ec61d41
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp311-cp311-macosx_10_12_x86_64.whl
Size 298.0 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
378bbf12465968089c31979d5d271f37d7145d6120ed740d970cbc56782789e9
BLAKE2b-256 checksum
How to use checksums
5899b2732e41b3bbccadf2d89aa1b6e409b3d34d4503d167b6adba9fcaf6396f
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 Oct 11, 2026.

Transparency log

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

Download URL rustoku-0.16.0-cp310-cp310-win_amd64.whl
Size 186.1 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
9dc9de08697bdf14c30babbdf3c76aa591cf15aa3d4c1e7b7aad831c58718980
BLAKE2b-256 checksum
How to use checksums
08b22e7f91a7809fd7a4a3e7df29af3f616397993e7d401c3902878937f1d8fe
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 Oct 11, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.16.0 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