Add your description here
Project description
LoadMarketData
解析protobuffer市场数据为parquet文件
安装
pip install load_market_data
运行
import os
os.environ["RUST_LOG"] = "debug"
from load_market_data import parse_market_data
def main():
db_path = "/md_record_db_20250318"
output_path = "/load_market_data/data"
parse_market_data(db_path, output_path)
if __name__ == "__main__":
main()
开发环境
# 安装uv虚拟环境
curl -LsSf https://astral.sh/uv/install.sh | sh
# 同步环境
uv sync
# 进入虚拟环境
source .venv/bin/activate
# 参考src/lib.rs编写绑定函数
# 根据lib.rs编写pyi文件, 可以用GPT生成
# 调试编译, 会安装到当前虚拟环境
maturin develop --uv
# 生产编译, 会在target文件夹中生成wheels文件
maturin build --release
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file load_market_data-0.3.5-cp312-cp312-manylinux_2_28_x86_64.whl.
File metadata
- Download URL: load_market_data-0.3.5-cp312-cp312-manylinux_2_28_x86_64.whl
- Upload date:
- Size: 7.8 MB
- Tags: CPython 3.12, manylinux: glibc 2.28+ x86-64
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.6.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
0c2916e15d172db6ff32ab80a9a2dbff1a67ea39f5c11280f98a58172baceca4
|
|
| MD5 |
b1a9b95efa9b344419ca599bc823ba50
|
|
| BLAKE2b-256 |
73471673b37ee3c568de66bdaf003ea8e18f7960abc90c9326732f74b416c5fa
|