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.

Synopsis

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')
w.finish()

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

Project details


Download files

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

Source Distribution

pycdb-0.0.1.tar.gz (39.0 kB view details)

Uploaded Source

File details

Details for the file pycdb-0.0.1.tar.gz.

File metadata

  • Download URL: pycdb-0.0.1.tar.gz
  • Upload date:
  • Size: 39.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for pycdb-0.0.1.tar.gz
Algorithm Hash digest
SHA256 1db2254bd7d139d743e1d3e32dccebe52c45e2caae7dc754db719916a0c2ab8a
MD5 5e38726a1ff91cae92ce29dd5b16c26f
BLAKE2b-256 1033d2fcb51d46970ff1c5a9af658f52995de8929d5f0f66c909e1c4dfb9ccc1

See more details on using hashes here.

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