A favicon of Tinydb

Tinydb

Use a lightweight, pure Python document database for small applications. Offers a simple API, no external dependencies, and easy extensibility.

Visit Tinydb
A screenshot of TinydbVisit

TinyDB is a lightweight document-oriented database written in pure Python with no external dependencies. It's designed for small applications where a full SQL database or external server is overkill.

Key features include:

  • Tiny: Minimal codebase (around 1800 lines).
  • Document Oriented: Store any JSON-like document (Python dict).
  • Simple API: Designed for ease of use and developer happiness.
  • Pure Python: No external dependencies needed, runs directly.
  • Compatibility: Works on Python 3.8+ and PyPy3.
  • Extensible: Easily add custom storage solutions or modify behavior with Middlewares.
  • Well-Tested: 100% test coverage.

It provides a simple query language and supports tables and middleware for caching. Ideal for projects needing a simple, embedded persistence layer without complex setup.

Categories:
Share:
Featured tools:

Similar to Tinydb:

Databases for lazy people. Simple SQL data handling.
ORMsPython
Handle SQL data stores easily with implicit table creation, bulk loading, and transaction support. Makes database operations feel like working with JSON.
Build better web apps more quickly with less code.
Full-stack Web FrameworksPython
High-level Python web framework for rapid development and clean design. Handles common web development tasks, focusing on speed, security, and scalability.
IPython power for your Python debugging sessions.
DebuggingPython
Integrate IPython's enhanced features like tab completion, syntax highlighting, and better tracebacks into the standard Python debugger (pdb).
Compress and transform data buffers efficiently in Python.
Data CompressionPython
Compress and transform data buffers in Python for efficient data storage and communication. Supports various codecs and integrates with array libraries.
Generate Python API docs instantly from your code.
DocumentationPython
Automatically generate API documentation for Python projects from existing docstrings. Supports type hints, cross-linking, and common docstring formats.
A small, expressive Python ORM for simpler database interactions.
ORMsPython
Build Python applications with a simple, expressive ORM. Supports PostgreSQL, MySQL, SQLite, and CockroachDB. Features easy model definition and powerful querying.
Simple, fast, file-based key-value storage for Python.
DatabasesPython
Store key-value data easily in Python with this lightweight, file-based library. Offers simple API, fast performance, and asynchronous support.
Query databases naturally with Python generators.
ORMsPython
Write database queries using Python generator expressions. Translates Python syntax trees to SQL for SQLite, MySQL, PostgreSQL, and Oracle. Features an ERD editor.
Visual Python debugging, right in your terminal.
DebuggingPython
Debug Python code visually within your console. Offers a lightweight, keyboard-driven interface with syntax highlighting, stack traces, and variable inspection.

Command Menu