Create a CDB instance from a file.
'file' can be either a (binary) python stream (providing fileno()) or a
filename or an integer (representing a filedescriptor).
|
bool
|
__contains__(self,
key)
Check if the key appears in the CDB. |
|
|
|
|
|
|
bytes
|
__getitem__(self,
key)
Find the first value of the passed key and return the value as bytestring |
|
|
|
iterable
|
__iter__(self)
Create an iterator over unique keys - in insertion order |
|
|
|
int
|
__len__(self)
Count the number of unique keys |
|
|
|
|
close(self)
Close the CDB. |
|
|
|
int
|
fileno(self)
Find the underlying file descriptor |
|
|
|
any
|
get(self,
key,
default=None,
all=False)
Return value(s) for a key |
|
|
|
bool
|
has_key(self,
key)
Check if the key appears in the CDB. |
|
|
|
iterable
|
items(self,
all=False)
Create key/value pair iterator |
|
|
|
iterable
|
keys(self,
all=False)
Create key iterator |
|
|
|
CDBMaker
|
make(cls,
file)
Create a CDB maker instance, which returns a CDB instance when done. |
|
|
|
Inherited from object:
__delattr__,
__format__,
__init__,
__reduce__,
__reduce_ex__,
__repr__,
__setattr__,
__sizeof__,
__str__,
__subclasshook__
|