LevelDB database adapter for vn.py quant trading framework.
Project description
VeighNa框架的LevelDB数据库接口
说明
基于plyvel开发的LevelDB数据库接口。
对于不同操作系统需要安装不通版本的plyvel。对于linux与windows会自动安装适配的plyvel与plyvel-win32。
对于macox操作系统,需要手动下载源码进行安装,并在安装前将源码setup.py中
if platform.system() == 'Darwin':
extra_compile_args += ['-stdlib=libc++']
修改为
if platform.system() == 'Darwin':
extra_compile_args = ['-Wall', '-g', '-x', 'c++', '-std=c++11', '-fno-rtti']
再运行
python -m pip install .
进行手动安装。方法参考自[https://github.com/wbolster/plyvel/issues/114]。
使用
在VeighNa中使用LevelDB时,需要在全局配置中填写以下字段信息:
名称 | 含义 | 必填 | 举例 |
---|---|---|---|
database.name | 名称 | 是 | leveldb |
database.database | 实例 | 是 | vnpy_data |
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
vnpy_leveldb-1.0.3.tar.gz
(4.9 kB
view hashes)
Built Distribution
Close
Hashes for vnpy_leveldb-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a185d1728abcc6f6bd77fd34effde59a5d0cf02c64452cbe6db2e76cbd5b37c4 |
|
MD5 | 1feb90aafafbb1be2345bf4810d22f90 |
|
BLAKE2b-256 | 18d930f8e8e84297969771e32813a114ecb01c9f25d0855e7343d26a37f82fa5 |