3 ms·
This is only tangentially related, but I rediscovered an old project of mine from years ago today and am rather excited about it: https://github.com/skorokitha
by StavrosK 6y ago
This is only tangentially related, but I rediscovered an old project of mine from years ago today and am rather excited about it:
https://github.com/skorokithakis/goatfish https://github.com/skorokithakis/goatfish
It's basically a 200 line document database in Python that's backed by SQLite. I need to store a bunch of scraping data from a script but don't want a huge database or the hassle of making SQLite tables.
Goatfish is perfect because it stores free-form objects (JSON, basically), only it lets you index by arbitrary keys in them and get fast queries that way.
It's pretty simple, but a very nice compromise between the simplicity of in-memory dicts and the reliability of SQLite.