A Python module to make speedcubing projects a piece of cake.
Project description
PyRubik
PyRubik is python module create to assist the creation of speedcubing softwares made in Python. For example, if you are creating a speedcuber timer using Flask, this module may help you.
How to install
pip install pyrubik
Usage
The module has so many features. Just take a look:
Generate official WCA scrambles
This code generate a scramble for a 2x2x2 cube:
# This is a 2x2.py file
from PyRubik import GetScramble
if __name__ == '__main__':
scramble: list = GetScramble.Cube2x2x2() # Create the scramble
print(f'A 2x2x2 Scramble: {scramble}') # Show it
# Your output must look similar like this:
A 2x2x2 Scramble: ['R2', "F'", 'R2', 'F', "R'", 'U', 'R2', 'U', "F'"]
This another one generate for 3x3x3 cube, but without the list syntax
# This is a 3x3.py file
from PyRubik import GetScramble
if __name__ == '__main__':
scramble: list = GetScramble.Cube3x3x3() # Create the scramble
# Show it
for move in scramble:
print(move, end=' ')
print()
# Your output must look similar like this
U L U2 F' U' D' F2 U' F L' R F2 B2 L2 R' F U' B F2 U' F B2 L U
PyRubik docs
Comming soon...
Made with :love: in Brazil :brazil:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file pyrubik-0.1.0.1.tar.gz.
File metadata
- Download URL: pyrubik-0.1.0.1.tar.gz
- Upload date:
- Size: 5.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
87647e654c28f4ad0736aae46367602efc44fe7854b36d393e5d082808d15159
|
|
| MD5 |
4c620154fbd6af5f2e56dcaa96c01135
|
|
| BLAKE2b-256 |
f3c16c0538a77450711b33bdbc9422b9952202673ad527c0ce931b8b5c1d9c7a
|
File details
Details for the file pyrubik-0.1.0.1-py3-none-any.whl.
File metadata
- Download URL: pyrubik-0.1.0.1-py3-none-any.whl
- Upload date:
- Size: 6.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.11
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3cecfecc5a267fc71c636b1708d0e09557bfd37eb5596f76c3928d09363dc4b4
|
|
| MD5 |
54776a40a1ae57ea2901330475012441
|
|
| BLAKE2b-256 |
1b91b9c1d78a05d4e1e078a92a4770e146f3dae9258ffdb9808786bd49d5c925
|