Dicey
======= version 2.0.7
A python package for evaluating dice rolls.
Description
Dicey parses strings of dice rolls of the form:
'1d20 + 2 + 2d4 - 1d8 + 1 - min {3}'
Where min (or max) holds the value of the highest or lowest single die rolled and {3} is how many times to repeat the expression. [min|max] and {num} are optional.
Dicey then rolls the specified dice, and computes the total. Valid arithmentic operators are + - * / (). Dicey will always translate individual die expressions to a randomized result
before applying arithmetic operators.
Installation
pip install dicey
Usage
Command Line
Usage:
dicey
dicey <expression>
Options:
-h --help show this screen.
As a python package
from dicey.dieparser import DieParser
d = DieParser()
d.parse('1d20 + 1d4 + 2')
result = d.__str__()
print(result)
# or of course simply:
print(d)
Metadata
Release files for dicey 2.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| dicey-2.0.7.tar.gz | 5.2 kB | Without provenance | Details for dicey-2.0.7.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| dicey-2.0.7-py3-none-any.whl | Python 3 | none | any | Details for dicey-2.0.7-py3-none-any.whl |
Total release size: 11.9 kB
Release files / dicey-2.0.7.tar.gz
| Download URL | dicey-2.0.7.tar.gz |
|---|---|
| Size | 5.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
ccbc89b7e3f7173289528759af872785332062cb0eedd9edd4daeb849628188c
|
|
BLAKE2b-256 checksum How to use checksums |
4bf4daadf6a7dc087d45a3d0bbf96aca8dd191398f7809dcc0ab36b042c3a285
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Release files / dicey-2.0.7-py3-none-any.whl
| Download URL | dicey-2.0.7-py3-none-any.whl |
|---|---|
| Size | 6.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
70b8f705eba737fe5c4c675f9a6aedc8c31ab28937aab1941e4e2bc80fd292b6
|
|
BLAKE2b-256 checksum How to use checksums |
944eb62660b537729cd60559da980fe6666d43e162678060e66bce87b650d445
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/41.2.0 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
|
Security for dicey 2.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.