GObject Introspection bindings written in pure Python using ctypes and cffi (optional). API compatible with PyGObject.
Development Status:
WARNING: Lots of things are not implemented/supported.
See the ‘examples’ directory for working examples. Anything else will probably not work.
Code: https://github.com/lazka/pgi
License: LGPL 2.1+
Requirements:
libgirepository 1.0
cffi 0.8+ (optional, but needed for tests)
cairocffi 0.4+ (optional, for cairo support)
Usage
from pgi.repository import Gtk, GObject
or (preferred)
import pgi pgi.install_as_gi() from gi.repository import Gtk, GObject
Search paths
Typelibs will be loaded from paths in the environment variable GI_TYPELIB_PATH and /usr/lib/girepository-1.0/.
Shared libraries from paths in LD_LIBRARY_PATH and the default system search paths (see dlopen(3)).
Documentation
- PGI docs:
- Autogenerated GI docs:
Tests
./setup.py test will run unit tests using PGI and PyGObject
./setup.py test –pgi-only to skip PyGObject tests
./setup.py test –filter=StructTest to run tests which include StructTest (regexp)
./tests/libs/ includes additional libraries that will be used for testing if present. Call make in ./tests/libs/ to build them.
./setup.py quality will run pep8 and pyflakes tests
./setup.py coverage will create a test coverage report
Metadata
Release files for pgi 0.0.11.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| pgi-0.0.11.1.tar.gz | 235.9 kB | Without provenance | Details |
Release files / pgi-0.0.11.1.tar.gz
| Download URL | pgi-0.0.11.1.tar.gz |
|---|---|
| Size | 235.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fbb989f6246aada4c78844c0e1d93f123418f21b7d5e4b436bc389634cf84fed
|
|
BLAKE2b-256 checksum How to use checksums |
7386cae2cec3e77280c30403eb93d4150fab9320244eadc1715847cc2fd8e756
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pgi 0.0.11.1
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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
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.