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

Dungeons and Dragons 5e Character Tools

Project description

A tool to create character sheets for Dungeons and Dragons.

https://travis-ci.com/canismarko/dungeon-sheets.svg?branch=master Documentation Status

Installation

$ pip install dungeonsheets

Note

Dungeon sheets requires at least python 3.6. This is mostly due to the liberal use of f-strings. If you want to use it with previous versions of python 3, you’ll probably have to replace all the f-strings with the older .format() method or string interpolation.

Optional External dependencies

  • You may use pdftk to generate the sheets in PDF format.
  • You will need pdflatex installed to generate the PDF spell pages (optional).

If pdftk is available, it will be used for pdf generation. If not, a fallback python library (pdfrw) will be used. This has some limitations:

  • Produces v1.3 PDF files
  • Not able to flatten PDF forms
  • Will produce separate character-sheets, spell-lists and spell-books.

Different linux distributions have different names for packages. While pdftk is available in Debian and derivatives as pdftk, the package is not available in some RPM distributions, such as Fedora and CentOS. One alternative would be to build your PC sheets using docker.

If the pdflatex command is available on your system, spellcasters will include a spellbook with descriptions of each spell known. If not, then this feature will be skipped.

Usage

Each character is described by a python file, which gives many attributes associated with the character. See examples for more information about the character descriptions.

The PDF’s can then be generated using the makesheets command.

$ cd examples
$ makesheets wizard.py

dungeon-sheets contains definitions for standard weapons and spells, so attack bonuses and damage can be calculated automatically.

If you’d like a step-by-step walkthrough for creating a new character, just run create-character from a command line and a helpful menu system will take care of the basics for you.

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
dungeonsheets-0.5.0-py3-none-any.whl (263.8 kB) Copy SHA256 hash SHA256 Wheel py3 Oct 17, 2018
dungeonsheets-0.5.0.tar.gz (259.6 kB) Copy SHA256 hash SHA256 Source None Oct 17, 2018

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