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

Uploaded Source

Built Distribution

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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppad-0.0.8.tar.gz
  • Upload date:
  • Size: 10.3 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.8.tar.gz
Algorithm Hash digest
SHA256 9b0e054b3375fdd4cad5e772e3dc4191bba4b7a3b304582fb55c2a17ddd2d3b8
MD5 b49d00b569194c6773d1e95726fb6a48
BLAKE2b-256 2d62b3f2f005759f261343cab81590e17d46b840f35ab895d98eab7fc4f2c2cc

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppad-0.0.8-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.8-py3-none-any.whl
Algorithm Hash digest
SHA256 7e5dbef02bb4254a92d9e66db97bde93399ce6935293cc37dc1e57c2b9932a20
MD5 681eeb6ebf36ced37a47495737c6de64
BLAKE2b-256 a9bb0ed8bd6ac37ed32299cb0fae2b7adbf2e9ef242fdacdf995eaf170a526bb

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