Skip to main content

Rust acceleration helpers for MoviePilot

Project description

MoviePilot-Rust

MoviePilot Rust 加速模块。

  • PyPI 包名:moviepilot-rust
  • Python 导入名:moviepilot_rust
  • 支持版本:Python 3.11+
  • 构建工具:PyO3 + maturin

本地开发安装

在本仓库根目录创建 .venv,并把 Rust 扩展直接安装到这个虚拟环境:

python3 -m venv .venv
.venv/bin/python -m pip install "maturin>=1.9,<2"
.venv/bin/python -m maturin develop --release

验证扩展是否可导入:

.venv/bin/python -c "import moviepilot_rust; print(moviepilot_rust.is_available())"

输出 True 表示本地编译安装成功。

本地打包

使用仓库内脚本构建当前平台 wheel 和源码包:

scripts/build_wheels.sh

产物会输出到 dist/,例如:

dist/moviepilot_rust-0.1.5-cp311-abi3-macosx_11_0_arm64.whl
dist/moviepilot_rust-0.1.5.tar.gz

脚本默认使用本仓库 .venv/bin/python

在 MoviePilot 主项目中使用

主项目通过普通 pip 依赖使用本模块,不再从主项目源码内编译 Rust。

以下命令在 MoviePilot 主项目根目录执行。

安装 PyPI 版本:

.venv/bin/pip install moviepilot-rust

安装本地刚构建的 wheel:

.venv/bin/pip install --force-reinstall ../MoviePilot-Rust/dist/moviepilot_rust-*.whl

在 MoviePilot 主项目里验证运行时状态:

.venv/bin/python -c "from app.utils import rust_accel; print(rust_accel.status())"

available=True 表示扩展已安装可用,enabled=True 表示 MoviePilot 当前配置开关允许使用 Rust 加速。

发布

在 GitHub 上 Publish Release 会触发 Actions,自动构建 Linux(glibc/musl)、macOS、Windows wheel 并发布到 PyPI;发布成功后还会向 MoviePilotv2 分支提交 bump requirements.in 的 PR(需配置 MOVIEPILOT_REPO_TOKEN)。

git tag v0.1.5
git push origin v0.1.5

然后在 GitHub 仓库 Releases → Draft a new release 中选择上述 tag 并点击 Publish release。仅推送 tag 不会触发构建。

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 Distributions

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

moviepilot_rust-0.1.5-cp311-abi3-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11+Windows x86-64

moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_x86_64.whl (2.7 MB view details)

Uploaded CPython 3.11+musllinux: musl 1.1+ x86-64

moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_aarch64.whl (2.6 MB view details)

Uploaded CPython 3.11+musllinux: musl 1.1+ ARM64

moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.5 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.4 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

moviepilot_rust-0.1.5-cp311-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

moviepilot_rust-0.1.5-cp311-abi3-macosx_10_12_x86_64.whl (2.3 MB view details)

Uploaded CPython 3.11+macOS 10.12+ x86-64

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 3481882089233878dcedd6a159c79aef7b6f5e87b477a6e3dd7f1dcbf3957920
MD5 f5a166ec9d4250a92137dd1047f6ad74
BLAKE2b-256 9fd67399de59891d544500199e0c7773cc861b3df1d6fe2df6b34853c052be94

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-win_amd64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 0f6db4f84ff23f8becb244f6f7b9408a6719e8b6093f6d8eebe5a1ca462e7076
MD5 997c0fc1b0e483862963af8a5ce234c4
BLAKE2b-256 6c308b83d12c5645869ac08135c4b60a8656f25d83ee5b7d40184b9b58698699

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_x86_64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 487ae5d1e4228e7fd27071afcf7e5d3c86e924d2dce07e4f04911420a8e1c329
MD5 b391bf3e3911e6e1fecbb6b67f112611
BLAKE2b-256 a6c99302aafc0aaf73d3f0053e6e29778e4758d242c6ca5a1a23313ed7489879

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-musllinux_1_1_aarch64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 c458baba0d9668a33ff611fad3489e4537b4cc8771f8e90c4dedb6fb5942b269
MD5 dfebce52eba1d0ccadefcf3a29919966
BLAKE2b-256 29e65f494eb34cff40a665c91bbab0fdacd5e5107751608e93affce4349c78c9

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 9d6e296f0009cc9141505c91203f957d4f75510ca8af67bb265274b7b3b3f9d4
MD5 5358c25dcf43b8afe810d5c97f6ee4cb
BLAKE2b-256 eaaf04d93eecba7d750b15eec6ab45bced6f0c35c60b1e17b8a46951a18e321d

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 949cbf4dcb12d6030e31c27e314510969ce21fccfbbac895016a8913c7255a35
MD5 35414a3693afe175da08120d4982e98d
BLAKE2b-256 843413df37a5a8171104014753d340f50d2bde9ed3bce440884d0463b37788ed

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-macosx_11_0_arm64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file moviepilot_rust-0.1.5-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.5-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2f6465a41a3e6573efc5e81557ee51e8206d09bcbb7e968300d7f5b625f5b464
MD5 424571e9bad03687dec2469f4ffa069a
BLAKE2b-256 15200db6f9232f53eb47d2e732c8208b62ec95be87daa115225dbd410bc569ad

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.5-cp311-abi3-macosx_10_12_x86_64.whl:

Publisher: release.yml on jxxghp/MoviePilot-Rust

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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