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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 2adb71c2915101cb4c02e26483042744b2b02e3f3551592540bb571c3928d988
MD5 80cb55e7ecae5573e108011552ef15b7
BLAKE2b-256 c10c50b70ca58e2c07c9d66cfc204f5e5438eb43f16144c964041dda3bf6adfd

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 c9b15da2c8664d0f626f8915a598ad0e64e9b4093043fa66fa11df74f5b4bc47
MD5 95d0e8663b28bfbfe288cf7b4be4446e
BLAKE2b-256 6c7f4c008c4deeeafb0f1a798b0451f48c35d1402ca4aa1c1c7b5b8dbdda234f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 92646008b0b3cd22bfda61ea3751a78a2b1ad95e00b5919a5f7da32090be2fd7
MD5 82a4f1c02b7e7bc1c0928b6b3996d5ca
BLAKE2b-256 a8826e3f90ee25efaf550054a7e16a256f4278339e013007f1d8ddf93efc9bee

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 a57674ef34ad90f22e85d4f3931da32edc96f7f97a3d3b8674d7889d6c2418c6
MD5 dc6ac22f394a22e1bcb9890e294422de
BLAKE2b-256 1b11f1272abc7f99f6c2279b4082b5df536b306f7dd70eb40bbc78d63ff576d6

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 37c2d010dd526ef41b4fb907658184d272a75fab0a73d5e5ca9a7b5658c9c3b3
MD5 2959d971c440c6a987ac9c5087bbe9c7
BLAKE2b-256 7a5fbb5d3a0242a40c776b80bb0b6d2e3ae03b7901dc3ac6e4fbd15577de7351

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 28743ed8e44534baef73018bb33c626f98054de804208d7e773a41e03b97cf0f
MD5 fdad7ddd9a6536bf747673a903f106a8
BLAKE2b-256 84311869955e3df072fdd6a015260f0e4b7faba61b6aa059f862b8c05f5b2b9d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.8-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 84f0d152a8ee10fe323147ada50ec5f58fd5cd929ef77b8c77ed6b6ee816a867
MD5 2506ada98f0b748fcf7dd187ef3785c6
BLAKE2b-256 674777219a81314d0298e026333cd4430352038fd6931240d2002d381b54298d

See more details on using hashes here.

Provenance

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