# PyPI CDN Log Archiver
Get raw logs from S3 like object store, written by the cdn
Archive and compress them
Upload archive back to S3 like object store, in a sane structure
Remove raw logs that were archived
# Usage
You’ll need to export some env variables to get started:
$ export ACCESS_KEY=<your_access_key> $ export SECRET_KEY=<your_access_key> $ export PYPI_LOG_BUCKET=<bucket_name> $ export S3_HOST=<s3_like_host> (e.g. s3.amazonaws.com, objects.dreamhost.com)
Optionally you can set the date to archive like so:
$ export PYPI_LOG_DATE=2014-02-11
You can enable some debug output with:
$ export DEBUG=10
If you don’t set PYPI_LOG_DATE, the script will default to looking for yesterdays date.
Now you should be able to run it:
$ python pypi-cdn-log-archiver.py 112373 bytes written to testpypi-cdn-logs/archive/2014/2
Release files for pypi-cdn-log-archiver 0.1.5
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pypi-cdn-log-archiver-0.1.5.tar.gz | 3.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pypi_cdn_log_archiver-0.1.5-py2.7.egg | Legacy Egg format | - | - | Details |
Total release size:6.1 kB
Release files / pypi-cdn-log-archiver-0.1.5.tar.gz
| Download URL | pypi-cdn-log-archiver-0.1.5.tar.gz |
|---|---|
| Size | 3.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
bdb2eedd1e8ee5f76b7ef708e5942f0572a3e0f6211917697d60873ca9bb7455
|
|
BLAKE2b-256 checksum How to use checksums |
5416f080d195a6ab5541775f7ee772699f42c5d7d7dd531627b702fed7c20f9b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Release files / pypi_cdn_log_archiver-0.1.5-py2.7.egg
| Download URL | pypi_cdn_log_archiver-0.1.5-py2.7.egg |
|---|---|
| Size | 3.1 kB |
| Tags | Egg |
|
SHA-256 checksum How to use checksums |
eaae5496b34393a5cda68488bbdb895a2ac1062e99c9d03b46a1e196d9468eb8
|
|
BLAKE2b-256 checksum How to use checksums |
05f85c0fb05f76cbd931b7a01603429597afed2dc71eb032fb9e16548d0f146f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |