Skip to main content
Change of provenance

The repository or configuration that created this release differ from a previous release. View details.

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.2

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

Change of provenance

The repository or configuration that created these release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Source distribution (sdist)

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

Built distribution (wheel)

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

Total release size: 565.0 kB

Release files / porter_workflow-0.4.2.tar.gz

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL porter_workflow-0.4.2.tar.gz
Size 274.2 kB
Tags Source
SHA-256 checksum
How to use checksums
aa24b07bb304151bd9db3e95e30b0ce5770d10d980ed0a23bc035209d9fd8a85
BLAKE2b-256 checksum
How to use checksums
dde47581c5a25ceaf8f743bb352dc9eac7a20230e0b42bd834715feb6f61eb39
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.2-py3-none-any.whl

Change of provenance

This file belongs to a release with changed provenance: the repository or configuration that created the release files differ from that of a previous release.

We recommend inspecting the repository and configuration before proceeding. View details.

Download URL porter_workflow-0.4.2-py3-none-any.whl
Size 290.9 kB
Tags Python 3
SHA-256 checksum
How to use checksums
231844fb9aadab315673a459a4091507db70e89985d46b314774d89f1b707ab2
BLAKE2b-256 checksum
How to use checksums
6f4f492bd305d2dd14d852864bc25934fbcadf2010981a14b31bc5f505985715
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.2

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.

Change of provenance

The configuration that created this release differs from a previous release.

While this could reflect a routine change by the project maintainers, it may also indicate that the release files have been compromised.

Select from 2 files

Attestation for porter_workflow-0.4.2.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