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.4.tar.gz (8.8 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.4-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wzrdbrain-0.1.4.tar.gz
  • Upload date:
  • Size: 8.8 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.4.tar.gz
Algorithm Hash digest
SHA256 66771587489d245f76c6675d940fb7ebbeb1bea171b9f9768ef5571b356b3f80
MD5 bacb77165da1d59c4384c73ada4da852
BLAKE2b-256 bf649528678ffa2875af926ee6f43518f48101fdc6f6947d6a060a42e8732474

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.1.4.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.4-py3-none-any.whl.

File metadata

  • Download URL: wzrdbrain-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 8.2 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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a30ea52b0a3ce5c3b9c6c0c5f70c3c04d46dc41dfe5321681d6733c564d2d4d3
MD5 050305ea6d64ab9182612cb9d9df472b
BLAKE2b-256 ff8b155c6934281320fe7b02f08b817fd26c93a9d8b8e53844b5a3812a909639

See more details on using hashes here.

Provenance

The following attestation bundles were made for wzrdbrain-0.1.4-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