Skip to main content

A simple dice roller

Project description

RPG Dice

Build Status

A simple dice parser for RPG sessions. Turns strings like 2d6 + d20 into dice roll results.

Installation

pip install rpg-dice

Usage

from rpg_dice import roll
results = roll("2d6")
results = roll("2d6 + d20")

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

rpg-dice-0.2.1.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file rpg-dice-0.2.1.tar.gz.

File metadata

  • Download URL: rpg-dice-0.2.1.tar.gz
  • Upload date:
  • Size: 2.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.50.0 CPython/3.6.7

File hashes

Hashes for rpg-dice-0.2.1.tar.gz
Algorithm Hash digest
SHA256 34c215c981481e91dfc4b8fbc0b24248353d060257b31af7d099c341b4a009db
MD5 615db96c95a727a833665fc2367a39c5
BLAKE2b-256 c1ac3c0ab058d855a2f9e012d201525da093999aff80bb670b3ea59065a7f3a0

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