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 details)

Uploaded Source

File details

Details for the file pylevel-0.1.0.tar.gz.

File metadata

  • Download URL: pylevel-0.1.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.4.2 requests/2.22.0 setuptools/45.2.0 requests-toolbelt/0.8.0 tqdm/4.30.0 CPython/3.8.5

File hashes

Hashes for pylevel-0.1.0.tar.gz
Algorithm Hash digest
SHA256 e8bd6fcdc10d14fbcfbca5f98fdd8d0088286ee3d88ab9b36baf5d28c01cb38c
MD5 a939f2c9bea11d39901659bc1e91f45a
BLAKE2b-256 9f76e71340f4b5fed66863dad7129b59d193ac14c328bfecaf750ff86faf42be

See more details on using hashes here.

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