Skip to main content

zjson
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

Metadata

Release files for zjson 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for zjson 1.3.0
File Size Uploaded
zjson-1.3.0.tar.gz 5.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for zjson 1.3.0
File Interpreter ABI Platform
zjson-1.3.0-py3-none-any.whl Python 3 none any Details

Total release size: 11.1 kB

Release files / zjson-1.3.0.tar.gz

Download URL zjson-1.3.0.tar.gz
Size 5.4 kB
Tags Source
SHA-256 checksum
How to use checksums
434ebb39e467e455d57c77bcb7170a9ba25dab1a7d5f4f28a80816642efb9b5b
BLAKE2b-256 checksum
How to use checksums
5dadec41b2d7610ee7db0be144a8bd49de4bba83a1f5321bc1db5ebe72cbd3d7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release files / zjson-1.3.0-py3-none-any.whl

Download URL zjson-1.3.0-py3-none-any.whl
Size 5.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1de23e4a075c115a93184258f4635c80a02617483963d1611fd0116efb086713
BLAKE2b-256 checksum
How to use checksums
c6669a2a352e58959673a8a3bb19b46ac0f5a759ba3f2971ae520dd745a70d19
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.10.6

Release history Release notifications | RSS feed

This release

1.3.0 This release

2 release files

1.2.0

2 release 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