add package: pyproject + src
AioKV: async file-backed key-value store for single-process local state (persist-forever, not a cache — no TTL/eviction). atomic writes via temp-file + os.replace, every read and write under one asyncio.Lock, blocking fs calls off the loop via asyncio.to_thread. set(key) defaults to int(time.time()) for seen/did-X-at-T. aiocache alias kept for back-compat. src/ layout, hatchling, aiofiles dep. Signed-off-by: disqualifier <dev@disqualifier.me>
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
[build-system]
|
||||
requires = ["hatchling"]
|
||||
build-backend = "hatchling.build"
|
||||
|
||||
[project]
|
||||
name = "aiokv"
|
||||
version = "0.1.0"
|
||||
description = "Async file-backed key-value store for single-process local state — atomic writes, no TTL, config-free, installable."
|
||||
requires-python = ">=3.10"
|
||||
dependencies = [
|
||||
"aiofiles>=23.0",
|
||||
]
|
||||
|
||||
[tool.hatch.build.targets.wheel]
|
||||
packages = ["src/aiokv"]
|
||||
Reference in New Issue
Block a user