--- id: mux-python version: "5.1.2" license: MIT license_treatment: permissive maintenance: aging --- # mux-python — Mux API License: permissive · Maintenance: aging · Downloads: 963.9K/mo ## 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 above — 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 pip install mux-python uv add mux-python poetry add mux-python ## Installing 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: unspecified - Install friction: low - Maintenance: aging - Downloads: 963.9K/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags mux api client, video hosting python, video streaming api, video analytics sdk, mux video python, video performance monitoring, mux data python, video-api, mux-sdk, rest-client [View on SkillFed](https://skillfed.io/packages/mux-python) · [View on PyPI](https://pypi.org/project/mux-python/)