Python bindings for leveldb database library
Project description
Build Instructions
pip install [–user] leveldb
NB If you have issues with this step, please contact Russell (power@cs.nyu.edu). I’m responsible for the PyPi package upload and any resulting errors.
Example Usage
>>> import leveldb
>>> db = leveldb.LevelDB('./db')
>>> db.Put('hello', 'world')
>>> print db.Get('hello')
world
>>> db.Delete('hello')
>>> db.Get('hello')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
KeyError
>>> for i in xrange(10):
... db.Put(str(i), 'string_%s' % i)
...
>>> print list(db.RangeIter(key_from = '2', key_to = '5'))
[('2', 'string_2'), ('3', 'string_3'), ('4', 'string_4'), ('5', 'string_5')]
>>> batch = leveldb.WriteBatch()
>>> for i in xrange(1000):
... db.Put(str(i), 'string_%s' % i)
...
>>> db.Write(batch, sync = True)
>>>
Author: Arni Mar Jonsson (arnimarj@gmail.com) - http://code.google.com/p/leveldb/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
leveldb-0.193.tar.gz
(224.8 kB
view details)
File details
Details for the file leveldb-0.193.tar.gz.
File metadata
- Download URL: leveldb-0.193.tar.gz
- Upload date:
- Size: 224.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
db71c26b53a4c9b70721069646bdd3dddc65459be32a80e2dfea2ebed0c5c641
|
|
| MD5 |
2952434f2a0ce10c44f58542cc561589
|
|
| BLAKE2b-256 |
24b5eb76325c438d159c1f0b34ed1f864566c48f145480375561c296c95dbc4f
|