Skip to main content

rust-motion (Python SDK)

High-performance, browser-free, programmatic video rendering engine for Python.
Zero Chromium. Zero Puppeteer. Zero Node.js. 100% Pure Rust Native Speed.

Installation

pip install rust-motion

(Prerequisite: ffmpeg installed on your system PATH)

Quick Start

1. Render a Video in 3 Lines

import rust_motion

rust_motion.render(
    composition="HelloWorld",
    output="video.mp4",
    props={"title": "Hello from Python", "subtitle": "Rendered in 0.3s"},
    width=1920,
    height=1080,
    fps=30.0,
    duration=90,
)

2. Render a Still Frame (Thumbnail / Poster)

import rust_motion

rust_motion.render_still(
    composition="HelloWorld",
    frame=30,
    output="thumbnail.png"
)

3. Dynamic Video Templates with Rhai Scripts

import rust_motion

rust_motion.render_script(
    script_path="templates/shorts.rhai",
    output="shorts.mp4",
    props={
        "headline": "Breaking AI News",
        "caption": "Rendered natively without a browser.",
        "tag": "TECH",
    },
    width=1080,
    height=1920, # Vertical 9:16 Shorts / Reels
    duration=90,
)

4. Object-Oriented Composition API

import rust_motion

comp = rust_motion.Composition("HelloWorld", width=1920, height=1080, duration=180)
comp.render("output.mp4")
comp.render_still(frame=0, output="cover.png")

Performance Comparison (vs Remotion)

Metric Remotion (Node.js + Chromium) Rust Motion Python SDK Advantage
Runtime Dependencies Node.js, Chromium, X11, Mesa Pure Rust Binary + FFmpeg Zero Browser Overhead
Memory Footprint (RSS) 1,800 ~ 2,500 MB 400 ~ 900 MB 4x ~ 6x Less RAM
720p Render Time 11.04 s 0.35 s 31x Faster
1080p Shorts Render Time ~12.0 s 0.39 s (230 FPS) 30x Faster
AWS Lambda 10k Cost $4.60 $0.15 96.8% Cost Savings

License

MIT OR Apache-2.0

Metadata

Release files for rust-motion 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for rust-motion 1.1.0
File Size Uploaded Provenance Actions
rust_motion-1.1.0.tar.gz 2.9 MB Without provenance Details for rust_motion-1.1.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for rust-motion 1.1.0
File Actions
rust_motion-1.1.0-cp310-abi3-win_amd64.whl CPython 3.10 abi3 Windows x86-64 Details for rust_motion-1.1.0-cp310-abi3-win_amd64.whl
rust_motion-1.1.0-cp310-abi3-manylinux_2_28_aarch64.whl CPython 3.10 abi3 Linux glibc 2.28+ ARM64 Details for rust_motion-1.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
rust_motion-1.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl CPython 3.10 abi3 Linux glibc 2.17+ x86-64 Details for rust_motion-1.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
rust_motion-1.1.0-cp310-abi3-macosx_11_0_arm64.whl CPython 3.10 abi3 macOS 11.0+ ARM64 Details for rust_motion-1.1.0-cp310-abi3-macosx_11_0_arm64.whl
rust_motion-1.1.0-cp310-abi3-macosx_10_12_x86_64.whl CPython 3.10 abi3 macOS 10.12+ x86-64 Details for rust_motion-1.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Total release size: 39.0 MB

Release files / rust_motion-1.1.0.tar.gz

Download URL rust_motion-1.1.0.tar.gz
Size 2.9 MB
Tags Source
SHA-256 checksum
How to use checksums
a5d16d532240739324d4abb229a394a46a5d2984a6553016c189b523c6070abf
BLAKE2b-256 checksum
How to use checksums
0117a586dafc2690323a5f214b1e606be2e158aaf7a8b8e18faaee4b5cfc87ba
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rust_motion-1.1.0-cp310-abi3-win_amd64.whl

Download URL rust_motion-1.1.0-cp310-abi3-win_amd64.whl
Size 7.6 MB
Tags CPython 3.10 Windows x86-64 abi3
SHA-256 checksum
How to use checksums
89846c31e372334aaf3e173f8b29ab6fcb78c478aca97fd6e91cd7642fb2789b
BLAKE2b-256 checksum
How to use checksums
5d432c9cb6c9d031f60b756442b5da0fd102252d39ecca669a7f53c9c03c3918
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rust_motion-1.1.0-cp310-abi3-manylinux_2_28_aarch64.whl

Download URL rust_motion-1.1.0-cp310-abi3-manylinux_2_28_aarch64.whl
Size 6.9 MB
Tags CPython 3.10 Linux glibc 2.28+ ARM64 abi3
SHA-256 checksum
How to use checksums
8b9261f9af67297eb1e732bff2689ebefae0639029b245e963175af01dc2486b
BLAKE2b-256 checksum
How to use checksums
d67cc40d22df0f27776ca0c6054548613d11a223d3d33e60302a18c269c27e5b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rust_motion-1.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl

Download URL rust_motion-1.1.0-cp310-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.whl
Size 7.5 MB
Tags CPython 3.10 Linux glibc 2.17+ x86-64 abi3
SHA-256 checksum
How to use checksums
cbec1e659d0ef10e20bb2e4f3f8c113e3cc925f850977f68a41b413844d35ba1
BLAKE2b-256 checksum
How to use checksums
1542752ceb3ca0af01bebdf6d59da74bc7af6503f9cc5c45bd5aa42172f292a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rust_motion-1.1.0-cp310-abi3-macosx_11_0_arm64.whl

Download URL rust_motion-1.1.0-cp310-abi3-macosx_11_0_arm64.whl
Size 6.8 MB
Tags CPython 3.10 abi3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
5bc23a429d735963d0bcfc156dd3aec2b000ea2381753c32d7834e0cc16f5aa2
BLAKE2b-256 checksum
How to use checksums
11122b11e9a2e062590faf834bf7835037b683130164f37c264f1f67a9de3742
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Release files / rust_motion-1.1.0-cp310-abi3-macosx_10_12_x86_64.whl

Download URL rust_motion-1.1.0-cp310-abi3-macosx_10_12_x86_64.whl
Size 7.3 MB
Tags CPython 3.10 abi3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
b05db75b7ab2db30cf651bd622f8de787e05007faec06ec1ad86d55884aee61d
BLAKE2b-256 checksum
How to use checksums
f0468f85deca98c7337946f230351fc1ad784770b2c4034a17dbfdce4ea49ae6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.16

Security for rust-motion 1.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.0 This release

6 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page