GI-DocGen: Documentation tool for GObject-based libraries
GI-DocGen is a document generator for GObject-based libraries. GObject is the base type system of the GNOME project. GI-Docgen reuses the introspection data generated by GObject-based libraries to generate the API reference of these libraries, as well as other ancillary documentation.
Installation
Running GI-DocGen uninstalled
You can run GI-DocGen from its repository, by calling:
./gi-docgen.py
GI-DocGen will automatically detect this case.
Installing GI-DocGen via pip
To install GI-DocGen, you will need to have the following pieces of software available on your computer:
- Python 3.6, or later
- pip
Run the following command:
pip3 install --user gi-docgen
After running the command above, make sure to have the ~/.local/bin
directory listed in your $PATH environment variable.
To update GI-DocGen, run the following command:
pip3 install --user --upgrade gi-docgen
Usage
First, read the GI-DocGen tutorial.
The documentation for GI-DocGen is available online.
The examples directory in the repository contains simple project files for
various GNOME libraries.
Disclaimer
GI-DocGen is not a general purpose documentation tool for C libraries.
While GI-DocGen can be used to generate API references for most GObject/C libraries that expose introspection data, its main goal is to generate the reference for GTK and its immediate dependencies. Any and all attempts at making this tool more generic, or to cover more use cases, will be weighted heavily against its primary goal.
GI-DocGen is still in development. The recommended use of GI-DocGen is to add it as a sub-project to your Meson build system, and vendor it when releasing dist archives.
You should not depend on a system-wide installation until GI-DocGen is declared stable.
If you need a general purpose documentation tool, I strongly recommend:
Copyright and Licensing terms
Copyright 2021 GNOME Foundation
GI-DocGen is released under the terms of the Apache License, version 2.0, or under the terms of the GNU General Public License, either version 3.0 or, at your option, any later version.
Metadata
Release files for gi-docgen 2025.3
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 | Actions |
|---|---|---|---|---|
| gi_docgen-2025.3.tar.gz | 2.5 MB | Without provenance | Details for gi_docgen-2025.3.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gi_docgen-2025.3-py2.py3-none-any.whl | Python 2, Python 3 | none | any | Details for gi_docgen-2025.3-py2.py3-none-any.whl |
Total release size: 3.8 MB
Release files / gi_docgen-2025.3.tar.gz
| Download URL | gi_docgen-2025.3.tar.gz |
|---|---|
| Size | 2.5 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2fdb4f0f6b61184ab862fcfb41dafe1a795636de9fd8d21a8ca4feea3b6bf858
|
|
BLAKE2b-256 checksum How to use checksums |
55e1c32a1ee817fc7d11462b4ed8722b049c70dd61ce0b236f74e7cf4262412e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Release files / gi_docgen-2025.3-py2.py3-none-any.whl
| Download URL | gi_docgen-2025.3-py2.py3-none-any.whl |
|---|---|
| Size | 1.3 MB |
| Tags | Python 2 Python 3 |
|
SHA-256 checksum How to use checksums |
c26a276ff0979ef0166a9f8a23a7c9a5527f49df25bce14850d6c76fec604ce2
|
|
BLAKE2b-256 checksum How to use checksums |
46cdd5e85c225e9cdf48bbdc0aab13e3c866f03edb802f940d382c129ec65819
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.0.1 CPython/3.13.0
|
Security for gi-docgen 2025.3
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.