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
Metadata
Release files for load_market_data 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| load_market_data-0.3.6-cp312-cp312-manylinux_2_28_x86_64.whl | CPython 3.12 | CPython 3.12 | Linux glibc 2.28+ x86-64 | Details for load_market_data-0.3.6-cp312-cp312-manylinux_2_28_x86_64.whl |
Release files / load_market_data-0.3.6-cp312-cp312-manylinux_2_28_x86_64.whl
| Download URL | load_market_data-0.3.6-cp312-cp312-manylinux_2_28_x86_64.whl |
|---|---|
| Size | 7.8 MB |
| Tags | CPython 3.12 Linux glibc 2.28+ x86-64 |
|
SHA-256 checksum How to use checksums |
102e0b8c70a5406c803cd4b7c66146c53798cf3927bcb2b40ae5dc55062b9990
|
|
BLAKE2b-256 checksum How to use checksums |
ef89e67cc784f66e92fb789580beb4827ee94a7b1de6e45769964219e6722480
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.2
|
Security for load_market_data 0.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.