Learn Python with Talk Python's 270 hours of courses

TinyDB: A tiny document db written in Python

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

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

Talk Python's Mastodon Michael Kennedy's Mastodon