Skip to main content

cube-model

An orientation-independent cube model in strictly typed Python.

Highlights

  • Strict typing (mypy --strict)
  • Orientation-independent cube state
  • Color and Side are enums
  • CornerSticker objects form circular linked lists of size 3
  • EdgeSticker objects form circular linked lists of size 2
  • Cube.next_edge and Cube.next_corner encode clockwise sticker order on faces

Install

pip install cube-model

Example

from cube_model import Color, Move, Multiplicity, Side, solved, move

cube = solved()
assert cube.front_color is Color.GREEN

move(Move(Side.FRONT, Multiplicity.CW), cube)

Metadata

Release files for cube-model 1.0.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 cube-model 1.0.4
File Size Uploaded Provenance
cube_model-1.0.4.tar.gz 11.7 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for cube-model 1.0.4
File Interpreter ABI Platform
cube_model-1.0.4-py3-none-any.whl Python 3 none any Details

Total release size: 26.6 kB

Release files / cube_model-1.0.4.tar.gz

Download URL cube_model-1.0.4.tar.gz
Size 11.7 kB
Tags Source
SHA-256 checksum
How to use checksums
021fada1427cda8edeb31c6a810571e183ecbea5a02e733ff23dbc7c46f05914
BLAKE2b-256 checksum
How to use checksums
b438f755142b10b4922cd353835385c4ce3adfbd428e13675e7464fcde9bc17d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.5 Linux/6.6.114.1-microsoft-standard-WSL2

Release files / cube_model-1.0.4-py3-none-any.whl

Download URL cube_model-1.0.4-py3-none-any.whl
Size 14.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
6584600d193bf23da1dc7979e8528d9848e783af2a2b46a55c7101dc51b4af27
BLAKE2b-256 checksum
How to use checksums
a4bf3800f9780a0a8a024cead9123aab5bf5b079c5170fb685b85caab62c51a3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/2.4.1 CPython/3.14.5 Linux/6.6.114.1-microsoft-standard-WSL2

Security for cube-model 1.0.4

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

1.0.4 This release

2 release files No provenance

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