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 AWS Cloud computing Datadog Datadog Monitoring Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Huawei Huawei PSF Sponsor Microsoft Microsoft PSF Sponsor NVIDIA NVIDIA PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page