mux-python
Mux API
What it is and what it does
mux-python is the official Python SDK for Mux's REST APIs, generated from OpenAPI definitions. It wraps two main Mux services: Mux Video for video hosting, transcoding, and live streaming, and Mux Data for real-time video performance analytics and quality-of-service monitoring. The library is a lightweight, code-generated wrapper that closely mirrors the underlying REST API structure, meaning responses follow a JSON:API-like pattern where the actual data lives in a `data` field on the response object. It uses a functional API design rather than heavy object orientation—for example, operations on assets are methods on an AssetsApi class that take an asset ID, rather than methods on an asset object itself.
The package depends on urllib3, six, and python-dateutil for HTTP requests and date handling. It provides specific exception types (NotFoundException, UnauthorizedException, ServiceException) for error handling. The library is not suitable for parsing webhook payloads due to API spec incompatibilities, only for making REST API calls. Authentication is managed by passing token ID and secret to a Configuration object, typically read from environment variables.
Use it for:
- List, create, and manage video assets in Mux Video—upload files, check transcoding status, retrieve playback URLs.
- Create and manage live streams, retrieve stream keys, and monitor live broadcast status.
- Query video performance metrics and analytics from Mux Data—view error rates, quality metrics, and viewer experience data.
- Retrieve signing keys and configure video playback authentication and authorization.
- Manage video uploads and track their ingestion status through the Mux platform.
Worth the install?
AI-flagged interpretation of the facts on this page — verify before relying
Official Python wrapper for the Mux API, providing access to Mux Video (video hosting and streaming) and Mux Data (video performance analytics) services.
Yes, if you use Mux Video or Mux Data services. The package has low install friction, permissive licensing, and no known vulnerabilities. However, the 218-day gap since last release and aging maintenance status suggest it is stable but not actively developed—suitable for production use with established APIs but not for rapid feature additions. Verify current Python version support before adopting.
Install
mux-python on PyPI
pip
pip install mux-pythonuv
uv add mux-pythonpoetry
poetry add mux-pythonInstalling mux-python
Before you install
Low install friction with three lightweight dependencies (urllib3, six, python-dateutil). Last release was 218 days ago; repo is active but aging, with 68 stars. No recent commits suggest the package is stable but not under active development.
License in practice
MIT license is permissive and imposes no restrictions on use, modification, or distribution in commercial or private projects.
Quickstart
pip install mux-python
import os
import mux_python
from mux_python.rest import ApiException
configuration = mux_python.Configuration()
configuration.username = os.environ['MUX_TOKEN_ID']
configuration.password = os.environ['MUX_TOKEN_SECRET']
assets_api = mux_python.AssetsApi(mux_python.ApiClient(configuration))
list_assets_response = assets_api.list_assets()
Requires MUX_TOKEN_ID and MUX_TOKEN_SECRET environment variables set with valid Mux API credentials.
Verify before relying
- Current Python version support (description mentions 2.7 or 3.4+ but requires_python is unspecified in metadata).
- Whether the package is actively maintained or in maintenance-only mode given the 218-day gap since last release.
Package facts
| License | MIT (permissive) |
| Python support | not specified |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 3 — urllib3, six, python-dateutil |
| Maintenance | aging — 218 days since the last release |
| Last repo commit | |
| First released | |
| Downloads | 963,948/month — #4,628 on PyPI (30-day window, as of 2026-08-14) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-14) |
Evidence: mux_python-5.1.2-py3-none-any.whl
Keywords: OpenAPI, OpenAPI-Generator, Mux API
Tags
More WWW/HTTP packages
urllib3 is an HTTP client library that provides…
permissive · top 100 on PyPI
requestsRequests is a Python HTTP library that…
permissive · top 100 on PyPI
h11h11 is a pure-Python HTTP/1.1 protocol…
permissive · top 100 on PyPI
httpxHTTPX is a fully featured HTTP client library…
permissive · top 100 on PyPI
httpcoreA minimal low-level HTTP client library that…
permissive · top 100 on PyPI
aiohttpaiohttp is an async HTTP client and server…
permissive · top 100 on PyPI
twelvelabsPython SDK for the TwelveLabs video…
unclear · top 15,000 on PyPI
signalflow-client-pythonA Python client library that connects to Splunk…
permissive · top 15,000 on PyPI
vonage-videoPython client library for Vonage's Video API,…
permissive · top 15,000 on PyPI
tako-sdkProvides a Python client library for the Tako…
permissive · top 15,000 on PyPI
azure-mgmt-streamanalyticsProvides Python client library for managing…
permissive · top 15,000 on PyPI
streamlinkStreamlink extracts video streams from various…
permissive · top 15,000 on PyPI
ffmpeg-pythonffmpeg-python provides a Python interface to…
permissive · top 5,000 on PyPI
scikit-videoscikit-video reads, writes, and analyzes video…
permissive · top 5,000 on PyPI
pynvvideocodecPyNvVideoCodec provides hardware-accelerated…
permissive · top 15,000 on PyPI
zhipuaiOfficial Python SDK for ZhipuAI's large model…
unclear · top 15,000 on PyPI