Quickly store arbitrary Python objects in unique files.
Project description
quickdump
Quickly store arbitrary Python objects in unique files.
Library status - this is an experimental work in progress that hasn't been battle-tested at all. The API may change often between versions, and you may lose all your data.
Features
- Store arbitrary objects with
cloudpickle
locally - No config or boilerplate required
- Dump from TCP server
- Dump from HTTP server
Notes
(todo - rewrite this in a coherent manner)
- If an object from a library is dumped, the Python interpreter (or virtual environment) must have the library installed.
- Currently, compression is applied per call to
dump
. This isn't very efficient. - Labels are slugified to prevent errors from invalid characters in the filename.
from quickdump import QuickDumper, iter_dumps
if __name__ == "__main__":
qd = QuickDumper("some_label")
test_size = 1000
qd(*[("one", "two", i) for i in range(test_size)])
# In a separate run...
for obj in iter_dumps("some_label"):
print(obj)
# or:
for obj in qd.iter_dumps():
print(obj)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
quickdump-0.4.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
Close
Hashes for quickdump-0.4.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7dc2c8d587fac73fd593e5d32bc137b4faa89f8d653e51b965811c80d4306764 |
|
MD5 | 6133932ed2aeff11fb761d76372ef172 |
|
BLAKE2b-256 | be863be2c5c3db22cfa247f2b1ecb7e9b38098db952a5a02ad7595ae17f95647 |