Result Vault
Python module for persisting results of computation in a database. It is desinged mainly for storing results from experiments, not for usage as cache. Therefore it supports data quering and not features like time-to-live.
from revault import computation, Store
@computation
def my_computation(x, y):
return x + y
with Store("sqlite:///path/to/db"):
assert my_computation(10, 20) == 30 # the function my_computation is performed
assert my_computation(10, 20) == 30 # the result is taken from DB
assert my_computation.load(10, 20) == 30 # load from DB, fails if not exists
my_computation(10, 20, replica=1) # call the function again and store the results
my_computation(10, 20, replica=2) # call the function again and store the results
assert my_computation.load_replicas(10, 20) == [30, 30, 30] # Load all replicas for given call
Metadata
Release files for revault 0.2.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 | Provenance | Actions |
|---|---|---|---|---|
| revault-0.2.0.tar.gz | 6.5 kB | Without provenance | Details for revault-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| revault-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for revault-0.2.0-py3-none-any.whl |
Total release size: 14.3 kB
Release files / revault-0.2.0.tar.gz
| Download URL | revault-0.2.0.tar.gz |
|---|---|
| Size | 6.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e0bbc47a664c6f549fbe2ac44b70565cf6bcdb903ee01dc4c7d24b6da3206d42
|
|
BLAKE2b-256 checksum How to use checksums |
a880d11ea0e66ce84a6709d55c991ec26274b8078c0ced84b76b95b5ac53939e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-35-generic
|
Release files / revault-0.2.0-py3-none-any.whl
| Download URL | revault-0.2.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
d48df940874485b3299cc29473064249d49681c70d51b57f6beef91199e81b28
|
|
BLAKE2b-256 checksum How to use checksums |
b1856fde0550ffe017fb557a1d4402eb1531c2d4f7e753fb6f8714e949eab5b7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
poetry/1.8.3 CPython/3.10.12 Linux/6.5.0-35-generic
|
Security for revault 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.