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 details)
Built Distribution
zjson-1.3.0-py3-none-any.whl
(5.7 kB
view details)
File details
Details for the file zjson-1.3.0.tar.gz
.
File metadata
- Download URL: zjson-1.3.0.tar.gz
- Upload date:
- Size: 5.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 434ebb39e467e455d57c77bcb7170a9ba25dab1a7d5f4f28a80816642efb9b5b |
|
MD5 | 542fe75ad310534fa72c60f900093e3a |
|
BLAKE2b-256 | 5dadec41b2d7610ee7db0be144a8bd49de4bba83a1f5321bc1db5ebe72cbd3d7 |
File details
Details for the file zjson-1.3.0-py3-none-any.whl
.
File metadata
- Download URL: zjson-1.3.0-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.2 CPython/3.10.6
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1de23e4a075c115a93184258f4635c80a02617483963d1611fd0116efb086713 |
|
MD5 | 98796567d8f578fe5fffd8f0a90d6da8 |
|
BLAKE2b-256 | c6669a2a352e58959673a8a3bb19b46ac0f5a759ba3f2971ae520dd745a70d19 |