Skip to main content

streamlift-worker

Distributed download worker for StreamLift.
Designed to run in Google Colab — paste the one-liner from the dashboard and go.

What it does

  • Registers itself with the StreamLift backend
  • Polls for download tasks (HTTP URLs or magnet links)
  • Downloads files and streams them directly to Mega (zero local disk) or saves them locally
  • Reports live progress back to the backend
  • Sends heartbeats with CPU / RAM / network metrics

Install & run (Colab cell)

The StreamLift UI generates this for you with all credentials pre-filled:

!pip install -q requests psutil
!pip install -q git+https://github.com/shubhra92/megapy.git
!pip install -q git+https://github.com/shubhra92/streamlift-worker.git

!streamlift-worker \
  --worker-id     "your-worker-uuid" \
  --auth-token    "your-auth-token" \
  --api-url       "https://your-app.com" \
  --compute-type  "medium" \
  --location      "mega" \
  --mega-email    "you@example.com" \
  --mega-password "yourpassword"

CLI flags

Flag Required Description
--worker-id ✅ Worker UUID from the StreamLift dashboard
--auth-token ✅ Auth token for this worker
--api-url ✅ StreamLift backend base URL
--compute-type ✅ Resource profile: low | medium | high
--location ✅ Where to store files: local | mega
--mega-email ⚠️ Required when --location=mega
--mega-password ⚠️ Required when --location=mega

Package structure

streamlift_worker/
├── __init__.py       # version
├── __main__.py       # CLI entry point & arg parsing
├── config.py         # WorkerConfig dataclass
├── worker.py         # main loop, registration, heartbeat thread
├── downloader.py     # HTTP + torrent download handlers
├── mega.py           # Mega upload helpers (stream & file)
├── api.py            # all HTTP calls to the backend
├── metrics.py        # CPU / RAM / network metrics
└── logger.py         # in-process log queue

Metadata

Release files for streamlift-worker 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 streamlift-worker 1.1.0
File Size Uploaded Provenance
streamlift_worker-1.1.0.tar.gz 14.7 kB With provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for streamlift-worker 1.1.0
File Interpreter ABI Platform
streamlift_worker-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 30.2 kB

Release files / streamlift_worker-1.1.0.tar.gz

Download URL streamlift_worker-1.1.0.tar.gz
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
2f965d2db7a75b73a370e11ef03a5a2c5d25ba6f257349d1b9e68843beadfe80
BLAKE2b-256 checksum
How to use checksums
5e5d9e48bc3e12830e1e27e81975dc57a0f41707f5d09698a67396d8a82c8c1c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 13, 2026.

Transparency log

Release files / streamlift_worker-1.1.0-py3-none-any.whl

Download URL streamlift_worker-1.1.0-py3-none-any.whl
Size 15.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b71d1c71895a641f89bb4e79ff8dfc3aa74be4a6a6c2a9296f593a22417a7503
BLAKE2b-256 checksum
How to use checksums
44426f9ee916de9dec0465f2e2e58d23f9027af9a0306b30a24c1094ad763e22
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Aug 13, 2026.

Transparency log

Security for streamlift-worker 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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for streamlift_worker-1.1.0.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 Aug 13, 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.

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