The next-gen lightweight JSON database for Python β fast, secure, and schema-aware.
Store and query data instantly with zero setup, pure Python power, and human-readable JSON files.
- Features
- Installation
- Quick Start
- Usage Examples
- Project Structure
- Contributing
- License
- Community
- Credits
- Support
jflatdb is a file-based, schema-aware JSON database system that combines the simplicity of NoSQL with powerful query and indexing features inspired by SQL β all in pure Python.
No servers. No setup. Just plug, code, and store.
Perfect for developers, students, or small apps that need fast, secure, local data storage with minimal dependencies.
pip install jflatdbor install from source:
git clone https://github.com/jflatdb/jflatdb.git
cd jflatdb
pip install .from jflatdb.database import Database
# Initialize with optional encryption
db = Database("users.json", password="your-password")
# Insert data
db.insert({"name": "Akki", "email": "akki@example.com", "age": 25})
# Query with conditions
users = db.find({"age": {"$gt": 18, "$lt": 30}})
print(users)
# Update and Delete
db.update({"name": "Akki"}, {"email": "new@email.com"})
db.delete({"name": "Akki"})jflatdb/
βββ jflatdb/
β βββ utils/
β βββ exceptions/
β βββ __init__.py
β βββ cli.py
β βββ database.py
β βββ indexer.py
β βββ query_builder.py
β βββ query_cache.py
β βββ query_engine.py
β βββ schema.py
β βββ schema_migration.py
β βββ schema_version.py
β βββ storage.py
β βββ transation.py
β βββ security.py
βββ examples/
βββ tests/
βββ README.md
βββ setup.py
βββ LICENSEWe welcome all contributions! To get started:
- Fork the repository
- Create a new branch β
git checkout -b feature-name - Commit your changes β
git commit -m "Add feature" - Push your branch β
git push origin feature-name - Open a Pull Request
Check our CONTRIBUTING.md for more details.
This project is licensed under the MIT License β see the LICENSE file for details.
- π‘ Suggest a Feature
- π Report a Bug
- π¬ Start a Discussion
Developed and maintained by Akki Inspired by TinyDB, SQLite, and the open-source spirit.
Your support keeps this project growing! π± If you like jflatdb, please β star the repo, share it, and help more developers discover it.
Letβs redefine simple data storage β one JSON file at a time. πΎπ







