Generates a graph of your debian packages
Project description
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 .
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
debgraph-0.2.0.tar.gz
(20.2 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
debgraph-0.2.0-py3-none-any.whl
(20.7 kB
view details)
File details
Details for the file debgraph-0.2.0.tar.gz.
File metadata
- Download URL: debgraph-0.2.0.tar.gz
- Upload date:
- Size: 20.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7338922189e86021891e8c07c0dd95c4dfb91abe138db0924d5ddc81617c6263
|
|
| MD5 |
03d2b6669b131b2e5f6526f305d3faba
|
|
| BLAKE2b-256 |
c171c1ffc9bebf2dd66a5f4e1f2d2c95ebb07fe84af0ce79af6d5a2b443678dd
|
File details
Details for the file debgraph-0.2.0-py3-none-any.whl.
File metadata
- Download URL: debgraph-0.2.0-py3-none-any.whl
- Upload date:
- Size: 20.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
68619d0ac861984f6174c92c948477f0e6c2b8f16fdddc53cf3d46f471484bc4
|
|
| MD5 |
c2f2eab8e2a773eebbc975ff8188b066
|
|
| BLAKE2b-256 |
17bdfe584f35cdbdf1d46bd2ac4296500b918d3b08235f61d9103e9abc097749
|