Skip to content

Latest commit

 

History

History
20 lines (14 loc) · 399 Bytes

README.md

File metadata and controls

20 lines (14 loc) · 399 Bytes

Amulet LevelDB

A Cython wrapper for Mojang's modified LevelDB library.

Install

pip install amulet-leveldb

Use

from 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.