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.6-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.6-cp312-cp312-manylinux_2_28_x86_64.whl.

File metadata

File hashes

Hashes for load_market_data-0.3.6-cp312-cp312-manylinux_2_28_x86_64.whl
Algorithm Hash digest
SHA256 102e0b8c70a5406c803cd4b7c66146c53798cf3927bcb2b40ae5dc55062b9990
MD5 d5aca58ac81b946721cf7363b522f226
BLAKE2b-256 ef89e67cc784f66e92fb789580beb4827ee94a7b1de6e45769964219e6722480

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