You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

zjson

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

zjson

Json Database full async

1.3.0
PyPI
Maintainers
1

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

  • Join the telegram channel: https://t.me/Y88F8

Keywords

python

FAQs

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts