/pygobject

Read-only mirror of https://gitlab.gnome.org/GNOME/pygobject

Primary LanguagePythonGNU Lesser General Public License v2.1LGPL-2.1

https://gitlab.gnome.org/GNOME/pygobject/-/raw/main/docs/images/pygobject.svg?ref_type=heads


PyGObject is a Python package which provides bindings for GObject based libraries such as GTK, GStreamer, WebKitGTK, GLib, GIO and many more.

It supports Linux, Windows, and macOS and works with Python 3.9+ and PyPy3. PyGObject, including this documentation, is licensed under the LGPLv2.1+.

Homepage

https://pygobject.gnome.org

Installation

The latest version from PyGObject can be installed from PyPI:

pip install PyGObject

PyGObject is only distributed as source distribution, so you need a C compiler installed on your host.

Please have a look at our Getting Started documentation for OS specific installation instructions.

Development

Our website contains instructions on how to set up a development environment.

Default branch renamed to main

The default development branch of PyGObject has been renamed to main. To update your local checkout, use:

git checkout master
git branch -m master main
git fetch
git branch --unset-upstream
git branch -u origin/main
git symbolic-ref refs/remotes/origin/HEAD refs/remotes/origin/main