xdol
Extended Data Object Layers - dol-based tools
To install: pip install xdol
Persistent memoizer (record/replay)
Wrap a costly function (a paid API, a slow render) so the first run records its result to disk and every later run replays it:
from xdol import memoize_calls
@memoize_calls(
store="tests/cassettes", mode="record"
) # default mode is replay-only: a miss raises
def slow_square(x):
return {"result": x * x}
Stable keys (xdol.keys), text / JSON / binary / paired .json+.bin codecs, any MutableMapping as the store (a folder, S3), spend-safe replay by default. See misc/docs/persistent_memoizer.md.
Metadata
Release files for xdol 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| xdol-0.1.18.tar.gz | 55.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| xdol-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 97.6 kB
Release files / xdol-0.1.18.tar.gz
| Download URL | xdol-0.1.18.tar.gz |
|---|---|
| Size | 55.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2c84527e59fb32baf3194d3aaa75dba73da1166480c5c27d1f7852d6cf3aa464
|
|
BLAKE2b-256 checksum How to use checksums |
7e1e4ae1d29787f0b823ec24b461e112d76eb83cfc8560c9bd06aa8540c3a0e0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|
Release files / xdol-0.1.18-py3-none-any.whl
| Download URL | xdol-0.1.18-py3-none-any.whl |
|---|---|
| Size | 42.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
849ea47d8a247a7dc74bb038ae2db11898eaa0e0895ab5117850a08d95c9ec1a
|
|
BLAKE2b-256 checksum How to use checksums |
a7fa6ad8b7f70baf92df8e41dc4f441cd854d311d60a72ecca8524a3c69d856d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
|