Skip to main content

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 Scramble

if __name__ == '__main__':
  scramble: list = Scramble.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 Scramble

if __name__ == '__main__':
  scramble: list = Scramble.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

You can get the project documentation right here.


Made with ❤️ in Brazil 🇧🇷

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyrubik-0.1.0.2.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyrubik-0.1.0.2-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file pyrubik-0.1.0.2.tar.gz.

File metadata

  • Download URL: pyrubik-0.1.0.2.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pyrubik-0.1.0.2.tar.gz
Algorithm Hash digest
SHA256 f65c2916d1ab568c6578f065edcc3458193fa7e8e40cba93b8b6cd591b8411e6
MD5 5ded9f66cda2d9d7db4a0fa1f5908eac
BLAKE2b-256 de9e416451c94305bfb91dc32578db90a53cf98f92cf273603ce8ccd4a9efca5

See more details on using hashes here.

File details

Details for the file pyrubik-0.1.0.2-py3-none-any.whl.

File metadata

  • Download URL: pyrubik-0.1.0.2-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.11

File hashes

Hashes for pyrubik-0.1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 648473ca62f004e455ec9609d78ba9b5e27f8362671f2bed4ab264028e8e7569
MD5 e154d6bd5b30383e16af9277a030b172
BLAKE2b-256 eee0e2540cef8e48add7550fe4cd529e731fc46bfa9028f32a5874353731ddb9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page