Skip to main content

# PyPI CDN Log Archiver

  1. Get raw logs from S3 like object store, written by the cdn

  2. Archive and compress them

  3. Upload archive back to S3 like object store, in a sane structure

  4. 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)

Source distribution for pypi-cdn-log-archiver 0.1.5
File Size Uploaded
pypi-cdn-log-archiver-0.1.5.tar.gz 3.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pypi-cdn-log-archiver 0.1.5
File Interpreter ABI Platform
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

Release history Release notifications | RSS feed

0.1.9

1 release file

0.1.7

2 release files

0.1.6

1 release file

This release

0.1.5 This release

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

3 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page