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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 8e393de4e2daf05b6a2fd7810a114248ff1d7ea9d7f2cbd3f8100f9c712d29a6
MD5 91ab33b42d686305d90091c4b080ed02
BLAKE2b-256 de9b3c99c03ba6a8618466b37cce3503b4f6f82f27382dcb8e1acd81159e88e7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 a827b4b16c58f57499f4e0f82b6329f2f8b77f80d1db913dc347eaeae9b2e061
MD5 3733483fb50a9366f4ec1293dacba6de
BLAKE2b-256 7ccf68bc1ef53577a2ad535a3133c71c33f3ca2baa411cdab60dc5ea2eeb96c7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 629e78785abed5db6a0dfaec09c203a63a8d94f3bcb755d5b7a075a937a7f471
MD5 52fb3e8a7a4d33bd0828ab5fcf1bbd6e
BLAKE2b-256 cf0723b3a361e830163527c3fda8f20f1c3cec23e70c3bcd0ddacb91edc90b0f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 b9293a08ef42aab0a1f497e58e0bc6b09bf863c2fee5f553eb8f32516d945257
MD5 5a01e2d893f6866730c8268be31911ae
BLAKE2b-256 7a522e960d99c1806d1645895e0e017901b063b5a0c5a11af6544d3edc00460b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 1851830aa91662e65e1294e8e0a2b2df9cee187faa4c8a89a89955023cd5f848
MD5 8a473be132c77250a0085bfd0e901c18
BLAKE2b-256 46a181b55c07183de2d6f2b7f05072054048460c7bc827f38108570009766532

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 d8a5b8fc441dfcb651a21f2323eb8f23f642b7af39abab6d2649895935a94e2d
MD5 b51cdc4d84f0288c681501148171b306
BLAKE2b-256 5d6771168a95894ce986c4654dd4e83564dc59affd2a881c8baaffe8360bc5ad

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.10-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 8734b545190d9d1c94d9eb76ba8273653daea8fc8f87528a35ed9bd7c36e8b4c
MD5 fbac31576c95f66d854a9284e21f37de
BLAKE2b-256 e90763182686fa0b0f9ddf8c4ec89be9d0d6f5b96ef5ff582c8c8f22661adf85

See more details on using hashes here.

Provenance

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