Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Tree: 59201442e9
Fetching contributors…

Cannot retrieve contributors at this time

68 lines (46 sloc) 1.57 KB


semidbm is a pure python implementation of a dbm, which is essentially a persistent key value store. It allows you to get and set keys:

import semidbm
db ='testdb', 'c')
db['foo'] = 'bar'
print db['foo']

# Then at a later time:
db ='testdb', 'r')
# prints "bar"
print db['foo']

It was written with these things in mind:

  • Pure python. Many of the "standard" dbms are written in C, which requires a C extension to give python code access to the dbm. This of course make installation more complicated, requires that the OS you're using has the shared library installed, requires that you have the necessary setup to build a C extension for python (unless you want to use a binary package).
  • Cross platform. Because semidbm is written in python, it runs on any platform that supports python. The file format used for semidbm is also cross platform.
  • Simplicity. The original design is based off of python's dumbdbm module in the standard library, and one of the goals of semidbm is to try to keep the design comparably simple.

Post feedback and issues on github issues, or check out the latest changes at the github repo.


API Documentation

Indices and tables

Jump to Line
Something went wrong with that request. Please try again.