tketool.storage
Extensible graphs, trees, maps, lists, and linked lists over replaceable ordered storage backends.
pip install tketool.storage
from tketool.storage import Graph, MemoryBackend, PersistentMap, Tree
backend = MemoryBackend()
settings = PersistentMap(backend, "settings")
settings.put("language", "zh-CN")
graph = Graph(backend, "knowledge")
person = graph.add_node("alice", {"name": "Alice"}, type="person")
Optional adapters:
pip install "tketool.storage[sql]"
pip install "tketool.storage[postgresql]"
pip install "tketool.storage[redis]"
The dependency-free adapters are MemoryBackend and SQLiteBackend.
SQLAlchemyBackend uses SQLAlchemy Core and database-specific drivers;
RedisBackend uses redis-py and an atomic Lua batch.
The old tketool.ml/tketool.ml2 and domain-specific StorageBase APIs are
not retained. New backends only
implement point read, ordered scan, atomic batch, and transaction primitives;
new data structures compose those primitives without changing adapters.
Metadata
Release files for tketool.storage 2.0.1
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 | |
|---|---|---|---|---|
| tketool_storage-2.0.1.tar.gz | 21.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tketool_storage-2.0.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 50.5 kB
Release files / tketool_storage-2.0.1.tar.gz
| Download URL | tketool_storage-2.0.1.tar.gz |
|---|---|
| Size | 21.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9f4de8567c16c4c66d97bc001e58df63c62dd1c0e4bf16631e79c07953240099
|
|
BLAKE2b-256 checksum How to use checksums |
eac986250e1b2be08c9bde8473ea540f70c23394b7a10f487b07b0dfdb3465b2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Release files / tketool_storage-2.0.1-py3-none-any.whl
| Download URL | tketool_storage-2.0.1-py3-none-any.whl |
|---|---|
| Size | 29.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
5f6c1545e38f7c566f09523e863dbcb744072e5aadbc45aaa1bcdc959a39a839
|
|
BLAKE2b-256 checksum How to use checksums |
2154492d654d2d058edb4ca935a5e27a5931fd8ea51920781c7062093d8f1366
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.14.6
|
Security for tketool.storage 2.0.1
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.