Skip to main content

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 die
  • roll 1d100: roll a d100 die
  • roll 2d20kh1: roll with advantage
  • roll 2d20kl1: roll with disadvantage
  • roll 2d20dl1: roll with advantage
  • roll 2d20dh1: roll with disadvantage
  • roll 1d20+4: roll a d20 die with a +4 modifier
  • roll 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

PyPI - Version

from dming.dice import roll

operation, result = roll("1d20+2")

Alternatives

Development

Installing poetry:

pipx install poetry

Installing development dependencies:

poetry install

Run:

poetry run roll <dice>

Release a new version

Check https://python-poetry.org/docs/cli/#version

poetry run python -m scripts.bump --help
poetry run python -m scripts.bump <major|minor|patch>

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

dming-0.1.1.tar.gz (3.1 kB view details)

Uploaded Source

Built Distribution

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

dming-0.1.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

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

Hashes for dming-0.1.1.tar.gz
Algorithm Hash digest
SHA256 3df86e7d33bb13bd9c7fa409f7a9857e2e8d9a4e6dc7725f51ad2154b062ef18
MD5 30b6671a91d484dcc20720a7844e8ea7
BLAKE2b-256 73b5332f941125d405506ebc04d59afd2860a74b21c0ec3647ba3c07df3c4d2c

See more details on using hashes here.

Provenance

The following attestation bundles were made for dming-0.1.1.tar.gz:

Publisher: release.yml on sauljabin/dming

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

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

Hashes for dming-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 720612f66affae62857ff42db7afef5adf8eb50ec92b692bfec503c73968f68a
MD5 6eac88e06418da2ac199ce87d17f552b
BLAKE2b-256 441400359db48e1bb2655a4ce963d51c404ba2ca3a22450a32ae3950860e7b8a

See more details on using hashes here.

Provenance

The following attestation bundles were made for dming-0.1.1-py3-none-any.whl:

Publisher: release.yml on sauljabin/dming

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