Skip to main content

A statistics-duelling deck generator using data from wikipedia

Project description

Trop Tumps

A statistics-duelling deck generator using data from wikipedia.

Trop Tumps chooses random categories from dbpedia.org and turns them into (mostly-useless) printable decks of cards representing things from that category, complete with exciting statistics.

Installation

Note: Trop Tumps requires Python 3.6+

The simplest way to install Trop Tumps is using pip. With Python and pip installed, Trop Tumps can be installed from the Python Package Index with:

pip install troptumps

or directly from the source repository with:

pip install git+https://github.com/Frimkron/troptumps#egg=troptumps

Alternatively you can download the source and install it with the setup.py script.

Usage

If you have installed Trop Trumps, it can be run using the troptumps executable (troptumps.exe on Windows), otherwise the package can be run directly with python -m troptumps.

The script will connect to dbpedia.org and keep trying to find a suitable category of things to turn into a card deck. Eventually, with a bit of luck, a directory named deck_(something) will be written to the current working directory, containing a printable .pdf file.

To re-generate the PDF for an existing deck (e.g. to change the paper size), use the --datadir option to indicate the path of a deck_ directory. The PDF will be overwritten.

Use the --help flag to see the full list of options.

Licence

Trop Tumps is released under the GPL 3 licence. For the full text of this licence see LICENCE.txt.

Credits

Created by Mark Frimston

Github: https://github.com/Frimkron
Website: http://markrimston.co.uk
Email: mark@markfrimston.co.uk
Twitter: @frimkron
Mastodon: frimkron@mastodon.social

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for troptumps, version 1.0.1
Filename, size File type Python version Upload date Hashes
Filename, size troptumps-1.0.1.tar.gz (10.1 MB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page