A pybind11 wrapper for Mojang's modified LevelDB library.
pip install amulet-leveldb
from amulet.leveldb import LevelDB
create_if_missing = True # optional input. Default False.
db = LevelDB("path/to/db", create_if_missing)
db.put(b"key", b"value")
print(db.get(b"key"))
# b"value"See the source code for full documentation.