Skip to main content
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)

Source distribution for debgraph 0.2.0
File Size Uploaded
debgraph-0.2.0.tar.gz 20.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for debgraph 0.2.0
File Interpreter ABI Platform
debgraph-0.2.0-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page