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
Metadata
Release files for oxen_pyo3 0.1.3
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 |
|---|---|---|---|---|
| oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl | CPython 3.12 | CPython 3.12 | Windows x86-64 | Details for oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl |
Release files / oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl
| Download URL | oxen_pyo3-0.1.3-cp312-cp312-win_amd64.whl |
|---|---|
| Size | 556.1 kB |
| Tags | CPython 3.12 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
9795c72224b171324787ef3320027c9dacfce3bb2a82b8cbaea3fd9cd43e57a5
|
|
BLAKE2b-256 checksum How to use checksums |
cd582f34730739d90157a2123620e79117c5b9128f01aa8305c23748d9eb8cec
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.6.1
|
Security for oxen_pyo3 0.1.3
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.