Getting Started
Getting Started
pipewire-gobject exposes the Pwg-0.1 introspection namespace. The namespace
version belongs to this wrapper API; it does not track PipeWire release numbers.
Python applications load the namespace through PyGObject:
import gi
gi.require_version("Pwg", "0.1")
from gi.repository import Pwg
Pwg.init()
Most applications start with a PwgCore and one or more wrapper objects
that use that core connection:
core = Pwg.Core.new()
core.connect()
registry = Pwg.Registry.new(core)
registry.start()
The API is experimental while the project is in 0.x. Prefer using small
feature probes and keep application code tolerant of API changes until a future
stable release policy exists.
Capture Streams
Use PwgStream for app-owned audio capture:
stream = Pwg.Stream.new_audio_capture(None, True)
stream.start()
Installed Files
A normal installation provides:
libpwg-0.1.so, the C shared libraryPwg-0.1.gir, the XML introspection dataPwg-0.1.typelib, the binary runtime typelib used by bindings- public headers under
pwg-0.1/pwg
Bindings such as PyGObject and GJS load the installed typelib at runtime. Build-time tools can inspect the GIR file.