convenience functions for serialization to s3
Project description
Shalosh -- convenience functions for serialization to s3
@author Boris Gorelik boris@gorelik.net @licencse This module is distributed under the MIT license
What's this?
In many cases, I had to implement an object that needs to save stuff either to the local fillesystem, or, depending on configuration, to a S3 instance. The provided module provides a single object that does exactly that: you initialize the object once, and then, you can use the various functions that it provides such as:
- ls
- path_exists
- rm
- rmtree
- ls
- load_pickle, dump_pickle
- load_json, dump_json
Testing & Usave
The packcage provides a set of unit tests that are located
in the tests
directory. Read through these files to learn how the
module is used. In order to be able to run the tests, you have to create a
secret
folder in the directory of this README.md. Create a confi.json
file in that
folder that looks like this:
{
"s3": {
"defaultBucket": "bucket",
"accessKey": "ABCDEFGHIJKLMNOP",
"accessSecret": "/accessSecretThatOnlyYouKnow"
}
}
What does the name mean?
In Hebrew, "shalosh" means "three". Thus, s-shalosh is s3.
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
Built Distribution
Hashes for sshalosh-borisgorelik-0.0.1.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9550a15f7a0b54a979bc0b82d7db134637c596740e221e916d78f692b5308629 |
|
MD5 | 9ba012c880823e6aa3783d23a300d701 |
|
BLAKE2b-256 | a3263b9ccda0d34b54aa9ee6a07d8ffaca8d730563e781d9cd68706cbbcb203c |
Hashes for sshalosh_borisgorelik-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 4c39711994cfc467ec76d17a24a7846dee03d3b22d9939a4a1ac9baffd150b0f |
|
MD5 | 66509206ed80628dc7d396d69dd6b9a0 |
|
BLAKE2b-256 | 23981d90e5d82b9447b16c0ad4daa6f20034d94867611c57e2e960a1636671b9 |