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.4-cp311-abi3-macosx_11_0_arm64.whl
dist/moviepilot_rust-0.1.4.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.4
git push origin v0.1.4

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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 749a0f38713eefef2e46e5fbc68b482ce89ed7dc5bd261fd585baef6e5267cd9
MD5 c64b5613f88d17b4afd621ce309bfbc5
BLAKE2b-256 7651d518e4e2320c2d8588d9f274f3cc393e71aeffb1f0c4b219c2faac4d3a7d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 297329e0261bac1c587356c5f2b47b796c90fa228b705c44c43f174136820381
MD5 6726ee2b16df5a70989a45c298547685
BLAKE2b-256 9da7bd9221da5edc06cab3a88162f018d532ddfb7bcb607b6a726ae68f4ead5c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 7d9dfcb6eb3ed3e12ba34c2f84b1eda86005565fbdb13312303fd432283eb74c
MD5 457f9bb4702b19b682114ec4e249fd36
BLAKE2b-256 80c549e891fc41ee14c4e789c98289592f0f7151cf1ec04efd58331d2d524052

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b977b47fd75854b816eb2ed0344d769aa0019fcc0cd21424aaae2cde778189de
MD5 a49a275edeaa483797720414119e0848
BLAKE2b-256 ef7dea7402f2dee0fba1048ddc71390e41bdbb771043bf21fca7f18f501c6828

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0eb32793a5df5c025fc37064c5fc1a7c4801d031748bcb0a1d400bebd1728bbc
MD5 805ade52b2c31f372db83cc71a848a56
BLAKE2b-256 cd6f4b889ac436f454a637ba10afca35d864c54824c69f4d791f207597403ed8

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 6acda8f5029bc6196fcc0120a496b410d721d9df8163277e012bacd193852a07
MD5 04deb50c4eba8dc0d38d9e58e5cbcad4
BLAKE2b-256 2416c587f92484c7e5a57dbea7406227f5a1aedac22b00e3085d37f40fb7a1fd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.4-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 0231121589efcbca0bfe32c493d7ccbf4174c6d33f98efa6e1cc0016748f64bf
MD5 03f74c529d7eb2a4d55f799d3e480f70
BLAKE2b-256 76d975eebbb1c3654f125fc54241e0edff492889fde626837ebc06202e51c5d7

See more details on using hashes here.

Provenance

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