Skip to main content

Allows using gdbm files created with version 1.8 or 1.10, without magic number errors.

Project description

Provides a means to open a gdbm database that otherwise gives the “Bad Magic Number” error.

This can be useful when needing to support EL6 and EL7 (or CentOS 6 and CentOS 7).

It supports opening of gdbm files created with gdbm version 1.8 or 1.10. Some functionality may not work on the database, but most will, which is better than none!

The primary method of usage is to use “gdbm_compat.open_compat” in place of “gdbm.open”.

For example:

>>> import gdbm_compat
>>> ...
>>> mydb = gdbm_compat.open_compat('mydatabase.db', 'r')

<gdbm.gdbm object at 0x7f7da47ee110>

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

gdbm_compat-1.0.0.tar.gz (3.7 kB view details)

Uploaded Source

File details

Details for the file gdbm_compat-1.0.0.tar.gz.

File metadata

File hashes

Hashes for gdbm_compat-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e27a48ebee7b7a3cc067c65af5b4b56fd547917c0bab1b9cc5003abf854a627e
MD5 2cd1175613ed8c6fedbb3c4d7b87083b
BLAKE2b-256 5ca70894eeb36ddaa22dfc1dd88c7084356b3c5ae65e7798eaf33a680412b923

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