Skip to main content

Download and keep up to date your purchases from DriveThruRPG

Project description

dRPG downloads and keeps your purchases from DriveThruRPG up to date

Maintainability PyPI

Installation

This script runs with Python 3.9 and newer.

You can install dRPG from PyPI:

pip install --user drpg
drpg --help  # or python -m drpg --help

Usage

  1. Go to your account settings and generate a new application key in the "Library App Keys" section.
  2. Copy the key and run the script: drpg --token <YOUR_DRPG_TOKEN> - or set DRPG_TOKEN env variable and run drpg.
  3. Now just sit, relax and wait. Initial synchronization may take a while so why don't you grab a cup of tea or whatever your favourite beverage is. On consecutive runs the script will download only new and changed files which will be a way faster.

Compatibility

Because of the nature of using an undocumented API, this software may break without a notice. Version number indicates a year and a month when the software was proved to be working with a real DriveThruRPG account.

File name compatibility

The DriveThruRPG client does some interesting things with the names of directories. For example, if you buy a product from publisher "Game Designers' Workshop (GDW)" the DriveThruRPG client app will download it to a directory with the unwieldy name "Game Designers__039_ Workshop GDW".

By default, drpg gives directories more user friendly name. In the example above, the directory would be "Game Designers' Workshop (GDW)". However, this causes a problem if you intend to try to manage the same e-book library using both drpg and the DriveThruRPG client app. When you run the former, you'll get a friendly name, then when you run the latter it will download all the same files again and put them in a directory with the unfriendly name.

You can use the command line option --compatibility-mode to make drpg use the same naming scheme for files and directories as the DriveThruRPG client. We have also done our best to imitate DriveThruRPG's bugs while in --compatibility-mode but I'm sure there are some we missed.

Advanced options

You can change where your files will be downloaded by using --library-path path/to/your/directory.

By default the script does not compare files by md5 checksum to save time. You can turn it on by using --use-checksums.

You can change a log level by using --log-level=<YOUR_LOG_LEVEL>. Choices are DEBUG, INFO, WARNING, ERROR, CRITICAL.

You can do a "dry run" of the app by specifying --dry-run. This will determine all the digital content you have purchased, but instead of downloading each file it will print one line of information to show what file would have been downloaded if the --dry-run flag wasn't on. Use this if you want to test out the app without taking the time to download anything.

For more information, run the script with --help.

Found a bug?

Pull requests and bug reports are welcomed! See CONTRIBUTING.md for more details.

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

drpg-2025.7.8.tar.gz (9.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

drpg-2025.7.8-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

Details for the file drpg-2025.7.8.tar.gz.

File metadata

  • Download URL: drpg-2025.7.8.tar.gz
  • Upload date:
  • Size: 9.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for drpg-2025.7.8.tar.gz
Algorithm Hash digest
SHA256 d692179149774675bdd7c8def4aa260adab76f27c6fd8351c3fe015fd3561f24
MD5 e18abb99c1c97509a3c4a74784c57d08
BLAKE2b-256 ba3f59700a83748d3d38b4b72a92decae5d8726888117d9e4e23d7e094df5a93

See more details on using hashes here.

Provenance

The following attestation bundles were made for drpg-2025.7.8.tar.gz:

Publisher: build-and-publish.yml on glujan/drpg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file drpg-2025.7.8-py3-none-any.whl.

File metadata

  • Download URL: drpg-2025.7.8-py3-none-any.whl
  • Upload date:
  • Size: 11.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for drpg-2025.7.8-py3-none-any.whl
Algorithm Hash digest
SHA256 b650fb5412f2d951b43f134bafe74bcf75560cde5631ebf17183afa0358ad450
MD5 4220accce19e775df8184c13d94deed5
BLAKE2b-256 bbf5e4bc63ba4686b6d733ca40279ab6581b791174fc57d9acf73bffc5583be0

See more details on using hashes here.

Provenance

The following attestation bundles were made for drpg-2025.7.8-py3-none-any.whl:

Publisher: build-and-publish.yml on glujan/drpg

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

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