资 源 简 介
cpy-leveldb
Python bindings for LevelDB using leveldb c api
Source Code
Download source code
author: Fu Haiping (haipingf@gmail.com)
Leveldb:(http://code.google.com/p/leveldb/)
Build Instructions
First of all, you need to build the included snappy and leveldb library.
Build Snappy
$ cd snappy$ ./configure && make && make install
Build LevelDB
$ cd leveldb$ make
Then, build the extension itself
$ python setup.py build
Example Usage
```python
import leveldb
db = leveldb.LevelDB("/tmp/leveldb")
db.Put("1", "111")
db.Put("2", "222")
db.Put("3", "333")
db.Get("1")
"111"
db.G
文 件 列 表
pax_global_header
LGPL-2.1
LICENSE
README
doc
tut.txt
leveldb
.svn
AUTHORS
LICENSE
Makefile
NEWS
README
TODO
build_detect_platform
db
doc
helpers
include
port
table
util
setup.py
snappy
.svn
AUTHORS
COPYING
ChangeLog
Makefile.am
NEWS
README
autogen.sh
autom4te.cache
configure.ac
format_description.txt
m4
snappy-c.cc
snappy-c.h
snappy-internal.h
snappy-sinksource.cc
snappy-sinksource.h
snappy-stubs-internal.cc
snappy-stubs-internal.h
snappy-stubs-public.h.in
snappy-test.cc
snappy-test.h
snappy.cc
snappy.h
snappy_unittest.cc
testdata
src
comparator.c
comparator.h
initmodule.c
iterator.c
iterator.h
leveldb.c
leveldb.h
old
snapshot.c
snapshot.h
write_batch.c
write_batch.h
test
test-comparator.py
test-getapproximatesizes.py
test-iterator.py
test-leveldb.py
test-snapshot.py
test-writebatch.py