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 details)
Built Distribution
File details
Details for the file vnpy_leveldb-1.0.3.tar.gz
.
File metadata
- Download URL: vnpy_leveldb-1.0.3.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 476ac1a42b336cc72def06e3f8d052de73bd9af970f7e0840c9a3ccfa2026310 |
|
MD5 | 071110521602675920797c2524dde850 |
|
BLAKE2b-256 | 2b7fa89c0988cf775e26c1399ec4bcb748413c4c7dedcf8ef4bd4785373e9ebf |
File details
Details for the file vnpy_leveldb-1.0.3-py3-none-any.whl
.
File metadata
- Download URL: vnpy_leveldb-1.0.3-py3-none-any.whl
- Upload date:
- Size: 5.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | a185d1728abcc6f6bd77fd34effde59a5d0cf02c64452cbe6db2e76cbd5b37c4 |
|
MD5 | 1feb90aafafbb1be2345bf4810d22f90 |
|
BLAKE2b-256 | 18d930f8e8e84297969771e32813a114ecb01c9f25d0855e7343d26a37f82fa5 |