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 |
Release files for vnpy-leveldb 1.0.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| vnpy_leveldb-1.0.3.tar.gz | 4.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| vnpy_leveldb-1.0.3-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 10.6 kB
Release files / vnpy_leveldb-1.0.3.tar.gz
| Download URL | vnpy_leveldb-1.0.3.tar.gz |
|---|---|
| Size | 4.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
476ac1a42b336cc72def06e3f8d052de73bd9af970f7e0840c9a3ccfa2026310
|
|
BLAKE2b-256 checksum How to use checksums |
2b7fa89c0988cf775e26c1399ec4bcb748413c4c7dedcf8ef4bd4785373e9ebf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Release files / vnpy_leveldb-1.0.3-py3-none-any.whl
| Download URL | vnpy_leveldb-1.0.3-py3-none-any.whl |
|---|---|
| Size | 5.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a185d1728abcc6f6bd77fd34effde59a5d0cf02c64452cbe6db2e76cbd5b37c4
|
|
BLAKE2b-256 checksum How to use checksums |
18d930f8e8e84297969771e32813a114ecb01c9f25d0855e7343d26a37f82fa5
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|