Skip to main content

Porter Workflow

English | 简体中文

CI PyPI PyPI Downloads Python 3.11 - 3.13 License: MIT

Porter Workflow preview

Porter Workflow turns video URLs (YouTube, Bilibili, TikTok, X/Twitter, Instagram) or local media/subtitles into bilingual & Chinese subtitles and hard-subbed MP4s. Plan first, one capability per stage (no silent runtime fallback); offline Whisper (faster-whisper), key-free translation, LLM adapters, and 1080p target quality ship in the base package, while Gradio stays optional in [web].

Prerequisites

  • Python 3.11–3.13 (or uv)
  • FFmpeg + ffprobe with libass on PATH (ffmpeg -filters | grep subtitles)
  • Deno (recommended) or Node ≥ 20 on PATH for YouTube

Quickstart

WebUI Workbench

uv tool install "porter-workflow[web]" && porter   # http://127.0.0.1:7860
# or run without installing:
uvx --from "porter-workflow[web]" porter

Agent Skill

npx skills add RolinShmily/porter-workflow

Installs skills/porter-workflow/ — a self-contained JSON CLI over the published PyPI package (auto-bootstrapped via uv).

Python Core API

pip install porter-workflow
from porter import plan_source, run_plan

plan = plan_source("https://www.youtube.com/watch?v=...", quality="1080p", burn="dual")
if plan.feasible:
    print(run_plan(plan).workflow.artifacts)

Supported Sources

Source Examples Native Subtitles Notes
YouTube youtube.com, youtu.be Yes Needs Deno or Node ≥ 20
Bilibili bilibili.com, b23.tv Yes High quality / CC may need cookies
TikTok tiktok.com, vm.tiktok.com Yes —
X / Twitter x.com, twitter.com No Uses ASR (faster-whisper by default)
Instagram instagram.com No Uses ASR; gated reels may need cookies
Local files .mp4 / .wav / .srt / .vtt Optional (--subtitle-file) Subtitles run without FFmpeg

Output Layout

porter_output/<video_id>_<safe_title>/
├── raw/        video.mp4, audio.wav, transcript.json/.txt, subtitle.srt, cover.jpg, metadata.json
├── cooked/     subtitle_{bilingual,zh}.{srt,ass}, video_{bilingual,zh}.mp4
└── .tmp/       scratch (safe to delete between runs)

Documentation

Document Scope
docs/architecture.md Layers, workflow & pipeline, media, subtitles, and jobs
docs/design.md Architectural rationale & key trade-offs
docs/reference.md Python API (import porter), WebUI CLI flags & Skill reference links
docs/development.md Setup, four gates, extending, licence rules, and release

Also see skills/porter-workflow/SKILL.md, CONTRIBUTING.md, and CHANGELOG.md.

Acknowledgements

Built on and inspired by yt-dlp, FFmpeg & libass, faster-whisper, VideoCaptioner, Gradio, and Pydantic.

License

MIT — see LICENSE.

Metadata

Release files for porter-workflow 0.4.1

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

Source distribution (sdist)

Source distribution for porter-workflow 0.4.1
File Size Uploaded Provenance Actions
porter_workflow-0.4.1.tar.gz 273.9 kB With provenance Details for porter_workflow-0.4.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for porter-workflow 0.4.1
File Interpreter ABI Platform Actions
porter_workflow-0.4.1-py3-none-any.whl Python 3 none any Details for porter_workflow-0.4.1-py3-none-any.whl

Total release size: 564.7 kB

Release files / porter_workflow-0.4.1.tar.gz

Download URL porter_workflow-0.4.1.tar.gz
Size 273.9 kB
Tags Source
SHA-256 checksum
How to use checksums
65af90433dab86f46ffbf6b64076ff5168285ed49f4e0d9b27c18508c52743be
BLAKE2b-256 checksum
How to use checksums
c1f05d670a60e281617403ff9bb5225935cc0ba77132aedb88a87770b0b46e74
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Release files / porter_workflow-0.4.1-py3-none-any.whl

Download URL porter_workflow-0.4.1-py3-none-any.whl
Size 290.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
233ff737fc1820a381466eeae94756b44508216774522d6b659e7e70be063da8
BLAKE2b-256 checksum
How to use checksums
6df446cd73437ad0aacff9166e08cb804e2d280fd325769940dd357c69ec4a88
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

Security for porter-workflow 0.4.1

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for porter_workflow-0.4.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 24, 2026.

Transparency log

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.

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