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.2-cp311-abi3-macosx_11_0_arm64.whl
dist/moviepilot_rust-0.1.2.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.2
git push origin v0.1.2

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

Uploaded CPython 3.11+Windows x86-64

moviepilot_rust-0.1.2-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.2-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.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (2.4 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ x86-64

moviepilot_rust-0.1.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (2.3 MB view details)

Uploaded CPython 3.11+manylinux: glibc 2.17+ ARM64

moviepilot_rust-0.1.2-cp311-abi3-macosx_11_0_arm64.whl (2.2 MB view details)

Uploaded CPython 3.11+macOS 11.0+ ARM64

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 ad1cfc55f378f7e30c476d8bbee0c6896d3526b24e33f64c994759bd16012806
MD5 4739f195199ff8017eaf5659ddecffc0
BLAKE2b-256 6de97e768cfafd29508f598b220e521744e505fff19877d88e4d08b5758b8ae9

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 8476f8c4a0eaaf10150305a465e9aeda6cb5006a989736fa11db7e208ceb8db6
MD5 ffb0cf436b2d3368fe8393b562d31074
BLAKE2b-256 834541cc74451ae1a7e03a1c23a497ee3390e5bf5687be9d8d65883f4d649db1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 6f1363dca342b5c6baabf4b7b2aae5abfd5cad3048e4962bc06f7025a867ad90
MD5 f85d2ece98f272be62dbcdde8a259722
BLAKE2b-256 77fb8e483ae6d2ecfac32ac4a4f89031eea15748d7b7202f03ac8c5bcfc11629

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 15d210d2567c37acfbbece4846472f8c3ccff6d92c63ae7cb5e4cce31558cf8d
MD5 fbda2bf7aeab5f2f3f5f57e9a8031786
BLAKE2b-256 ccc25e0eba41c4231a53247b1b6e7b3056cc02201fa43370636b9deb8d63465d

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 0cb3b92bdf0f9895e63e5073cb95e487220154255b6fbf0c91e9bc756772edbe
MD5 c23a5a0f831bd25b9f64691ced067b33
BLAKE2b-256 098c59f6e79757c5e68ae7e91fd28ea97905e00ba01bd9ca4b92ab48a307642f

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 c778de6f08cc0592b5c7c666501b9940a54fdb58022f9d3423bfd1c50af6574d
MD5 b74c857fc2b0f78d3743485bc8bcab46
BLAKE2b-256 dfc0fe92927ff62ea34c6877de0315c306b7461aee707f0ecfe874e8083393d2

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.2-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 ccc2c1ab767ea5d43217912c8dbb3469578642beff7fa274bd80886f6d215ac8
MD5 660746bad98e3fe244acbde2b3c42ae9
BLAKE2b-256 9e3275ef39b0ccb0a8f8f6cd40a57bf8be626475599a418c8110934d0b6c4ee9

See more details on using hashes here.

Provenance

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