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-2.0.1.tar.gz (21.0 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-2.0.1-py3-none-any.whl (29.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tketool_storage-2.0.1.tar.gz
Algorithm Hash digest
SHA256 9f4de8567c16c4c66d97bc001e58df63c62dd1c0e4bf16631e79c07953240099
MD5 f003d33540b8cab13bdd32f647b44c89
BLAKE2b-256 eac986250e1b2be08c9bde8473ea540f70c23394b7a10f487b07b0dfdb3465b2

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tketool_storage-2.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 5f6c1545e38f7c566f09523e863dbcb744072e5aadbc45aaa1bcdc959a39a839
MD5 e739ac710476e456dc6761ada128aa46
BLAKE2b-256 2154492d654d2d058edb4ca935a5e27a5931fd8ea51920781c7062093d8f1366

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

2.0.1 This release

2 files

1.4.3

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