Skip to main content

Yet another CDB wrapper

Project description

pycdb is yet another binding of CDB, a constant database implementation created by D. J. Bernstein.

This features portability (works well both with Python 2.x and Python 3.x), restriction-free license (public domain), reentrancy.


from pycdb import CDBMake, CDB

w = CDBMake(open('test.cdb', 'wb'), encoding='utf-8')
w.add('a', '1')
w.add('b', '2')
w.add('c', '3')

r = CDB(open('test.cdb', 'rb'), encoding='utf-8')
print(r['a']) # '1'
print(r['b']) # '2'
print(r['c']) # '3'

Project details

Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for pycdb, version 0.0.1
Filename, size File type Python version Upload date Hashes
Filename, size pycdb-0.0.1.tar.gz (39.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page