Skip to content

A Visual Studio project to build leveldb python wrapper

Notifications You must be signed in to change notification settings

haimingZZ/py-leveldb-windows

 
 

Repository files navigation

py-leveldb-windows

A Visual Studio project to build leveldb python wrapper

compile using vs2017 & python 3.7 & windows10

seems okay full compiled commit in github

Pre-built Binaries

Python2.7: Google Drive, Baidu Yun

Python3.6: Google Drive, Baidu Yun

Put the leveldb.pyd in folder YOUR_PYTHON_ROOT/Lib/site-packages.

Run python ./test-py-leveldb.py(python2) or python ./test-py3-leveldb.py(python3). If everything is ok, you will get hello world response and a folder named db.

Usage

  1. Change the compile mode to Release X64.

  2. Modify the python path in the settings (Additional Include Directories, Additional Library Directories, Additional Dependencies).

  3. Compile

  4. Copy ./x64/Release/leveldb.pyd to YOUR_PYTHON_ROOT/Lib/site-packages.

  5. Run python ./test-py-leveldb.py. If everything is ok, you will get hello world response and a folder named db.

Compile using Python3

  1. Change the python path in the settings (Additional Include Directories, Additional Library Directories, Additional Dependencies).

  2. Use this version of leveldb.def to replace /win32_impl_src/leveldb.def: https://github.com/happynear/py-leveldb-windows/blob/5fa0361a46ef0a75123ea785bdb15af1b2e64600/win32_impl_src/leveldb.def .

About

A Visual Studio project to build leveldb python wrapper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 89.4%
  • HTML 4.5%
  • C 2.8%
  • Shell 2.4%
  • Makefile 0.7%
  • CSS 0.1%
  • Python 0.1%