This release is a pre-release and may not be stable for production use.
Copyright and other protections apply.
Please see the accompanying LICENSE file for rights and restrictions governing use of this software.
All rights not expressly waived or licensed are reserved.
If that file is missing or appears to be modified from its original, then please contact the author before viewing or using this software in any capacity.
dyceum – Application experiments for dyce
dyceum is a testing ground for various interactive interfaces to dyce (the dice mechanic modeling library).
Currently, it includes:
- A JupyterLite graphing widget using Matplotlib and
Jupyter Widgetsfor visualizing histograms and pools: - 💥 New! 💥 A fully functioning, (mostly1) compatible, pure-Python AnyDice language interpreter and interactive playground. Quite a bit of detail is provided on how it was built, how it differs from the original, and all the pitfalls and nuances discovered along the way.
!!! danger "JupyterLite may not save your work!"
JupyterLite attempts to make use of your browser’s local storage for saving notebook changes.
Browser environments vary, including how long local storage is persisted.
Further, Binder loses all state once its instances shut down after a period of inactivity.
Be careful to download any notebooks you wish to keep.
If you find anything lacking in any way, please don’t hesitate to bring it to my attention.
Running locally
dyceum is also available as a PyPI package and as source.
To try it on your own hardware, use the quickstart-local.sh script to create a local virtual environment and bootstrap a local copy.
% git clone https://github.com/posita/anydyce.git dyceum && ./dyceum/quickstart-local.sh
...
INFO - Documentation built in 4.84 seconds
INFO - [20:39:05] Serving on http://127.0.0.1:8000/
Once loaded, try the following:
- Introduction Jupyter Lite notebook - http://127.0.0.1:8000/jupyter/lab/?path=dyceum_intro.ipynb
- AnyDice-compatible playground - http://127.0.0.1:8000/playground/
Requirements
dyceum requires a relatively modern version of Python:
It has the following runtime dependencies:
dycefor dice mechanic modeling- Lark for the AnyDice interpreter
- Matplotlib (optional) for visualizing histograms and pools
Jupyter Widgets(optional) for interactivity in Jupyter
dyceum is proudly 100% Bear-ified™! 👌🏾🐻
License
dyceum is licensed under the MIT License.
See the included LICENSE file for details.
Source code is available on GitHub.
-
It is not bug-compatible, instead including fixes for several longstanding implementation errors in AnyDice itself. Further, it does not support AnyDice’s
legacy "..."syntax. ↩
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 dyceum-0.5.0rc5.tar.gz.
File metadata
- Download URL: dyceum-0.5.0rc5.tar.gz
- Upload date:
- Size: 503.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
340175e347bd67d7116e9dbdc7cb29acf1504410cd1249821b2830b762047ee9
|
|
| MD5 |
511df3aaafff9650578b11180f7167d0
|
|
| BLAKE2b-256 |
ba6878a377e0d3dd4a2f84b4c8b527db3993ba62509ef82397e687946d2cb23d
|
Provenance
The following attestation bundles were made for dyceum-0.5.0rc5.tar.gz:
Publisher:
publish.yml on posita/anydyce
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dyceum-0.5.0rc5.tar.gz -
Subject digest:
340175e347bd67d7116e9dbdc7cb29acf1504410cd1249821b2830b762047ee9 - Sigstore transparency entry: 2568247408
- Sigstore integration time:
-
Permalink:
posita/anydyce@ab16ddfd31e40325e9a06b64bc813bd56531d441 -
Branch / Tag:
refs/tags/v0.5.0rc5 - Owner: https://github.com/posita
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ab16ddfd31e40325e9a06b64bc813bd56531d441 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dyceum-0.5.0rc5-py3-none-any.whl.
File metadata
- Download URL: dyceum-0.5.0rc5-py3-none-any.whl
- Upload date:
- Size: 62.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc32d54ae8284298c46cd5e7599c671ffe4a82584608bbc21bec5539b4faef9e
|
|
| MD5 |
4c848f35a0baade1cd5ea9662d332997
|
|
| BLAKE2b-256 |
34655c43d73d4f588bdd72b87a116f4865fddf48b7d56ad413330031be760ede
|
Provenance
The following attestation bundles were made for dyceum-0.5.0rc5-py3-none-any.whl:
Publisher:
publish.yml on posita/anydyce
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dyceum-0.5.0rc5-py3-none-any.whl -
Subject digest:
fc32d54ae8284298c46cd5e7599c671ffe4a82584608bbc21bec5539b4faef9e - Sigstore transparency entry: 2568247434
- Sigstore integration time:
-
Permalink:
posita/anydyce@ab16ddfd31e40325e9a06b64bc813bd56531d441 -
Branch / Tag:
refs/tags/v0.5.0rc5 - Owner: https://github.com/posita
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@ab16ddfd31e40325e9a06b64bc813bd56531d441 -
Trigger Event:
push
-
Statement type: