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
Built Distribution
File details
Details for the file ppad-0.0.11.tar.gz
.
File metadata
- Download URL: ppad-0.0.11.tar.gz
- Upload date:
- Size: 10.7 kB
- Tags: Source
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2bce7d83517996e0e75bf361d52c69f051bb1398e92b23f477cff34afbed695a |
|
MD5 | fb8cc0b5ebf483da6a3f918833343334 |
|
BLAKE2b-256 | b537d44a525c842a883ac6ac9622d55db5a122bc323b3aaeda9fcb904d2e2549 |
File details
Details for the file ppad-0.0.11-py3-none-any.whl
.
File metadata
- Download URL: ppad-0.0.11-py3-none-any.whl
- Upload date:
- Size: 11.3 kB
- Tags: Python 3
- Uploaded using 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
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9db93c3963959712584a4f4d00c409757a4a8d2eae8fd2ae4e4fc6fda9ed626f |
|
MD5 | 2cd029b28aaf5a50d2acb627b8fbe44a |
|
BLAKE2b-256 | 38f755dd766fcb178b50ad768b4e7dab6c820a7ef89089ac0c205c217c1f67a7 |