Skip to main content

A Cython wrapper for Mojang's custom LevelDB.

Project description

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.

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

amulet_leveldb-1.0.0.tar.gz (765.8 kB view hashes)

Uploaded Source

Built Distributions

amulet_leveldb-1.0.0-cp312-cp312-win_amd64.whl (223.7 kB view hashes)

Uploaded CPython 3.12 Windows x86-64

amulet_leveldb-1.0.0-cp312-cp312-macosx_10_9_universal2.whl (462.3 kB view hashes)

Uploaded CPython 3.12 macOS 10.9+ universal2 (ARM64, x86-64)

amulet_leveldb-1.0.0-cp311-cp311-win_amd64.whl (226.5 kB view hashes)

Uploaded CPython 3.11 Windows x86-64

amulet_leveldb-1.0.0-cp310-cp310-win_amd64.whl (226.2 kB view hashes)

Uploaded CPython 3.10 Windows x86-64

amulet_leveldb-1.0.0-cp310-cp310-macosx_11_0_x86_64.whl (240.2 kB view hashes)

Uploaded CPython 3.10 macOS 11.0+ x86-64

amulet_leveldb-1.0.0-cp37-cp37m-win_amd64.whl (225.9 kB view hashes)

Uploaded CPython 3.7m Windows x86-64

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