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
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 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
66771587489d245f76c6675d940fb7ebbeb1bea171b9f9768ef5571b356b3f80
|
|
| MD5 |
bacb77165da1d59c4384c73ada4da852
|
|
| BLAKE2b-256 |
bf649528678ffa2875af926ee6f43518f48101fdc6f6947d6a060a42e8732474
|
Provenance
The following attestation bundles were made for wzrdbrain-0.1.4.tar.gz:
Publisher:
release.yml on nazroll/wzrdbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wzrdbrain-0.1.4.tar.gz -
Subject digest:
66771587489d245f76c6675d940fb7ebbeb1bea171b9f9768ef5571b356b3f80 - Sigstore transparency entry: 501181633
- Sigstore integration time:
-
Permalink:
nazroll/wzrdbrain@4719fa65d630793d4df445b08c65a5af47ec3322 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/nazroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4719fa65d630793d4df445b08c65a5af47ec3322 -
Trigger Event:
release
-
Statement type:
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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a30ea52b0a3ce5c3b9c6c0c5f70c3c04d46dc41dfe5321681d6733c564d2d4d3
|
|
| MD5 |
050305ea6d64ab9182612cb9d9df472b
|
|
| BLAKE2b-256 |
ff8b155c6934281320fe7b02f08b817fd26c93a9d8b8e53844b5a3812a909639
|
Provenance
The following attestation bundles were made for wzrdbrain-0.1.4-py3-none-any.whl:
Publisher:
release.yml on nazroll/wzrdbrain
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
wzrdbrain-0.1.4-py3-none-any.whl -
Subject digest:
a30ea52b0a3ce5c3b9c6c0c5f70c3c04d46dc41dfe5321681d6733c564d2d4d3 - Sigstore transparency entry: 501181684
- Sigstore integration time:
-
Permalink:
nazroll/wzrdbrain@4719fa65d630793d4df445b08c65a5af47ec3322 -
Branch / Tag:
refs/tags/v0.1.4 - Owner: https://github.com/nazroll
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@4719fa65d630793d4df445b08c65a5af47ec3322 -
Trigger Event:
release
-
Statement type: