S3 Content-Addressable Storage
Project description
S3 Content-Addressable Storage
Store files in S3 indexed by their SHA256 hash instead of by filename.
$ echo 'Hello World!' > foo
$ cp foo foo2
$ cat test.py
import s3_cas
c = s3_cas.S3CasClient("my-bucket", "blobs")
c.upload_file("foo")
c.upload_file("foo2")
$ python test.py
INFO:s3cas:Uploaded file to s3://my-bucket/blobs/03ba204e50d126e4674c005e04d82e84c21366780af1f43bd54a37816b6ab340
INFO:s3cas:File already exists with hash 03ba204e50d126e4674c005e04d82e84c21366780af1f43bd54a37816b6ab340, name foo, not uploading.
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
s3-cas-1.0.0.tar.gz
(3.6 kB
view hashes)
Built Distribution
Close
Hashes for s3_cas-1.0.0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 3d21cefbf181172ca3843f2fc02e17cd990dbb3f76046a5dd3fe3ecbf7a9b9ed |
|
MD5 | e460fecfc5c8ccfb52ef6d7d1655faca |
|
BLAKE2b-256 | 3947104237c0c2c92e75e57fa4d4c1adec367a7afc6898c990e3d2793ce8b70c |