Skip to main content

A fast pure-Python database engine

Project description

buzhug is a fast, pure-Python database engine, using a syntax that Python
programmers should find very intuitive

The data is stored and accessed on disk (it is not an in-memory database) ; the
implementation has been designed to make all operations, and especially
selection, as fast as possible with an interpreted language

The database is implemented as a Python iterator, yielding objects whose
attributes are the fields defined when the base is created ; therefore, requests
can be expressed as list comprehensions or generator expressions, instead of SQL
queries :

for record in [ r for r in db if r.name == 'pierre' ]:
print record.name,record.age

instead of

cursor.execute("SELECT * IN db WHERE name = 'pierre'")
for r in cursor.fetchall():
print r[0],r[1]

Project details


Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page