derby
simple dice rolling library
from derby import roll
stats = ['str','int','wis','dex','con','cha']
character = { stat: roll('3d6').value for stat in stats } # roll('4d6h3') if your GM is nice enough
examples
roll('1d20+1')
roll('2d20h1+1') # rolling with advantage
# or
roll('2d20+1h1') # mod order is pretty flexible
# but
roll('3d6 h2 l1') != roll('3d6 l1 h2')
command line
$ python -m derby 2d10 1d20 3d6+1
Metadata
Release files for derby 0.5.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| derby-0.5.1.win32.zip | 10.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| derby-0.5.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.6 kB
Release files / derby-0.5.1.win32.zip
| Download URL | derby-0.5.1.win32.zip |
|---|---|
| Size | 10.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bde72d5c7db43731a059913f1edc4bde7ae1b6e030eb0c5d3a73fc7a8e173058
|
|
BLAKE2b-256 checksum How to use checksums |
b3602bd6ac1269b01a16bf3164d7c93e5467bd8c1dd967ed68b8be22152f590b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / derby-0.5.1-py3-none-any.whl
| Download URL | derby-0.5.1-py3-none-any.whl |
|---|---|
| Size | 4.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
4e1b23edf59c23f50edccb92573b4c77a25fded922022387c41554211339cc6a
|
|
BLAKE2b-256 checksum How to use checksums |
80d3e7efb3742d13d0ac874f876b0187edee7cec6851dc243c4261b16841ed30
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |