python-gdbm@3.14

Python 3.14 interface to gdbm database library

brewmacoslinux
Try with needOr install directly
Source

About

Python interface to gdbm

Commands

python3.14

Examples

Open and create a gdbm database file$ python3.14 -c "import gdbm; db = gdbm.open('mydb.db', 'c'); db['key'] = b'value'; db.close()"
Read a value from an existing gdbm database$ python3.14 -c "import gdbm; db = gdbm.open('mydb.db', 'r'); print(db[b'key']); db.close()"
List all keys in a gdbm database$ python3.14 -c "import gdbm; db = gdbm.open('mydb.db', 'r'); print(db.keys()); db.close()"