https://github.com/moriyoshi/pycdb
pycdb is yet another binding of CDB, a constant database implementation created by D. J. Bernstein.
https://github.com/moriyoshi/pycdb
Last synced: 2 months ago
JSON representation
pycdb is yet another binding of CDB, a constant database implementation created by D. J. Bernstein.
- Host: GitHub
- URL: https://github.com/moriyoshi/pycdb
- Owner: moriyoshi
- Created: 2015-11-16T17:13:43.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-11-17T03:18:26.000Z (over 9 years ago)
- Last Synced: 2025-03-07T02:49:07.510Z (2 months ago)
- Language: C
- Homepage:
- Size: 89.8 KB
- Stars: 3
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
Awesome Lists containing this project
README
pycdb
=====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'