Skip to main content

A simple library to generate trick combinations for wizard skating.

Project description

wzrdbrain

A library to generate random trick combinations for wizard skating.

Installation

pip install wzrdbrain

Usage

The primary function is generate_combo, which returns a list of trick dictionaries. You can also create Trick objects directly for more control.

from wzrdbrain import generate_combo, Trick

# Generate a combo of 3 tricks
combo = generate_combo(3)

# The output is a list of dictionaries, each representing a trick
# print(combo)
# Example output:
# [
#     {
#         'direction': 'front', 'stance': 'open', 'move': 'gazelle', 
#         'enter_into_trick': 'front', 'exit_from_trick': 'back', 
#         'name': 'front open gazelle'
#     },
#     {
#         'direction': 'back', 'stance': None, 'move': '360', 
#         'enter_into_trick': 'back', 'exit_from_trick': 'back', 
#         'name': 'fakie 360'
#     },
#     # ... and so on
# ]

# To get just the names of the tricks in the combo:
trick_names = [trick['name'] for trick in combo]
print(trick_names)
# Example output: ['front open gazelle', 'fakie 360', 'back open lion']

Creating a Trick Object

You can create a Trick object with specific attributes. Any attributes not provided will be randomly generated.

# Create a trick with a specific move
my_trick = Trick(move="lion s")

# Print the full trick object as a dictionary
print(my_trick.to_dict())
# Example output:
# {
#     'direction': 'back', 'stance': 'closed', 'move': 'lion s', 
#     'enter_into_trick': 'back', 'exit_from_trick': 'back', 
#     'name': 'back closed lion s'
# }

Development

To contribute to this project, please see the Contributing Guide.

First, clone the repository and install the project in editable mode with its development dependencies:

git clone https://github.com/nazroll/wzrdbrain.git
cd wzrdbrain
pip install -e .[dev]

You can run the test suite using pytest:

pytest

List of wizard skating tricks

The list of tricks in this library is not comprehensive. Please create an issue and give us your suggestions of new tricks

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

wzrdbrain-0.1.5.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

wzrdbrain-0.1.5-py3-none-any.whl (8.9 kB view details)

Uploaded Python 3

File details

Details for the file wzrdbrain-0.1.5.tar.gz.

File metadata

  • Download URL: wzrdbrain-0.1.5.tar.gz
  • Upload date:
  • Size: 9.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wzrdbrain-0.1.5.tar.gz
Algorithm Hash digest
SHA256 84a7d565212264a1326d9a6a931c8a5bea6ee9d796b2f38ecaa4645906f67be2
MD5 ffad0549e2884a1c09df3c519de5f9e7
BLAKE2b-256 e49b46a243749acdd16803f2f17e696a2251af573d3d0d0ab9a472d503991b03

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.1.5.tar.gz:

Publisher: release.yml on nazroll/wzrdbrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file wzrdbrain-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: wzrdbrain-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 8.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for wzrdbrain-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 d3c17b48f78d77bbf9296160d8444c21ebcb6e594fda6d785fe21a5d1b13b991
MD5 e4440c6a7e304fef0c1bad1f49302a52
BLAKE2b-256 e68e581dcba01090de1c9c9b39c3990257c8cdddb317e9fc11db8bcabd4a9970

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.1.5-py3-none-any.whl:

Publisher: release.yml on nazroll/wzrdbrain

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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