Learn Python with Talk Python's Python courses

TinyDB: A tiny document db written in Python

Episode #80, published Sun, Oct 16, 2016, recorded Thu, Oct 13, 2016.

This episode is carbon neutral.
NoSQL and document dbs like MongoDB have made building fast scalable software that is easy to evolve and maintain much easier for a broad class of applications. Embeddable, file-based databases like SQLite have made "shipping" an application requiring a database a no brainer. The database just runs in process so there is no setup or maintenance.

Yet, when you try to intersect these two excellent capabilities, you'll find the options very limited. There just aren't many embeddable document databases. If you're a Python developer, and you want a native Python solution, the options are much slimmer still.

That's why I'm excited to introduce you to Markus Siemens and TinyDb. This is a 100% pure python, embeddable, pip-installable document DB for Python.

Links from the show:

Markus on Twitter: @siem3m
Markus on the Web: m-siemens.de
TinyDb (github): github.com/msiemens/tinydb
TinyDb (docs): tinydb.readthedocs.io
TinyDb (PyPI): pypi.org/project/tinydb
CodernityDB: labs.codernity.com/codernitydb
Buzhug: buzhug.sourceforge.net
Ultra JSON package: pypi.org/project/ujson
How to Extend TinyDB: tinydb.readthedocs.io/en/latest/extend.html
Extensions: tinydb.readthedocs.io/en/latest/extensions.html

Want to go deeper? Check out our courses

Markus Siemens
Markus Siemens
Markus Siemens is a programmer and student of Electrical Engineering from Hannover, Germany. When he’s not studying, he enjoys spending time programming in Python and Rust (amongst other languages).
Episode sponsored by
Ads served ethically
Become a friend of the show
Stay in the know and get a chance to win our contests.
See our privacy statement about email communications.