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.

Release files for rustoku 0.15.3

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.3
File Size Uploaded
rustoku-0.15.3.tar.gz 67.9 kB Details

Built distributions (wheels)

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

Download URL rustoku-0.15.3.tar.gz
Size 67.9 kB
Tags Source
SHA-256 checksum
How to use checksums
8246da49f2081be0a66185190d6963c54950ff24cd5d4afde54f4e8d4b6aa8fd
BLAKE2b-256 checksum
How to use checksums
1867e54178f05362ff968f2ba37bda507ac9e151169e39a57bac5bc9614a9e74
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.3-cp314-cp314-win_amd64.whl

Download URL rustoku-0.15.3-cp314-cp314-win_amd64.whl
Size 223.2 kB
Tags CPython 3.14 Windows x86-64
SHA-256 checksum
How to use checksums
0947b8a0431dd4f257fd0275ce8ddf18fb8e3d714757832321e71ad951510eb9
BLAKE2b-256 checksum
How to use checksums
bc63edd9512e4f881d4aee39186ed185af73263e16b5e566e43a4c02b579871f
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.3-cp314-cp314-macosx_11_0_arm64.whl

Download URL rustoku-0.15.3-cp314-cp314-macosx_11_0_arm64.whl
Size 345.3 kB
Tags CPython 3.14 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
c78440e0389ee3f35fc15e29d068cf7bf28a40f09ba5dc6786b4c20c44fbdfaf
BLAKE2b-256 checksum
How to use checksums
2f9ab2a85bc184c9911ed7319f857627afeffb1e4bfd0385ddea38c9d4f0a352
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.3-cp314-cp314-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.3-cp314-cp314-macosx_10_12_x86_64.whl
Size 348.1 kB
Tags CPython 3.14 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
2df039e2dab69a851d0f9f22740d8c8ff63f701c75c339e7e9c823002ede6300
BLAKE2b-256 checksum
How to use checksums
e67383b7d338ce2e9789e6321e5cd6552cc5471ee9a49b68042df231a319ba20
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.3-cp313-cp313-win_amd64.whl

Download URL rustoku-0.15.3-cp313-cp313-win_amd64.whl
Size 222.7 kB
Tags CPython 3.13 Windows x86-64
SHA-256 checksum
How to use checksums
38dd087f0468ba202810e65590bb3505650bd14034e936449099922bb3c2b5bf
BLAKE2b-256 checksum
How to use checksums
29185bf4bf2161099cb495e29b4a799757451f4777c1fb0a1e6fa65d9ab38803
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.3-cp313-cp313-macosx_11_0_arm64.whl

Download URL rustoku-0.15.3-cp313-cp313-macosx_11_0_arm64.whl
Size 344.1 kB
Tags CPython 3.13 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
012d5cec71ca87b03e195d88124744f3a0f6457a48260fb8842ec3685e32cc15
BLAKE2b-256 checksum
How to use checksums
cbf9b9931b5723f81158ae7c2f68f945c4335305294f3ec0262680eb768fbfe8
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.3-cp313-cp313-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.3-cp313-cp313-macosx_10_12_x86_64.whl
Size 347.2 kB
Tags CPython 3.13 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
6df41b77326855f61c164f8dd02466ee49f289f9d2a58cb3c30acae4bbcd7cef
BLAKE2b-256 checksum
How to use checksums
0f46a606ddc2ccece266d4cc8ca1c01f70b7d104b82e691060ea47d8a4bb781f
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.3-cp312-cp312-win_amd64.whl

Download URL rustoku-0.15.3-cp312-cp312-win_amd64.whl
Size 222.6 kB
Tags CPython 3.12 Windows x86-64
SHA-256 checksum
How to use checksums
c2906b84d4f540acff4116e7a96a3ce20a4f0f1c64b6762cbf77f3d44941538a
BLAKE2b-256 checksum
How to use checksums
84c619c710b7b485ec98d1496b1fd70cc7c8bce05dc9634b887aeec06bb5a0bf
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.3-cp312-cp312-manylinux_2_34_x86_64.whl

Download URL rustoku-0.15.3-cp312-cp312-manylinux_2_34_x86_64.whl
Size 411.5 kB
Tags CPython 3.12 Linux glibc 2.34+ x86-64
SHA-256 checksum
How to use checksums
e1fc8f6323958f7a184c6b4c8238f6dbd7de3cb75e82bc5224ab0f3b0b37b462
BLAKE2b-256 checksum
How to use checksums
d795b1e2f8679f2386c279df6a0efdd105c8db707daafd14af788a340210a3a0
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.3-cp312-cp312-macosx_11_0_arm64.whl

Download URL rustoku-0.15.3-cp312-cp312-macosx_11_0_arm64.whl
Size 344.0 kB
Tags CPython 3.12 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
a0d077d3305c11db75dcba3e6ea2b3796b68c6fb9a37c681deee346de5a73c09
BLAKE2b-256 checksum
How to use checksums
af4d9c91521188ce6f53face1a9718db3cf511643559a9299d57f8c15421b7d3
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.3-cp312-cp312-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.3-cp312-cp312-macosx_10_12_x86_64.whl
Size 347.1 kB
Tags CPython 3.12 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
07d68e674e0731b8db4887e549320cad4368a9c9e258dbbbce8cceb597f362f7
BLAKE2b-256 checksum
How to use checksums
ac342b9679d335913d50bd02cf66cb5b39fb7f06d1f2f92fb2e9e437c627e6a3
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.3-cp311-cp311-win_amd64.whl

Download URL rustoku-0.15.3-cp311-cp311-win_amd64.whl
Size 224.8 kB
Tags CPython 3.11 Windows x86-64
SHA-256 checksum
How to use checksums
4f6d073a95c6e86f557ae655651eb0d47f273423f44cbf4a504ad2ee6cc2a022
BLAKE2b-256 checksum
How to use checksums
e3970bbb3263a254606a2f07af6ab9343c043c2e1a7c08281c09fa2d946e94c4
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.3-cp311-cp311-macosx_11_0_arm64.whl

Download URL rustoku-0.15.3-cp311-cp311-macosx_11_0_arm64.whl
Size 349.9 kB
Tags CPython 3.11 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
496341a626620b3aec6357c8c0e881b2632a274529ff3a09c4725ed56728673c
BLAKE2b-256 checksum
How to use checksums
01cb78551cf0dbe06200c51f7544faf0188cdc2faa3c4e6ac28880cd31a0cafa
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.3-cp311-cp311-macosx_10_12_x86_64.whl

Download URL rustoku-0.15.3-cp311-cp311-macosx_10_12_x86_64.whl
Size 348.7 kB
Tags CPython 3.11 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
7e196b075da0614b58356b4459dbb664f413fc91c21b477b36bf7b5f3d61762c
BLAKE2b-256 checksum
How to use checksums
c73a0f8e99c03e730a9f3363ffe9631d8563adfca2c1e4e3a4bb469784cae8ce
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.3-cp310-cp310-win_amd64.whl

Download URL rustoku-0.15.3-cp310-cp310-win_amd64.whl
Size 224.9 kB
Tags CPython 3.10 Windows x86-64
SHA-256 checksum
How to use checksums
a99ce2c0b06c412212e93bbf7236e39a43486a18445514ddcb4e13e3a8890462
BLAKE2b-256 checksum
How to use checksums
55f498f0969dacd3c678761d1882206df591bde21a54e74b21a4f5cf5739790b
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.3 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