--- id: pygobject version: "3.56.3" license: GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted… (full text in the JSON record) license_treatment: copyleft maintenance: active --- # PyGObject — Python bindings for GObject Introspection License: copyleft · Maintenance: active · Downloads: 630.2K/mo ## What it is and what it does PyGObject is a bridge between Python and the GObject type system, which underlies most GNOME libraries and many other C-based projects. It uses GObject Introspection to automatically generate Python bindings for libraries written in C, allowing developers to call GObject-based APIs directly from Python code. The package supports Python 3.10+ and PyPy3, and works across Linux, Windows, and macOS. Typically used to build desktop applications with GTK, multimedia applications with GStreamer, or web applications with WebKitGTK. Because it wraps compiled C libraries, installation requires a working C compiler and the development headers for the underlying libraries you want to use. The bindings are generated dynamically at runtime via introspection metadata, so you gain access to new library versions without waiting for manual binding updates. Use it for: - Build GTK-based desktop applications with native look and feel on Linux, Windows, and macOS. - Create multimedia applications using GStreamer for audio and video playback. - Develop web-based applications using WebKitGTK as an embedded browser engine. - Access system services and file I/O through GLib and GIO from Python. - Integrate Python scripts with GNOME desktop environment components. ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. PyGObject provides Python bindings for GObject-based libraries such as GTK, GStreamer, WebKitGTK, GLib, and GIO, enabling Python developers to build graphical and multimedia applications. Yes, if you need to build desktop or multimedia applications using GObject-based libraries. The high install friction (requires C compiler and system headers) and copyleft license are the main trade-offs. The package is actively maintained, has no known vulnerabilities, and is the standard way to access GTK and GStreamer from Python. Not suitable if you cannot meet the compilation requirements or need a permissive license for proprietary redistribution. ## Install pip install pygobject uv add pygobject poetry add pygobject ## Installing PyGObject Before you install: Installation requires a C compiler and system development headers; the package is distributed only as source. Maintenance is active with a recent release within the last 98 days. License in practice: Licensed under LGPLv2.1+, a copyleft license permitting use in both free and proprietary software provided you distribute source code and allow relinking. Derivative works must be licensed under the same terms. Quickstart: pip install PyGObject Then import and use bindings for GObject-based libraries via introspection metadata at runtime. Requires a C compiler, system development headers, and underlying GObject libraries (GTK, GLib, etc.) installed on the host system. Verify before relying: - Whether pre-built wheels are available for common platforms to avoid compilation. - Performance characteristics when wrapping large GObject hierarchies or frequent callback invocations. - Compatibility details with specific GTK versions and other GObject library versions. - Specific usage patterns and code examples for common GObject-based libraries. ## Package facts - License: GNU LESSER GENERAL PUBLIC LICENSE Version 2.1, February 1999 Copyright (C) 1991, 1999 Free Software Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA Everyone is permitted… (full text in the JSON record) (copyleft) - Python support: supports_current - Install friction: high - Maintenance: active - Downloads: 630.2K/month (top 15,000 on PyPI) - Known vulnerabilities: none known ## Tags gtk python bindings, gstreamer python interface, gobject introspection bindings, python gui development, gnome library python wrapper, webkit python bindings, glib python bindings, gtk-bindings, gobject-introspection, desktop-gui [View on SkillFed](https://skillfed.io/packages/pygobject) · [View on PyPI](https://pypi.org/project/pygobject/)