Skip to main content

mixtape: awesome mix vol. 1 🎵📼

Pypi version Pypi license Python versions Build Status

|[●▪▪●]| mixtape is a Python GStreamer application framework.

This project is in pre-alpha and the API is most likely to change

Documentation: shashi.to/mixtape · Changelog

GStreamer is a pipeline based framework for building complex multimedia processing systems. It is written in C, based on GObject, and offers several bindings in other languages, including python. If you are unfamiliar with GStreamer, you should start with the GStreamer tutorials.

Project goal

Python is a great language for prototyping and integration tests. The goal of the project is to have something in between gst-launch and writing a full python application for testing and prototyping.

Features:

  • An asyncio Player to subclass, driven from the pipeline's bus.
  • A declarative model of a player's commands and properties, and of its elements'.
  • Auto-generated cmdline (mixtape run, mixtape inspect) and http (a control page and a REST and WebSocket API) interfaces, started from a pipeline description.
  • Pluggable features: leaks, tracers and perf are built in, and gst:NAME makes any GStreamer tracer one.
  • Pipeline metrics from GStreamer's own tracers, live, in a report, or for every test of a pytest suite, with budgets and baselines.

Install

mixtape needs Python 3.12 or newer, GStreamer and PyGObject (gi). The last two come from your system, not from PyPI:

$ brew install gstreamer    # macOS
$ sudo apt install python3-gi python3-gst-1.0 python3-venv gstreamer1.0-tools \
    gstreamer1.0-plugins-base gstreamer1.0-plugins-good    # Debian/Ubuntu

Make a venv from a Python that has the bindings: python3 -c 'import gi' must succeed (Homebrew's is /opt/homebrew/bin/python3, Ubuntu's is /usr/bin/python3). --system-site-packages lets the venv see them, and the http extra adds the control page:

$ python3 -m venv --system-site-packages .venv && . .venv/bin/activate
$ pip install 'mixtape[http]>=0.8'

To run the examples of the documentation, clone the repository; its commands run from that folder:

$ git clone https://github.com/ashwoods/mixtape
$ cd mixtape

Quick start

Play a pipeline, and control it from a browser with live metrics:

$ mixtape run "videotestsrc num-buffers=60 ! fakesink" && echo done
done
$ mixtape run --http 8047 --feature perf "videotestsrc is-live=true ! queue name=q ! autovideosink"
Serving on http://127.0.0.1:8047

Open that address. The documentation covers the command line, writing an application with Player, the HTTP API, measuring performance, a WebRTC client and pipelines that talk to each other. Every command and snippet in it runs in the test suite, except the installs and the commands that need a camera, a window or a server of yours, which the page says.

Development

CONTRIBUTING.md has what to install and how the checks work. In short, with uv and GStreamer installed:

$ scripts/check

....___.___.___.___.___.__....
|:                          :|
|:    Awesome mix vol 1     :|
|:     ,-.   _____   ,-.    :|
|:    ( `)) [_____] ( `))   :|
|:     `-`   ' ' '   `-`    :|
|:     ,______________.     :|
|...../::::o::::::o::::\.....|
|..../:::O::::::::::O:::\....|
|---/----.----.----.-----`---|

We are Groot.

Metadata

Release files for mixtape 0.8.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 mixtape 0.8.0
File Size Uploaded Provenance Actions
mixtape-0.8.0.tar.gz 522.3 kB With provenance Details for mixtape-0.8.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mixtape 0.8.0
File Interpreter ABI Platform Actions
mixtape-0.8.0-py3-none-any.whl Python 3 none any Details for mixtape-0.8.0-py3-none-any.whl

Total release size: 682.0 kB

Release files / mixtape-0.8.0.tar.gz

Download URL mixtape-0.8.0.tar.gz
Size 522.3 kB
Tags Source
SHA-256 checksum
How to use checksums
9ca9dae48b32a806f343892b2c9a151adb42468975b425925b7f9a0af95024e4
BLAKE2b-256 checksum
How to use checksums
89ff3f7150253a21808a5a086bafdd9e880530597574acb0eb9d318463061eab
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 17, 2026.

Transparency log

Release files / mixtape-0.8.0-py3-none-any.whl

Download URL mixtape-0.8.0-py3-none-any.whl
Size 159.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2d2e30d5fba5568b835fbde78123ebd61ae5da5746c6ccbcf3d4a9e4f0ae42a1
BLAKE2b-256 checksum
How to use checksums
b5fd74a048d0f2b5aa1e25004eebd162c51df28ceadb1e40d3cde11b69c82b24
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 17, 2026.

Transparency log

Security for mixtape 0.8.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mixtape-0.8.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 Nov 17, 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