A Teeny Tiny DB10.02.14 · python
A year ago, the only thing I knew about NoSQL was that MongoDB didn’t support joins. And after using MySQL on & off since college, that totally blew my mind. Seriously, no joins?! Fortunately I discovered Firebase, which was a great introduction to NoSQL, and now I’m hooked.
This week I made another NoSQL discovery: TinyDB — a sleek 1,200 line document-oriented database written in Python. Created by Markus Siemens, TinyDB’s API is easy to grok and fits into your projects with minimal effort:
- Inserts are easy, just feed in a standard
- Store data as JSON or in-memory
- Create tables / collections
- Query via regex, using comparison operators, and with and/or conditions
- Update fields across multiple records
- The documentation is excellent
- Works with Python 2.6 – 3.4
I’d write you some sample code, but Markus’s getting started guide is already top-notch. Give TinyDB a shot, I really think you’ll like it.