Json Database full async
Project description
Json Database full async
Examples
•
News
Aio-Json
Example
from zjson import AsyncClient
db = AsyncClient(name="db.json", directory="cache")
async def main():
await db.set(
key="key",
value="value"
)
print(await db.get("key")) # value
await db.set(
key="key2",
value=[1, 2, 3],
expire=10 # expire after 10 seconds
)
await db.sleep(10)
print(await db.get("key2")) # None
db.run(main())
Installing
pip3 install -U zjson
Community
- Join the telegram channel: https://t.me/Y88F8
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
zjson-1.3.0.tar.gz
(5.4 kB
view hashes)
Built Distribution
zjson-1.3.0-py3-none-any.whl
(5.7 kB
view hashes)