A python tool for freezing objects in AWS S3
Project description
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)
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
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file sfreeze-0.0.2.tar.gz.
File metadata
- Download URL: sfreeze-0.0.2.tar.gz
- Upload date:
- Size: 2.5 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
62588f943813cfac975e84173b74a5d038f3319aa8559e1665eb6530680eb997
|
|
| MD5 |
0fa2499277541782761c012090011c32
|
|
| BLAKE2b-256 |
ea362229876b918dedc11084e49b863d5fb907ad824a2c3d290b5dea0eb1f185
|
File details
Details for the file sfreeze-0.0.2-py3-none-any.whl.
File metadata
- Download URL: sfreeze-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f9113c456955ea0971aa6bfddcf5b6d846a96242b1d2e3c0b2ec83ffd5d487a0
|
|
| MD5 |
685438a970db80722d89a53ab68d9be6
|
|
| BLAKE2b-256 |
d7c828dec3dbba7fbb1fa0c22e65ea97bfb824db615b9f3770dc1c5c6a6427a5
|