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.10.tar.gz (10.7 kB view details)

Uploaded Source

Built Distribution

ppad-0.0.10-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppad-0.0.10.tar.gz
  • Upload date:
  • Size: 10.7 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.10.tar.gz
Algorithm Hash digest
SHA256 aeef68234b2607b76990c50d86b3243942e94416ad5efe90cfc27a9f5b4f41cc
MD5 4698fd4d9b3741f4ce853d9131d8ed1c
BLAKE2b-256 149f00eb656c80a63bd60f10e2408d81d01ce436bc15f72fbcfb0e7d2de7ed8d

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppad-0.0.10-py3-none-any.whl
  • Upload date:
  • Size: 11.3 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.10-py3-none-any.whl
Algorithm Hash digest
SHA256 2f37731794ee5cd8afa8c84287da54f1fbc6e4105e2e7a2cf8daf9aa75083f00
MD5 4ea363337931d92f6e0f22321653cfc8
BLAKE2b-256 5f201d3f422882439afe955c92a892de684fcd215fe437d57d0c5aaa54a63cf6

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