Skip to main content

Papertrail log archives downloader

Project description

Papertrail log archives downloader

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

Uploaded Source

Built Distribution

ppad-0.0.7-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: ppad-0.0.7.tar.gz
  • Upload date:
  • Size: 10.1 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.7.tar.gz
Algorithm Hash digest
SHA256 274c48b1ea5bfedb9eb0f55cfd43e226feb1d006a94b99ecd252dd785d57aac2
MD5 03949c175c39137e351b0c066f90e146
BLAKE2b-256 4dbf25506c21dd14ee5cf37d78224d7c48889b0ab720da14741475fd90e39eda

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ppad-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 10.5 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 b64bc50b685d8f27aed099ed75f5dd6dc0188ba23598c2e3b766884179bed07f
MD5 54468cea2273eab1da6ef94be8994071
BLAKE2b-256 e2d96890a51a74a5e9cfecc4884f0f5a8a2a631bd4241f51b8772ce1b6252594

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