Skip to main content

Interactivity tools for dyce

Project description

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.

Tests Coverage Version Development Stage License Supported Python Versions Supported Python Implementations pre-commit dyce-powered! Bear-ified™

anydyce – Application experiments for dyce

anydyce is a testing ground for various interactive interfaces to dyce (the dice mechanic modeling library). Currently, it includes:

  1. A JupyterLite graphing widget using Matplotlib and Jupyter Widgets for visualizing histograms and pools:
    • Try it! 👉 Try dyce 👈
  2. 💥 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.
    • Try it! 👉 Try the AnyDice-compatible playground 👈

!!! 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

anydyce 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 anydyce && ./anydyce/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:

Requirements

anydyce requires a relatively modern version of Python:

It has the following runtime dependencies:

anydyce is proudly 100% Bear-ified™! 👌🏾🐻

License

anydyce is licensed under the MIT License. See the included LICENSE file for details. Source code is available on GitHub.

  1. 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.

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

anydyce-0.5.0rc2.tar.gz (423.4 kB view details)

Uploaded Source

Built Distribution

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

anydyce-0.5.0rc2-py3-none-any.whl (63.9 kB view details)

Uploaded Python 3

File details

Details for the file anydyce-0.5.0rc2.tar.gz.

File metadata

  • Download URL: anydyce-0.5.0rc2.tar.gz
  • Upload date:
  • Size: 423.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for anydyce-0.5.0rc2.tar.gz
Algorithm Hash digest
SHA256 967439fe8f1b5b2e17ec96e7b99b15126dcf95ff28adbcdf47c537935b262ee9
MD5 b1dfaffae76fdb54d2a200895ec3f2c2
BLAKE2b-256 c2ad4a05080f177e6bf27f74877db676b9be29f7696da93372977d488ea87d15

See more details on using hashes here.

Provenance

The following attestation bundles were made for anydyce-0.5.0rc2.tar.gz:

Publisher: publish.yml on posita/anydyce

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

File details

Details for the file anydyce-0.5.0rc2-py3-none-any.whl.

File metadata

  • Download URL: anydyce-0.5.0rc2-py3-none-any.whl
  • Upload date:
  • Size: 63.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for anydyce-0.5.0rc2-py3-none-any.whl
Algorithm Hash digest
SHA256 0ba4f3c1e35d00d75d86c28637618c866cc4fe8e41f4d0f2b6ae63a033e08d4a
MD5 0cf6c941cb43879dd835047036928286
BLAKE2b-256 fc00cd33554dc416c0fa95b90a9a9a3f5aee78ca1ecd95fd78458c73789fa365

See more details on using hashes here.

Provenance

The following attestation bundles were made for anydyce-0.5.0rc2-py3-none-any.whl:

Publisher: publish.yml on posita/anydyce

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