Skip to main content

dRPG downloads and keeps your purchases from DriveThruRPG up to date

Maintainability PyPI

Installation

This script runs with Python 3.10 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.

Release files for drpg 2026.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for drpg 2026.7.1
File Size Uploaded
drpg-2026.7.1.tar.gz 10.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for drpg 2026.7.1
File Interpreter ABI Platform
drpg-2026.7.1-py3-none-any.whl Python 3 none any Details

Total release size: 23.7 kB

Release files / drpg-2026.7.1.tar.gz

Download URL drpg-2026.7.1.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
433053319d6b65896ceea56e91555eb237c4caf1b3ac5fddfb26b8766b7ae3bc
BLAKE2b-256 checksum
How to use checksums
8cae51643befeed5093e69e333d7a3d150f00fb516f4eb72a3c503c8c5094c78
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log

Release files / drpg-2026.7.1-py3-none-any.whl

Download URL drpg-2026.7.1-py3-none-any.whl
Size 13.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
245bb1d4b807073b5ce0e85f05281ec6e462a757077718efe58dfd43fa79bb21
BLAKE2b-256 checksum
How to use checksums
733961a11033eada4cf4fb752ab42c66552734569f5ec18f34cf3d385eb12d00
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.12

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Jul 1, 2026.

Transparency log
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page