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]

Release 0.8 fixes a minor bug related to links between bases

Project details


Supported by

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