No project description provided
Project description
S3 Web Cache
This is a simple package for archiving web pages (HTML) to S3. It acts as a cache serving the S3 version of the page if it exists. If not it writes a version to s3.
Quickstart
Install
pip install s3webcache
Env variable
These env variables are assumed to be set
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
Usage
from s3webcache import S3WebCache
s3wc = S3WebCache(bucket_name='myBucket')
html = s3wc.get("https://en.wikipedia.org/wiki/Whole_Earth_Catalog")
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
S3WebCache-0.1.5.tar.gz
(2.8 kB
view hashes)
Built Distribution
Close
Hashes for S3WebCache-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1e8b1725f49f7a7e630d01b5675720b67dbc0b2f6784af3e99a97d55dec127e0 |
|
MD5 | 573fca0b4754ed79d51c31cec2b6c8c5 |
|
BLAKE2b-256 | af19ae001b7d355ccba1e5d3cdc06463713bb6f7158c3754d6b83e5237cca510 |