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

Installation

This script is tested with and requires Python 3.8.

You can install dRPG from PyPI:

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

Alternatively, you can checkout a repository, install dependencies from requirements.txt and run it using:

python3.8 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python -m drpg

Usage

  1. Go to your account settings and generate a new application key.
  2. Copy the key and run the script: drpg --token <YOUR_DRPG_TOKEN>.
  3. Now just sit, relax and wait. Initial synchronization may take a while. On consecutive runs the script will download only changed files.

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.

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

Development

Pull requests and bug reports are welcomed!

Running tests

To run tests, install dependencies from requirements.dev.txt and run tests with unittest:

pip install -r requirements.dev.txt
python -m unittest discover

Building a wheel

The project is using setuptools. To generate a wheel package run:

python3 setup.py bdist_wheel

The wheel package will be saved in a dist/ directory.

Building a binary distribution

Stand-alone executables are generated using PyInstaller. To generate a binary for your platform install dev requirements and run PyInstaller:

pip install -r requirements.dev.txt
pyinstaller drpg.spec

The binary will be saved in a dist/ directory.

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-0.0.6.tar.gz (5.9 kB view hashes)

Uploaded Source

Built Distribution

drpg-0.0.6-py3-none-any.whl (7.6 kB view hashes)

Uploaded Python 3

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