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.
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file jsonql_db-0.1.5.tar.gz.
File metadata
- Download URL: jsonql_db-0.1.5.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8a4fd6e76b023021276d04bd6242d0ac7f738fd0bf3ebf2ccac1be8fb0d3a811
|
|
| MD5 |
5f387c414a97af358257973f4829b1eb
|
|
| BLAKE2b-256 |
a61d88d8297a398b94ac426a25b95e0617edc23b596341b5d63b1f72c7a86c9c
|
File details
Details for the file jsonql_db-0.1.5-py3-none-any.whl.
File metadata
- Download URL: jsonql_db-0.1.5-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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0bab576216cfa5c432bf6f0b5f63b75119ba98d9f1754e70add985875c56b276
|
|
| MD5 |
d72be7bc1ef4da43fc9911f103b48e4f
|
|
| BLAKE2b-256 |
14b0c340fe9f206b4172b43b4c6a1bcf4ce2d38a214781a434cdb1b20bbf0aed
|