Skip to main content

Studio workflow job workers

Project description

studio-workers

Native (no-Docker) workers for SelfHostHub Studio. Run any Studio worker engine directly on the host, pointed at your Studio API. This is the supported path for GPU work on Apple Silicon, where Docker cannot reach the Mac GPU, and for installing workers on demand inside a single GPU pod.

Install

Pick the extra for the engine you want to run:

pip install "studio-workers[audio]"    # TTS (Chatterbox, torch)
pip install "studio-workers[video]"    # transcription and video (whisper)
pip install "studio-workers[comfyui]"  # ComfyUI bridge
pip install "studio-workers"           # general + transfer (CPU only)

The [audio] extra currently requires Python 3.12: its Chatterbox dependency chain does not yet resolve on 3.13 (the install fails with an llvmlite build error). The other extras run on 3.12+.

[video] prerequisite: ffmpeg with libass

The video engine shells out to ffmpeg and burns subtitles with the libass ass filter. Any ffmpeg build that has the filter works; check yours:

ffmpeg -filters | grep ass

If nothing prints, install a build that includes libass. On macOS the core Homebrew formula no longer includes it; use the homebrew-ffmpeg tap:

brew trust homebrew-ffmpeg/ffmpeg
brew install homebrew-ffmpeg/ffmpeg/ffmpeg

studio-workers doctor --engine video verifies both ffmpeg and the filter.

Version pinning

Install the studio-workers version that matches your Studio release; the release notes name it. The API checks the worker version at registration and refuses a mismatch.

Check the install

studio-workers doctor --engine audio

doctor fails loudly when a GPU host would silently run on CPU: it asserts torch sees MPS on Apple Silicon and CUDA when an NVIDIA driver is present.

Run

SHS_API_BASE_URL=https://your-studio-api \
SHS_PUBLIC_BASE_URL=https://your-studio \
SHS_WORKER_SHARED_SECRET=... \
SHS_WORKSPACE_ROOT=/path/to/workspace \
studio-workers run --type audio

(python -m studio_workers.worker with SHS_WORKER_TYPE set still works; run is the same loop.)

The worker polls the API for jobs over HTTP; no inbound port is required. See your Studio instance's worker access documentation for the sanctioned connection paths.

Third-party software

Installing an engine extra pulls third-party packages (torch, Chatterbox TTS, whisper, ComfyUI dependencies) from their own upstreams under their own licenses; model weights download on first run.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

studio_workers-1.6.0.tar.gz (19.2 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

studio_workers-1.6.0-py3-none-any.whl (19.3 MB view details)

Uploaded Python 3

File details

Details for the file studio_workers-1.6.0.tar.gz.

File metadata

  • Download URL: studio_workers-1.6.0.tar.gz
  • Upload date:
  • Size: 19.2 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for studio_workers-1.6.0.tar.gz
Algorithm Hash digest
SHA256 5bacfb2c7e5c07f601a38b59960ff1ddd1ddbc6b375d7ce640b0c2f47761ceef
MD5 d6d27db35f8847f021af320be0a136a5
BLAKE2b-256 9dad3505a9ce80b9a9b798050f0e530f9553f6a49baf9679921c453b5bfe7aea

See more details on using hashes here.

Provenance

The following attestation bundles were made for studio_workers-1.6.0.tar.gz:

Publisher: publish-workers-pypi.yml on selfhosthub/studio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file studio_workers-1.6.0-py3-none-any.whl.

File metadata

  • Download URL: studio_workers-1.6.0-py3-none-any.whl
  • Upload date:
  • Size: 19.3 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for studio_workers-1.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b11dc5a017a820eda19d6b7fdf494e38b1934cce45479d54718ff8b58cca5426
MD5 a9654b9ab34d71dae6f96a41f0c741e6
BLAKE2b-256 46c70eb668e8b7b01c16279f0c4bc518f0a47c775f139ea6a6b1304747290724

See more details on using hashes here.

Provenance

The following attestation bundles were made for studio_workers-1.6.0-py3-none-any.whl:

Publisher: publish-workers-pypi.yml on selfhosthub/studio

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