Skip to main content

Papertrail log archives downloader

Project description

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)

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

ppad-0.0.9.tar.gz (10.4 kB view details)

Uploaded Source

Built Distribution

ppad-0.0.9-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

Details for the file ppad-0.0.9.tar.gz.

File metadata

  • Download URL: ppad-0.0.9.tar.gz
  • Upload date:
  • Size: 10.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for ppad-0.0.9.tar.gz
Algorithm Hash digest
SHA256 6788224d630650124f1b217b7c5fef306b7c9b9ce4f790d2372fb20771ce5948
MD5 ce4b3e656e497cf9b532722952c8f2c0
BLAKE2b-256 715fd99920ffba9fc54e96ea8875ffd69c6346d3dcefb9a4c608d0bc5a56f428

See more details on using hashes here.

File details

Details for the file ppad-0.0.9-py3-none-any.whl.

File metadata

  • Download URL: ppad-0.0.9-py3-none-any.whl
  • Upload date:
  • Size: 10.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.6.1 requests/2.24.0 setuptools/50.3.2 requests-toolbelt/0.9.1 tqdm/4.51.0 CPython/3.8.5

File hashes

Hashes for ppad-0.0.9-py3-none-any.whl
Algorithm Hash digest
SHA256 db7e277ddb03ef78aae9e67c39e78d4a9fdc02eb23ad53b79d05f3b20e3c7fe9
MD5 2ca5dc116364c8cc209a9d46f16ea672
BLAKE2b-256 5c8a1cb16cdb9d2151fb25149a51a38026b4b1af03c5ec69daebc445467248f1

See more details on using hashes here.

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