Skip to main content
Join the official Python Developers Survey 2018 and win valuable prizes: Start the survey!

python RPG Dice Parser and calculator

Project description


[![Build Status](](


`pip install pydiecalc`


###As a CLI

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


###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.

Filename, size & hash SHA256 hash help File type Python version Upload date
pydiecalc-0.1.3.tar.gz (4.3 kB) Copy SHA256 hash SHA256 Source None Apr 27, 2016

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page