Skip to main content

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

If you're not sure about the file name format, learn more about wheel file names.

load_market_data-0.3.4-cp312-cp312-manylinux_2_28_x86_64.whl (7.8 MB view details)

Uploaded CPython 3.12manylinux: glibc 2.28+ x86-64

File details

Details for the file load_market_data-0.3.4-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for load_market_data-0.3.4-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 4afffedec7bb59c5f25b9b2153f659ba7da0743eee6893b1c3d2b3794b66b542
MD5 10776df9c30260451fdc4a61fc3c8050
BLAKE2b-256 028c53f8a366f00fe62b4359ef93a583deac2dac0d05bb7d070aa23f38d9d0d4

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page