Skip to main content

PyCuber

PyCuber is a Rubik’s Cube package in Python 2/3.

The cube can be revealed as expanded view in the terminal, so it’s easy to visualise the cube, just inside the terminal. (Not tested on Windows)

>>> import pycuber as pc

>>> # Create a Cube object
>>> mycube = pc.Cube()

>>> # Do something at the cube.
>>> mycube("R U R' U'")

>>> print(mycube)
http://i.imgur.com/OI4kbn7.png

We also provided some useful tools to deal with Rubik’s Cube formulae.

>>> import pycuber as pc

>>> # Create a Formula object
>>> my_formula = pc.Formula("R U R' U' R' F R2 U' R' U' R U R' F'")

>>> # Reversing a Formula
>>> my_formula.reverse()
>>> print(my_formula)

>>> # Mirroring a Formula
>>> myalg.mirror("LR")
>>> print(my_formula)


F R U' R' U R U R2 F' R U R U' R'
F' L' U L U' L' U' L2 F L' U' L' U L

I’ll add some documentations later.

Metadata

Release files for pycuber 0.2.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 pycuber 0.2.2
File Size Uploaded
pycuber-0.2.2.tar.gz 18.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pycuber 0.2.2
File Interpreter ABI Platform
pycuber-0.2.2-py3-none-any.whl Python 3 none any Details

Total release size: 42.5 kB

Release files / pycuber-0.2.2.tar.gz

Download URL pycuber-0.2.2.tar.gz
Size 18.6 kB
Tags Source
SHA-256 checksum
How to use checksums
ca7721a559fb1dc77c2a63b82cec39aef158c2f1a3ff7c6ede713e2de522a444
BLAKE2b-256 checksum
How to use checksums
a5659be8116ab862d03ef4f079c71198b24471c06c974983d3352421e50ff5b5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / pycuber-0.2.2-py3-none-any.whl

Download URL pycuber-0.2.2-py3-none-any.whl
Size 23.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
081ad3e965667a101e7057d77904cb22d8f6ec1f50c19cf05fe7e66354049a73
BLAKE2b-256 checksum
How to use checksums
ab32fe85b9038355d0d7920fb7e88b3e1756fbea9949f6e0bdc9401fdb2a92d6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files

0.2.1

1 release file

0.2.0

1 release file

0.1.4

1 release file

0.1.3

1 release file

0.1.2

1 release file

0.1.1

1 release file

0.1.0

1 release file

0.1b2

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