DMing is a CLI (command-line interface) collection useful when running a TTRPG (tabletop role-playing games).
Project description
DMing
DMing is a CLI (command-line interface) collection useful when running a TTRPG (tabletop role-playing game).
DMing(Dungeon Mastering): Performing as a dungeon master, or running a tabletop role-playing game, especially Dungeons & Dragons.
Installation
pipx install dming
Usage
Roll Dice
[!WARNING] DMing supports part of the Roll20 Dice Specification.
Use the command roll <dice>.
Examples:
roll 1d20: roll a d20 dieroll 1d100: roll a d100 dieroll 2d20kh1: roll with advantageroll 2d20kl1: roll with disadvantageroll 2d20dl1: roll with advantageroll 2d20dh1: roll with disadvantageroll 1d20+4: roll a d20 die with a +4 modifierroll 1d20-4: roll a d20 die with a -4 modifier
[!NOTE]
kh: keep highest
kl: keep lowest
dh: drop highest
dl: drop lowest
Using the Library
from dming.dice import roll
operation, result = roll("1d20+2")
Alternatives
- JavaScript: Dice Roller & Parser.
Development
Installing poetry:
pipx install poetry
Installing development dependencies:
poetry install
Run:
poetry run roll <dice>
Release a new version
poetry run python -m scripts.bump --help
poetry run python -m scripts.bump <major|minor|patch>
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 dming-0.1.1.tar.gz.
File metadata
- Download URL: dming-0.1.1.tar.gz
- Upload date:
- Size: 3.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3df86e7d33bb13bd9c7fa409f7a9857e2e8d9a4e6dc7725f51ad2154b062ef18
|
|
| MD5 |
30b6671a91d484dcc20720a7844e8ea7
|
|
| BLAKE2b-256 |
73b5332f941125d405506ebc04d59afd2860a74b21c0ec3647ba3c07df3c4d2c
|
Provenance
The following attestation bundles were made for dming-0.1.1.tar.gz:
Publisher:
release.yml on sauljabin/dming
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dming-0.1.1.tar.gz -
Subject digest:
3df86e7d33bb13bd9c7fa409f7a9857e2e8d9a4e6dc7725f51ad2154b062ef18 - Sigstore transparency entry: 677996176
- Sigstore integration time:
-
Permalink:
sauljabin/dming@d778a5d150a99508fc876377d73c5f1e60b18cbd -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sauljabin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d778a5d150a99508fc876377d73c5f1e60b18cbd -
Trigger Event:
push
-
Statement type:
File details
Details for the file dming-0.1.1-py3-none-any.whl.
File metadata
- Download URL: dming-0.1.1-py3-none-any.whl
- Upload date:
- Size: 4.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 |
720612f66affae62857ff42db7afef5adf8eb50ec92b692bfec503c73968f68a
|
|
| MD5 |
6eac88e06418da2ac199ce87d17f552b
|
|
| BLAKE2b-256 |
441400359db48e1bb2655a4ce963d51c404ba2ca3a22450a32ae3950860e7b8a
|
Provenance
The following attestation bundles were made for dming-0.1.1-py3-none-any.whl:
Publisher:
release.yml on sauljabin/dming
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dming-0.1.1-py3-none-any.whl -
Subject digest:
720612f66affae62857ff42db7afef5adf8eb50ec92b692bfec503c73968f68a - Sigstore transparency entry: 677996242
- Sigstore integration time:
-
Permalink:
sauljabin/dming@d778a5d150a99508fc876377d73c5f1e60b18cbd -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/sauljabin
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@d778a5d150a99508fc876377d73c5f1e60b18cbd -
Trigger Event:
push
-
Statement type: