Skip to main content

A lightweight, file-based JSON database with SQL-like interface

Project description

JSONQL-DB — Your Lightweight JSON Database

SQLite, but with human-readable JSON files.
Zero setup. Zero server. Just pure Python and transparency.

PyPI License Python

Why JSONQL-DB?

Feature SQLite JSONQL-DB
Storage Binary Human-readable JSON
Setup Install Zero install (pure Python)
Transparency Opaque Everything is a file
Ideal for Heavy apps Prototypes, AV tools, edge devices, indie devs
  • No server
  • Thread-safe
  • SQL-like queries
  • Core under 300 lines

Note: Not related to json-ql or jsonql.js.org — those are JSON query utilities, not databases.

Install

    pip install jsonql-db

For the GUI browser (Flet-based):

    pip install "jsonql-db[browser]"

Quick Start

    import jsonql

    # Connect (creates folder if needed)
    db = jsonql.connect("my_app_data")

    # Insert
    db.insert("devices", {"name": "Projector", "room": "A101", "ip": "192.168.1.10"})

    # Query
    devices = db.select("devices", {"room": "A101"})
    print(devices)

    # SQL-like
    result = db.query("SELECT * FROM devices WHERE room = 'A101'")
    print(result)


GUI Browser
    Launch the built-in browser:

    python -m jsonql.browser

    ![JSONQL Browser](https://raw.githubusercontent.com/takouzlo/jsonql-db/main/jqlFlet.png)


Philosophy

    "If it’s not human-readable, it’s not transparent."

    JSONQL-DB is for developers who value simplicity, portability, and control. 

    Perfect for:

    - Audiovisual integrators (Crestron, QSC, Extron)
    - IoT edge logging
    - Local Flet/PyQt apps
    - Teaching database basics


License
    MIT  see LICENSE

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jsonql_db-0.1.4.tar.gz (10.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

jsonql_db-0.1.4-py3-none-any.whl (9.0 kB view details)

Uploaded Python 3

File details

Details for the file jsonql_db-0.1.4.tar.gz.

File metadata

  • Download URL: jsonql_db-0.1.4.tar.gz
  • Upload date:
  • Size: 10.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for jsonql_db-0.1.4.tar.gz
Algorithm Hash digest
SHA256 e2fd9cd417544ab3abaf3ba23ba54b25f38bb9f130babc3a6d1e6e589105944d
MD5 31c947569fe4abfaa7e90d6c367808ee
BLAKE2b-256 1ab699f4a14839f282c6934c4a2227a6b70ef52e5b467ce5f05b56431fa0e946

See more details on using hashes here.

File details

Details for the file jsonql_db-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: jsonql_db-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 9.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for jsonql_db-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 1e2d72aa97f02525147633eab5e4f0bccd259a9555b706b77c595ab9b788f403
MD5 cf979f901cd8b2946897df81768b07a6
BLAKE2b-256 0b29461c385e75a1ed0551b11aaf7308eca27f6f8027b83a4e9b633343157645

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page