Interesting Python embedded databases

metakit

  • Not pure Python
  • Fixed columns: vw = db.getas(“urls[url:S,filename:S,headers:S]”)

pyDBLite

  • Writes the full dataset on commit

pyTables

Durus

jsonstore

  • Stores arbitrary JSON, auto-indexes all keys.

I wonder how well an API like the following would work for in-memory databases:


urls_dict = indexed({'http://example.org': {'filename': 'index.html'}}, index=['filename'])
urls_dict.index('index.html') -> single entry

urls_list = indexed([{'http://example.org': {'filename': 'index.html'}}], index=['filename'])
urls_list.index('index.html') -> multiple entries    

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s