Debgraph, a program like debtree to view all the Debian packages on your system, in a single graph.
Supports GEXF, DOT (Graphviz), and JSON-Lines output.
In development. Please note that API may change across 0.x versions.
License
See COPYING
Installation
pip install debgraph
Usage
DOT Example
debgraph
head debian.dot
digraph Debian {
"adduser" [label="adduser"];
"adwaita-icon-theme" [label="adwaita-icon-theme"];
"alsa-topology-conf" [label="alsa-topology-conf"];
"alsa-ucm-conf" [label="alsa-ucm-conf"];
"apparmor" [label="apparmor"];
"apport" [label="apport"];
"apport-core-dump-handler" [label="apport-core-dump-handler"];
"apport-symptoms" [label="apport-symptoms"];
"appstream" [label="appstream"];
...
GEXF Example
debgraph debian.gexf
head debian.gexf
<?xml version="1.0" encoding="UTF-8"?>
<gexf xmlns="http://www.gexf.net/1.3" version="1.3" xmlns:viz="http://www.gexf.net/1.3/viz" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.gexf.net/1.3 http://www.gexf.net/1.3/gexf.xsd">
<meta lastmodifieddate="2026-06-30">
<creator>debgraph</creator>
<description>A graph of apt packages on a Debian system.</description>
</meta>
<graph defaultedgetype="directed" idtype="string" type="static">
<attributes class="node">
<attribute id="0" title="binary:Synopsis" type="string"/>
...
JSON-Lines Example
debgraph debian.jsonl
head debian.jsonl
{"id": 1, "name": "adduser", "version": "3.153ubuntu1", "dependencies": ... }
{"id": 2, "name": "adwaita-icon-theme", "version": "50.0-1", "dependencies": ... }
{"id": 3, "name": "alsa-topology-conf", "version": "1.2.5.1-3build1", "dependencies": ... }
{"id": 4, "name": "alsa-ucm-conf", "version": "1.2.15.3-1ubuntu1", "dependencies": ... }
...
Development
pip install ".[tests]" .
python -m pytest .
Metadata
Release files for debgraph 0.2.0
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 |
|---|---|---|---|---|
| debgraph-0.2.0.tar.gz | 20.2 kB | Without provenance | Details for debgraph-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| debgraph-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for debgraph-0.2.0-py3-none-any.whl |
Total release size: 40.9 kB
Release files / debgraph-0.2.0.tar.gz
| Download URL | debgraph-0.2.0.tar.gz |
|---|---|
| Size | 20.2 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7338922189e86021891e8c07c0dd95c4dfb91abe138db0924d5ddc81617c6263
|
|
BLAKE2b-256 checksum How to use checksums |
c171c1ffc9bebf2dd66a5f4e1f2d2c95ebb07fe84af0ce79af6d5a2b443678dd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Release files / debgraph-0.2.0-py3-none-any.whl
| Download URL | debgraph-0.2.0-py3-none-any.whl |
|---|---|
| Size | 20.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
68619d0ac861984f6174c92c948477f0e6c2b8f16fdddc53cf3d46f471484bc4
|
|
BLAKE2b-256 checksum How to use checksums |
17bdfe584f35cdbdf1d46bd2ac4296500b918d3b08235f61d9103e9abc097749
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.4
|
Security for debgraph 0.2.0
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.