Skip to main content

Add your description here

Project description

Oxen-Pyo3

一个用于 Oxen Rust 库的 Python 封装。

安装

pip install package/oxen_pyo3-0.1.1-cp312-cp312-manylinux_2_34_x86_64.whl

使用

书写因子逻辑, 请参考 factor_example.py, 然后测试因子直接执行 factor_engine_demo.py 即可.

uv run factor_engine_demo.py

开发环境

# 安装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 develop --release --uv

注意, 重新编译前需要清理缓存文件, 可直接执行build.sh

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.

oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl (556.1 kB view details)

Uploaded CPython 3.12Windows x86-64

File details

Details for the file oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl.

File metadata

File hashes

Hashes for oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl
Algorithm Hash digest
SHA256 9795c72224b171324787ef3320027c9dacfce3bb2a82b8cbaea3fd9cd43e57a5
MD5 5d024bc6d501bd6f20541a8e6fc4d5c1
BLAKE2b-256 cd582f34730739d90157a2123620e79117c5b9128f01aa8305c23748d9eb8cec

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