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.6-cp311-abi3-macosx_11_0_arm64.whl
dist/moviepilot_rust-0.1.6.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.6
git push origin v0.1.6

然后在 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.7-cp311-abi3-win_amd64.whl (2.3 MB view details)

Uploaded CPython 3.11+Windows x86-64

moviepilot_rust-0.1.7-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.7-cp311-abi3-musllinux_1_1_aarch64.whl (2.5 MB view details)

Uploaded CPython 3.11+musllinux: musl 1.1+ ARM64

moviepilot_rust-0.1.7-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.7-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.7-cp311-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

moviepilot_rust-0.1.7-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.7-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 5e335fee7c52ab46705efc8edb4fcc57bc41408a2b7c52e89f2fc933c9adb8d7
MD5 4d3089caf40ff3d46a02f941e56f72e8
BLAKE2b-256 9574d3b6cdeb87ce71779963f2d6a141201936ddf2888aaefd8c0cc3ce255f70

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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.7-cp311-abi3-musllinux_1_1_x86_64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 36a5a846617a5bd53dc178a6d6e1f9fa079a6ceb09a267bcb6fa3216509f7b94
MD5 6d9971b383deb5d5949652fa7439781e
BLAKE2b-256 574ca0ef9c4bf1adce4d7e6206b919be001e8f3a602d7521f137ce111d7be581

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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.7-cp311-abi3-musllinux_1_1_aarch64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 d4a4f5c85be06a27a735c30e6935fdfbe9df41ade50e27c665a04c156738293a
MD5 3f2d854a76ed45b82513b14db609f4d2
BLAKE2b-256 9a7204876d6f9acab034667ba6ddfd32dc800eb9cb013a9502344899e0282fd3

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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.7-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 024cb6c24e704703427e33ea98af91c72b8950ef7afd1288e56c19372efe3512
MD5 c1e96c9e601590b85bab3aad60e7df77
BLAKE2b-256 42add47d6bde9d6ab3b1090838a257af2aa6b070158a5d9e13e67c0ceb716b39

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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.7-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 d17da060fd6bc5e6f1fc6369497454d0202a4eddf4c5ebdf036acd34d35a4a37
MD5 26bc83dbe1c475dd081d53ff85d1036c
BLAKE2b-256 6e225086bdd5c15feff1e4111d56da7dc8a5395a386467a0fe912da116dd46f1

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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.7-cp311-abi3-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bb2846adf17dc7b505c37bb26b91a54991641a35859f1e1a8bcac75e90bb1686
MD5 9afb90d9508c179942ba1c6a72540f69
BLAKE2b-256 317c84d92281750028e1ba1e8f8ab13a2a8f2fb511cb783a7698fc794a255306

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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.7-cp311-abi3-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.7-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 898c839d3aab4e39a322a537b0a41aef87b4d6c4ceae695d507497d725f17759
MD5 5acb65a2500e349e2e26bb5876ef9cef
BLAKE2b-256 409ccbfa2f05599ec22ba2002e77d03ed05918d1c940e71a9292d9d917ca7d8d

See more details on using hashes here.

Provenance

The following attestation bundles were made for moviepilot_rust-0.1.7-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