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.15.4

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.4
File Size Uploaded
rustoku-0.15.4.tar.gz 73.6 kB Details

Built distributions (wheels)

Table of built distributions (wheels) for rustoku 0.15.4
File
rustoku-0.15.4-cp314-cp314-win_amd64.whl CPython 3.14 CPython 3.14 Windows x86-64 Details
rustoku-0.15.4-cp314-cp314-macosx_11_0_arm64.whl CPython 3.14 CPython 3.14 macOS 11.0+ ARM64 Details
rustoku-0.15.4-cp314-cp314-macosx_10_12_x86_64.whl CPython 3.14 CPython 3.14 macOS 10.12+ x86-64 Details
rustoku-0.15.4-cp313-cp313-win_amd64.whl CPython 3.13 CPython 3.13 Windows x86-64 Details
rustoku-0.15.4-cp313-cp313-macosx_11_0_arm64.whl CPython 3.13 CPython 3.13 macOS 11.0+ ARM64 Details
rustoku-0.15.4-cp313-cp313-macosx_10_12_x86_64.whl CPython 3.13 CPython 3.13 macOS 10.12+ x86-64 Details
rustoku-0.15.4-cp312-cp312-win_amd64.whl CPython 3.12 CPython 3.12 Windows x86-64 Details
rustoku-0.15.4-cp312-cp312-manylinux_2_34_x86_64.whl CPython 3.12 CPython 3.12 Linux glibc 2.34+ x86-64 Details
rustoku-0.15.4-cp312-cp312-macosx_11_0_arm64.whl CPython 3.12 CPython 3.12 macOS 11.0+ ARM64 Details
rustoku-0.15.4-cp312-cp312-macosx_10_12_x86_64.whl CPython 3.12 CPython 3.12 macOS 10.12+ x86-64 Details
rustoku-0.15.4-cp311-cp311-win_amd64.whl CPython 3.11 CPython 3.11 Windows x86-64 Details
rustoku-0.15.4-cp311-cp311-macosx_11_0_arm64.whl CPython 3.11 CPython 3.11 macOS 11.0+ ARM64 Details
rustoku-0.15.4-cp311-cp311-macosx_10_12_x86_64.whl CPython 3.11 CPython 3.11 macOS 10.12+ x86-64 Details
rustoku-0.15.4-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.4.tar.gz

Download URL rustoku-0.15.4.tar.gz
Size 73.6 kB
Tags Source
SHA-256 checksum
How to use checksums
cc63318ff406f0284e86cf3d232c9665501dea3fd32e8e84bb0cc864eab5a256
BLAKE2b-256 checksum
How to use checksums
d6a0194d5d5c6a486429ab5cc1fdab3e15385fdd51ebe3dcad36afc9e52f55f9
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp314-cp314-win_amd64.whl
Size 224.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
a543bb52477b34437f8a4b705c0f2e87e8c01e3da40248e708c929651a392eea
BLAKE2b-256 checksum
How to use checksums
8223aed932f7dfa8edcc5cbc4a0a6aec08d158c31b014c9062297c8f99182ee7
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp314-cp314-macosx_11_0_arm64.whl
Size 347.1 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
05f151f3a161ed0c74a5d81f442f4d088a03e8e9c7ba4fe68a83be0a39cdae33
BLAKE2b-256 checksum
How to use checksums
6d9785a1d25f3258de79fabbddcc482b4b856dbba37c37b53286f70717cd62a3
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp314-cp314-macosx_10_12_x86_64.whl
Size 350.1 kB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b1da59a58d23f50d4b9f754b04a81aaa674ad2be8dd6ea003e183e5dfb8a5539
BLAKE2b-256 checksum
How to use checksums
80702bd7d5f2a6b69c29e43cf1dd6c523c7aeb877fbfec54dec9195d0f53079c
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp313-cp313-win_amd64.whl
Size 223.6 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
ad6ef0b9bfdce112ab0907b030391e32372b41f6c23ddaec37562ce050eca1b8
BLAKE2b-256 checksum
How to use checksums
6c48a14d0c001abc160287e296b74e3bc9adcd1c588d7d66879b4b2cc479638e
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp313-cp313-macosx_11_0_arm64.whl
Size 345.9 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2fdb0ffd1e24541afc5e9cc35bf834c20457d7783410b3a4162b195d4d7ab882
BLAKE2b-256 checksum
How to use checksums
a6f094a61b135e2bd037cdf3c1e4a7e0778153527e05f9ed415265863458701c
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp313-cp313-macosx_10_12_x86_64.whl
Size 349.4 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
badcbde803612b838256e6949effed4b9ff9d1b07b5bcb619b3a21581e3da563
BLAKE2b-256 checksum
How to use checksums
c92ed33d9d8ad2dabcc0ad605225d085f68fa718728a2b4085765296f3474bc4
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp312-cp312-win_amd64.whl
Size 223.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
523919f969037ce542f36a54ce70d1855a4db359801dcd714d6d63fae98d0c03
BLAKE2b-256 checksum
How to use checksums
e0aeff2e362a7b61eecd332004210735b804ddbda5996330388989d15e787e42
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp312-cp312-manylinux_2_34_x86_64.whl
Size 411.8 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
6ca962eeb80d315262d2e5bc9717ef9c5f48ba35d34835a4edd756ea6e58c2d1
BLAKE2b-256 checksum
How to use checksums
65cad591ddd8af992c47bcd0c64e638662f6924b58529292d952c8db7d1ac067
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp312-cp312-macosx_11_0_arm64.whl
Size 345.9 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
1632f36606e70ba4b06e03b5f428aa75ae7cf321cdfa4d28214a8633662e28ef
BLAKE2b-256 checksum
How to use checksums
3555234a91db06a94591edb1d273852234700d1e91de6d0980cc44ae0daf5f2e
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp312-cp312-macosx_10_12_x86_64.whl
Size 349.2 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b8b5376ba7ff296acfd94544849829ff82d33cfb228a216a359b1d3adc639cbf
BLAKE2b-256 checksum
How to use checksums
e1dc064fd2be82f9a63cc2db2e4c25a3df550ae249f781338519eef5461a050d
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp311-cp311-win_amd64.whl
Size 225.7 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
660b7de8376870768921db54f642ebf508e467a4315393e611c2f1d9484f0ea0
BLAKE2b-256 checksum
How to use checksums
8970f39f4d31f2fed6fb2a21424df8f8a1af29445f41a6c4b978b71923c98c5a
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp311-cp311-macosx_11_0_arm64.whl
Size 351.1 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
618d16c8d8c17318d38ef3a48e7b5c8ad1f971b985f5fdde1fb23ba5004ffb12
BLAKE2b-256 checksum
How to use checksums
01dfb0a514d076cd41aabb1fb4126c915437f167dd0dd081ff8528bb1c752b20
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp311-cp311-macosx_10_12_x86_64.whl
Size 350.7 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
29a98cc428eed668d7b424d7192d3d500dc80c27b9edb9fdd43b0038554bd605
BLAKE2b-256 checksum
How to use checksums
4af49313d34868dfedcf73671adfe76a4e5dafa56e3fd0226ae552300c870fae
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 30, 2026.

Transparency log

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

Download URL rustoku-0.15.4-cp310-cp310-win_amd64.whl
Size 225.7 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
2dc31c1f173151ff910351d488185a776228849e87f10c2d39587fa2d6318e4b
BLAKE2b-256 checksum
How to use checksums
ea43aaffcf6d8a437ecf1bcfcc8912db197ec253aaed9fdf3decfd2f2318d5ca
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 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.15.4 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