SFreeze
A small package for storing serialized python objects persitantly using Amazon AWS S3
Usage
SECURITY WARNING!!!
This library uses the python Pickle module to perform serialization. Be careful when thawing objects as it can lead to arbitrary code exectuion.
Only use this library on objects you trust
To use sfreeze you must have aws cli credentials setup that have access to read and write to the target S3 bucket.
Freezing an object
from sfreeze import s3_freeze
variable_to_freeze = 'some variable'
# s3_freeze takes the object, bucket, and optional key
# you can also send it other keyword args and they will
# get passed to a boto3.client('s3').put_object call
object_id = s3_freeze(variable_to_freeze, 'bucket', 'optional_key')
Thawing an object
from sfreeze import s3_thaw
# s3_thaw takes the object_id returned from s3_freeze,
# you can also send it other keyword args and they will
# get passed to a boto3.client('s3').put_object call
thawed_variable = s3_thaw(object_id)
Release files for sfreeze 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sfreeze-0.0.2.tar.gz | 2.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sfreeze-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size:5.1 kB
Release files / sfreeze-0.0.2.tar.gz
| Download URL | sfreeze-0.0.2.tar.gz |
|---|---|
| Size | 2.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
62588f943813cfac975e84173b74a5d038f3319aa8559e1665eb6530680eb997
|
|
BLAKE2b-256 checksum How to use checksums |
ea362229876b918dedc11084e49b863d5fb907ad824a2c3d290b5dea0eb1f185
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0
|
Release files / sfreeze-0.0.2-py3-none-any.whl
| Download URL | sfreeze-0.0.2-py3-none-any.whl |
|---|---|
| Size | 2.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f9113c456955ea0971aa6bfddcf5b6d846a96242b1d2e3c0b2ec83ffd5d487a0
|
|
BLAKE2b-256 checksum How to use checksums |
d7c828dec3dbba7fbb1fa0c22e65ea97bfb824db615b9f3770dc1c5c6a6427a5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.5.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.9.0
|