TinyDB is a lightweight, NoSQL document-oriented database written in pure Python that stores data as JSON files. It requires no external dependencies or server setup, making it ideal for small-scale projects, scripts, and prototypes. The library supports full CRUD operations (create, read, update, delete) through a Pythonic API, uses Python dictionaries as document structures, and allows schema-less storage where documents can have different fields. While easy to use for single-process applications, TinyDB lacks relational features, ACID guarantees, and multi-user support, limiting its use to local, small-dataset scenarios.
Table of contents
Get Ready to Explore TinyDBCreate Your Database and DocumentsRead Documents From Your DatabaseUpdate Documents in Your DatabaseDelete Documents From Your DatabaseUnderstand Limitations and GotchasConclusionFrequently Asked QuestionsSort: