Skip to main content

python RPG Dice Parser and calculator

Project description

#pydiecalc

##Installation

`pip install pydiecalc`

##Usage

###As a CLI

To run the pydiecalc library as an interactive CLI you run the application
without arguments:

`pydiecalc`

###From the Command Line

To run the pydiecalc library from the command line you run the application with
arguments that will be parsed:

`pydiecalc 1d6 + 10`

###As a library

To use pydiecalc as a library you need to import it and then handle the output:

```
import pydiecalc

result, rolls = pydiecalc.roll('1d6 + 10')
```

`pydiecalc.roll` will raise `CaughtRollParsingError` if the parsing fails.

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

pydiecalc-0.1.0.tar.gz (4.1 kB view details)

Uploaded Source

File details

Details for the file pydiecalc-0.1.0.tar.gz.

File metadata

  • Download URL: pydiecalc-0.1.0.tar.gz
  • Upload date:
  • Size: 4.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pydiecalc-0.1.0.tar.gz
Algorithm Hash digest
SHA256 807be536a038fd0edfd3ab11478ab28e17540b7aaf1044b37ac73e220157dc16
MD5 f6f38fedde7796e69dda3d791b8ac707
BLAKE2b-256 a2f828d578efa9b0874f098e734a5bb0a1d3db49e3f3c5a9e38b71e36cf447e4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page