Skip to main content

Papertrail log archives downloader

ppad, stands for PaPertrail log Archives Downloader, can download log archives from Papertrail.

The downloading process works on multi-thread and checking API's Rate Limits from the header so you can download the archives fastly and safely.

Install

Please use pip

pip install ppad

Usage

Please set your token to the environment variable named PAPERTRAIL_API_TOKEN to run the script.

$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ppad # Download all the log archives
$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ppad 2020-01-01~2020-02-01 # Download the archives which have logged January 2020
$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ppad 2020-01-01~ # Specified the since date (including the since date file)
$ PAPERTRAIL_API_TOKEN=YOUR_TOKEN ppad ~2020-02-01 # Specified the until date (NOT including the until date file)

By running the above command(s), you can get the log archives named such as 2020-01-01-XX.tsv.gz in the current directory.

The date format is ISO-8601 format supported.

(The script uses dateutil.isoparse)

Metadata

Release files for ppad 0.0.11

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

Source distribution (sdist)

Source distribution for ppad 0.0.11
File Size Uploaded
ppad-0.0.11.tar.gz 10.7 kB Details

Built distribution (wheel)

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

Total release size: 22.1 kB

Release files / ppad-0.0.11.tar.gz

Download URL ppad-0.0.11.tar.gz
Size 10.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2bce7d83517996e0e75bf361d52c69f051bb1398e92b23f477cff34afbed695a
BLAKE2b-256 checksum
How to use checksums
b537d44a525c842a883ac6ac9622d55db5a122bc323b3aaeda9fcb904d2e2549
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.0

Release files / ppad-0.0.11-py3-none-any.whl

Download URL ppad-0.0.11-py3-none-any.whl
Size 11.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9db93c3963959712584a4f4d00c409757a4a8d2eae8fd2ae4e4fc6fda9ed626f
BLAKE2b-256 checksum
How to use checksums
38f755dd766fcb178b50ad768b4e7dab6c820a7ef89089ac0c205c217c1f67a7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.6.1 requests/2.25.1 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.55.1 CPython/3.9.0

Release history Release notifications | RSS feed

This release

0.0.11 This release

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

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