Skip to main content

A LevelDB driver

Project description

pylevel

PyLevel is a LevelDB driver for python. It use rust reimplementation of LevelDB https://docs.rs/rusty-leveldb .

Requirements

Install

$ sudo apt-get install python3-dev
$ pip install pylevel

Example

simple put/get/delete

import pylevel
db = pylevel.DB("/tmp/testdb", create_if_missing=True)

db.put(b'key', b'value')
v = db.get(b'key')      # 'value'

db.delete(b'key')
v = db.get(b'key')      # None

db.close()

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

pylevel-0.1.0.tar.gz (4.6 kB view hashes)

Uploaded Source

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