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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 1c32e53e16e5988f9de9c34f00b761699a6dbad2498e16dd9a219392e88ca3c1
MD5 772f4f88cceb863784bf918d1e219e43
BLAKE2b-256 93ebb63c47d12c67bd5fb2b8866b60f031b0e3589ceee9737812cc22577a482f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 7f93df58bb56083f0ebdbe3095bc9b15106caa62d2849857a7fc5b1e19984c4f
MD5 6af510b782ab2198563336e5b35cdc4d
BLAKE2b-256 416c7515075d1daafaa424dacb31dc7a3befa66bbe2d2f07950d893df98af880

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 f455033b766d09419dcda26c826e353f810b10711e59be9af92882c8eaaea041
MD5 4de2608f83dea9bf298754978a98e3d1
BLAKE2b-256 b75d68c4c550e80e57e394fd590b70e0c411bcac1cac1b79ce6773ec278d1e99

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 67ba376f1abab871699bbbf3ac5e276762871d8c94cc2110bc8c7f09562de3b0
MD5 3254cd9ae8e259a1a367499a2eaf4cbc
BLAKE2b-256 ff1e050d45e8b5a9dd1549e32dddca9cd350d47b134ac4fa73ba8c8fc135adef

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 f0c47a2101eec36cdef6afe2ed702b7db9c19f0c6e7b2672ecb9e708695df321
MD5 02128b6eeb8007aa5b407ce1fc92b697
BLAKE2b-256 790838a58155ce14fb4b356447c3d59219d00688e4e0c8a60d2aea7049e76c8e

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 731ed1b6d29ed38094a4c8fb3258fee1231f164a4900138ee015e003c3926f7e
MD5 aa5b5883413d5af7ac65ec1d41f50232
BLAKE2b-256 a63da00bf3fcd8a0e23bf4030868460d29dd4ce119d703a93474ced5721d384b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.11-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 d9d5bbaf5f61f97b9654c5dc285cdad0258038cba8d70a693b7e1e27a943d502
MD5 4ce12b9e796a99557dd611205f0fc2f8
BLAKE2b-256 477cc600dd4aa07433e599f83c586a44a57fa2f9ebf13997473befd6a74a46ca

See more details on using hashes here.

Provenance

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