quickdump
Quickly store arbitrary Python objects in local files.
Library status - this is an experimental work in progress that hasn't been battle-tested at all. The API will change often between versions, and you may lose all your data due to silly bugs.
Features
- Store arbitrary objects locally
- No config or boilerplate required
- Dump to TCP server
- Dump to HTTP server
Notes
(todo - rewrite this in a coherent manner)
- Currently, compression is applied per call to
dump. This isn't very efficient (probably?) - Labels are slugified to prevent errors from invalid characters in the filename
Quickly dump (almost) any object you like:
from quickdump import qd, QuickDumper
from decimal import Decimal
for i in range(10):
result = Decimal(i) ** Decimal("0.5")
qd(result)
And use them whenever it's convenient later:
for obj in qd.iter_dumps():
print(obj) # 0
# 1.000000000000000000000000000
# 1.414213562373095048801688724
# ...
Dump objects assigning a label, or create a dumper with a pre-configured label:
qd("Armação", "Campeche", "Solidão", label="beaches")
beach_dumper = QuickDumper("beaches")
beach_dumper("Morro das Pedras", "Açores", "Gravatá")
Iterate over multiple labels (including the default):
for obj in qd.iter_dumps("beaches", "default_dump"):
print(obj)
Iterate only over objects that match some filter:
def filter_initial_a(obj):
return not obj.startswith("A")
for obj in qd.iter_dumps("beaches", filter_fun=filter_initial_a):
print(obj) # Campeche
# ...
Someday™
- Enable simple serialization of unpicklable types (e.g. save a
sockettype property of some object assocket's string representation instead of just ignoring the object) - Quickdump by piping from shell
- Function decorator able to log function inputs and/or outputs
- Real time visualization of dumped data and metadata
Release files for quickdump 0.5.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| quickdump-0.5.0.tar.gz | 7.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| quickdump-0.5.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 16.4 kB
Release files / quickdump-0.5.0.tar.gz
| Download URL | quickdump-0.5.0.tar.gz |
|---|---|
| Size | 7.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f41faa182f189c749b14eb95d4bd6bff41aca5ae850b9394b373943e1d82088c
|
|
BLAKE2b-256 checksum How to use checksums |
9844195c47abbba26eb1575519a0409b3a49522bcce9a1d08f22503d77660649
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.0 Linux/5.13.0-7614-generic
|
Release files / quickdump-0.5.0-py3-none-any.whl
| Download URL | quickdump-0.5.0-py3-none-any.whl |
|---|---|
| Size | 8.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
39f742fe4d6f0559be2c1ee1bf08371b2d591878b210423093393957e6436ab9
|
|
BLAKE2b-256 checksum How to use checksums |
e05f1973f9691bc43bacf3a5dc70ce638aed8e4673caaca6d4387724020a15ff
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.1.12 CPython/3.10.0 Linux/5.13.0-7614-generic
|