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

Uploaded CPython 3.11+Windows x86-64

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

Uploaded CPython 3.11+macOS 11.0+ ARM64

moviepilot_rust-0.1.12-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.12-cp311-abi3-win_amd64.whl.

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-win_amd64.whl
Algorithm Hash digest
SHA256 d3f2e98d27edfb65cda438c084c8c0dea71ffbc1770b262a9f2437921bf32d30
MD5 f3e5c423edfad8ddbd5745f263aabb44
BLAKE2b-256 f9c3ab6d82fa0c9336c8788775e4a573b591d58c6afef69a0b671f05e3058cdf

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-musllinux_1_1_x86_64.whl
Algorithm Hash digest
SHA256 eb9cb9adf6cc66f7348cdbb2125e7e7e38a82b87a7c7024b62857755b118521c
MD5 2164242a346cfc279945f72e1e0fad7d
BLAKE2b-256 7721d269a04d800143ded285fe83c55dfb8b2cc951266d2cb1f9e60db41162c1

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-musllinux_1_1_aarch64.whl
Algorithm Hash digest
SHA256 42b0a14ea0c52148c9ee39f5a6efa16954679467fcd9a652f73e967f5b5587b5
MD5 ba6a22ec84421dba0657124131e12ac4
BLAKE2b-256 41cffc2f8721846b44fa3af575ac842076c8cbc39deacdf78b1412a7562e00f7

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 7c851a276e792b6d4a5123c6a55e99ce29be478266e4f93c379e4b092e6cfc78
MD5 8d33982ec2f882107aadeeb0b25a5b2f
BLAKE2b-256 44c7379568517cd87a3be80c604af11d4cf506a38cbcafcfc3d93a772a43d822

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 aed92361917d486c6dae0f82aa1e8254054a68a878440acab7a1924eee0cdcd6
MD5 440b1895264899b32cdc00e9f65101de
BLAKE2b-256 3380208298334565392af7b714d538eed50f0118a559d954766ceef2dd00ad0b

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 4a31a1f3dc83896de39f4235d128c280aea41a1f5151d0562eb631901173e315
MD5 1d0efd555938e1d6ea2e30f0b329bb10
BLAKE2b-256 e7e71c49ab3d22b61cf5a0beb6e00c13ed52561092baffcb7df91c659f19991c

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for moviepilot_rust-0.1.12-cp311-abi3-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 2fd7809be504c800c2496392bf2ca7bf16e0f2b9a989a3a48309825af799487b
MD5 b6bbe977c187085efce37c919be74af9
BLAKE2b-256 18de8238ddce5194638bbd445ec7fab3c5bad1fa235247192430aac6c74f9e2f

See more details on using hashes here.

Provenance

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