Skip to main content

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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tketool_storage-1.4.3.tar.gz (20.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tketool_storage-1.4.3-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

Details for the file tketool_storage-1.4.3.tar.gz.

File metadata

  • Download URL: tketool_storage-1.4.3.tar.gz
  • Upload date:
  • Size: 20.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.6

File hashes

Hashes for tketool_storage-1.4.3.tar.gz
Algorithm Hash digest
SHA256 4aa2fdd452de8261d4192c120f1e80d1675a5ad831660092b5f9f80f0b6c087d
MD5 8ded7e6389c54c1cf3019229e9ac0cb0
BLAKE2b-256 590cc1ef350d4f09523a9c05d7b0dff008f30a8c3ec87f3b6aa974fb7b858e0e

See more details on using hashes here.

File details

Details for the file tketool_storage-1.4.3-py3-none-any.whl.

File metadata

File hashes

Hashes for tketool_storage-1.4.3-py3-none-any.whl
Algorithm Hash digest
SHA256 c9f0d1564ab8e00263155e7c85dbb8df0c8a3b83de5065122673ce70f4ca81b4
MD5 97f2f5fd1b0d80a5834ed646821bef9b
BLAKE2b-256 125b69059c19f60ec0671df0e172bd061efebac3abadd8157593cc91a2b92adf

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.4.3 This release

2 files

1.4.0

2 files

1.3.5

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page