DBM is a simple UNIX database format. It uses a key-value storage and hashing for fast retrieval of the data by key.
Questions tagged [dbm]
98 questions
43
votes
9 answers
Alternative to BerkeleyDB?
I'm looking for a dbm-like library that I can use in place of Berkeley DB, which I'm currently using. My main reason for switching is the licensing fees for BDB are pretty high (free for open source apps, but my employer does not want to open source…
John
13
votes
4 answers
Lightweight B-tree library for Java?
Can anyone recommend a lightweight, fast, and hopefully stable B-tree (or similar) library for Java?
Essentially I'm looking for an on-disk map; something along the lines of BerkeleyDB JE, except I don't need transactions, am fine with read-only…

Dmitri
- 8,999
- 5
- 36
- 43
13
votes
2 answers
error: db type is dbm.gnu, but the module is not available in windows
I installed python3.6 in windows machine. And get below error while open my.db file.
my.db file created by my program in ubuntu16.04 in python3.6, using shelve module.
In [1]: import shelve
In [2]: db =…

Lalitkumar Tarsariya
- 646
- 10
- 25
12
votes
3 answers
GDBM doesn't work with Python 3.6 and anaconda
I use Python 3.6 in an anaconda environment.
I installed GDBM with
conda install gdbm
The installation went well, however I can't use dbm.gnu from Python:
ModuleNotFoundError: No module named '_gdbm'
It seams that Python doesn't include the _gdbm…

Picani
- 169
- 1
- 8
10
votes
4 answers
Python DBM Module for Windows?
I would like to use the dbm module on my Windows machine, but it is currently only supported on Unix. http://docs.python.org/library/dbm.html
Does anyone know of a similar module with similar syntax or a workaround to get dmb functional on windows?…

Brian
- 4,023
- 8
- 29
- 36
9
votes
1 answer
Pros and cons of Perl DBM implementations? (GDBM, Berkeley DB, etc.)
I've used GDBM and Berkeley DB/DB_File for earlier Perl projects, but should I be using them for new ones? What are the pros and cons of different Perl DBM implementations?
(Related: Are tools like DBM::Deep or KyotoCabinet too slow/heavy compared…

Anirvan
- 6,214
- 5
- 39
- 53
8
votes
3 answers
Shelve module in python not working: "db type cannot be determined"
I am trying to make a simple password-storing program in Python, and it seems pretty simple so I am wondering if I am using shelve wrong.
I have the main .py file:
import shelve
passwords = shelve.open('./passwords_dict.py')
choice =…

yung galbanum
- 329
- 6
- 11
7
votes
3 answers
How do I efficiently empty a Perl DBM file?
I've inherited a piece of code with a snippet which empties the database as follows:
dbmopen (%db,"file.db",0666);
foreach $key (keys %db) {
delete $db{$key};
}
dbmclose (%db);
This is usually okay but sometimes the database grows very large…

paxdiablo
- 854,327
- 234
- 1,573
- 1,953
6
votes
5 answers
Any DBM for .NET?
I'm looking for a simple DBM library such as BerkeleyDB or Kyoto Cabinet, but natively working for .NET.
I need to manage more than one million records (maybe ten millions), and possibly in a hierarchical way (this last point is not mandatory, we…

picrap
- 1,236
- 1
- 13
- 35
6
votes
2 answers
Is Python DBM really fast?
I was thinking that native DBM of Python should be quite faster than NOSQL databases such as Tokyo Cabinet, MongoDB, etc (as Python DBM has lesser features and options; i.e. a simpler system). I tested with a very simple write/read example…

Googlebot
- 15,159
- 44
- 133
- 229
5
votes
1 answer
Is "shelve" just a combination of "dbm" and "pickle"?
So everything that is done in shelve can be done separately with dbm and pickle?

NoName
- 9,824
- 5
- 32
- 52
5
votes
1 answer
Celery failing to start in docker
I'm starting celery using the following Dockerfile:
FROM python:3.7-alpine
RUN apk add --no-cache postgresql-libs && \
apk add --no-cache gcc musl-dev postgresql-dev zlib-dev jpeg-dev && \
apk add --no-cache graphviz-dev # some required by…

pomo_mondreganto
- 2,028
- 2
- 28
- 56
5
votes
1 answer
Python shelve having items that aren't listed
I've been saving a bunch of dictionaries to file using Python's shelve module (with Python 3.4 on OSX 10.9.5). Each key is a string of an int (e.g., "84554"), and each value is a dictionary of dictionaries of a few smallish strings.
No keys are…

Zeke
- 617
- 1
- 6
- 15
5
votes
2 answers
Using dbm.gnu for Python 3.6.3 on macOS
I'm trying to open a .db file that is of type db.gnu. Attempting to open it with the built-in Python 3 module dbm fails with the message:
dbm.error: db type is dbm.gnu, but the module is not available
I understand that I have to use the gnu…

Sean Saito
- 655
- 7
- 18
5
votes
0 answers
shelve library limitation on objects in python
I have been using shelve to store a ton of objects in this manner:
dictionary with strings as the key and a list as the value:
i.e.
data["MITL"] = ["Radio And Television Broadcasting And Communications Equipment", "Communication Equipment"]
or more…

brw59
- 502
- 4
- 19