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.

Source Distribution

troptumps-1.0.0.tar.gz (10.1 MB view hashes)

Uploaded Source

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