Skip to main content

Domain specific environment for dice

Project description

Open in molab

dicekit

Just some nice Dice objects in Python. Largely meant as a marimo demo.

Install

uv pip install dicekit

Usage

There are many ways to construct a Dice object, but a simple one is to specify the number of sides.

from dicekit import Dice

d6 = Dice.from_sides(6)
d8 = Dice.from_sides(8)

The nice thing about these objects is their representation in the notebook.

Dice output

To learn more, we recommend checking out this Marimo notebook. It shows the implementation, but also the flexibility of the objects. You can also copy the notebook and play around with it straight from the browser.

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

dicekit-0.1.3.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

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

dicekit-0.1.3-py3-none-any.whl (5.5 kB view details)

Uploaded Python 3

File details

Details for the file dicekit-0.1.3.tar.gz.

File metadata

  • Download URL: dicekit-0.1.3.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for dicekit-0.1.3.tar.gz
Algorithm Hash digest
SHA256 c1906749d165ece373f5a071dba278ac26ab382a4e80a8ae7cf3bf48ced80ada
MD5 eac45749e58d0fee4766886bb4e40f43
BLAKE2b-256 25d458c2f4a50b4b11dbfe967f4fea49c843c66ad894ef93968f1763c4a4caf3

See more details on using hashes here.

File details

Details for the file dicekit-0.1.3-py3-none-any.whl.

File metadata

  • Download URL: dicekit-0.1.3-py3-none-any.whl
  • Upload date:
  • Size: 5.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.13

File hashes

Hashes for dicekit-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 e629e73a8e2e7a59b0dced7f6cdade42dcc5ff6f29b2281abad104b594597472
MD5 bcaf30a9ff36afb10fd4ef652153e5d7
BLAKE2b-256 259ca5448ea0f96983ae54a0ee69962595768cd6b8ddc00d687e85cb8e52eef0

See more details on using hashes here.

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