# pardus/pardus-software architecture

> Architecture diagram of the GitHub repository pardus/pardus-software, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-28). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/pardus/pardus-software
- Repository: https://github.com/pardus/pardus-software

## Overview

Pardus Software Center is a GTK front end for browsing and managing Debian software, with catalog details, images, package actions, and community feedback. The main workflow starts at the application entry point, opens the main window, and uses package and remote-data components to present results and perform operations. Settings and cached assets support that workflow. The README establishes the product and launch path; source excerpts and the index show several component relationships, but not every handler or service configuration, so uncertain links are omitted.

Main entry points: [`src/MainWindow.py`](https://github.com/pardus/pardus-software/blob/master/src/MainWindow.py) (Software center window), [`src/Server.py`](https://github.com/pardus/pardus-software/blob/master/src/Server.py) (Catalog API and cache), [`src/Package.py`](https://github.com/pardus/pardus-software/blob/master/src/Package.py) (APT package data), [`src/Main.py`](https://github.com/pardus/pardus-software/blob/master/src/Main.py) (Application entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_interface["Application interface"]
  node_app["Application entry<br/>[Main.py]"]
  node_window["Software center window<br/>[MainWindow.py]"]
end

subgraph group_catalog["Catalog and assets"]
  node_server["Catalog API and cache<br/>[Server.py]"]
  node_details["App details<br/>[AppDetail.py]"]
  node_images["App images<br/>[AppImage.py]"]
end

subgraph group_packages["Package management"]
  node_packages["APT package data<br/>[Package.py]"]
  node_actions["Package actions<br/>[Actions.py]"]
  node_system_actions["System actions<br/>[SysActions.py]"]
end

subgraph group_community["Reviews and feedback"]
  node_app_request["Rating requests<br/>[AppRequest.py]"]
  node_gnome_comments["GNOME reviews<br/>[GnomeComment.py]"]
  node_pardus_comments["Pardus comments<br/>[PardusComment.py]"]
  node_gnome_rating["GNOME rating service"]
end

subgraph group_support["Local support"]
  node_settings["User preferences<br/>[UserSettings.py]"]
  node_auto_update["APT update policy<br/>[AutoAptUpdate.py]"]
  node_utils["Desktop utilities<br/>[Utils.py]"]
  node_logger["Application logging<br/>[Logger.py]"]
end

node_user(("Desktop user"))
node_pardus_service{{"Pardus catalog service"}}
node_gnome_service{{"GNOME ODRS service"}}
node_apt_system[("Debian package system")]

node_user -->|"launches"| node_app
node_app -->|"opens"| node_window
node_window -->|"requests catalog"| node_server
node_window -->|"requests details"| node_details
node_window -->|"requests images"| node_images
node_window -->|"queries packages"| node_packages
node_window -->|"requests ratings"| node_app_request
node_window -->|"requests reviews"| node_gnome_comments
node_window -->|"requests comments"| node_pardus_comments
node_window -->|"uses preferences"| node_settings
node_window -->|"uses utilities"| node_utils
node_server -.->|"fetches catalog"| node_pardus_service
node_server -->|"configures review endpoints"| node_gnome_service
node_packages -->|"reads package state"| node_apt_system
node_packages -->|"marks install or removal"| node_apt_system

click node_app "https://github.com/pardus/pardus-software/blob/master/src/Main.py"
click node_window "https://github.com/pardus/pardus-software/blob/master/src/MainWindow.py"
click node_server "https://github.com/pardus/pardus-software/blob/master/src/Server.py"
click node_details "https://github.com/pardus/pardus-software/blob/master/src/AppDetail.py"
click node_images "https://github.com/pardus/pardus-software/blob/master/src/AppImage.py"
click node_packages "https://github.com/pardus/pardus-software/blob/master/src/Package.py"
click node_actions "https://github.com/pardus/pardus-software/blob/master/src/Actions.py"
click node_system_actions "https://github.com/pardus/pardus-software/blob/master/src/SysActions.py"
click node_app_request "https://github.com/pardus/pardus-software/blob/master/src/AppRequest.py"
click node_gnome_comments "https://github.com/pardus/pardus-software/blob/master/src/GnomeComment.py"
click node_pardus_comments "https://github.com/pardus/pardus-software/blob/master/src/PardusComment.py"
click node_gnome_rating "https://github.com/pardus/pardus-software/blob/master/src/GnomeRatingServer.py"
click node_settings "https://github.com/pardus/pardus-software/blob/master/src/UserSettings.py"
click node_auto_update "https://github.com/pardus/pardus-software/blob/master/src/AutoAptUpdate.py"
click node_utils "https://github.com/pardus/pardus-software/blob/master/src/Utils.py"
click node_logger "https://github.com/pardus/pardus-software/blob/master/src/Logger.py"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_app,node_window,node_user toneBlue
class node_server,node_details,node_images,node_apt_system toneAmber
class node_packages,node_actions,node_system_actions toneMint
class node_app_request,node_gnome_comments,node_pardus_comments,node_gnome_rating toneRose
class node_settings,node_auto_update,node_utils,node_logger,node_pardus_service,node_gnome_service toneIndigo
```

## Components

### Application interface

- [Application entry](https://github.com/pardus/pardus-software/blob/master/src/Main.py): `src/Main.py`
- [Software center window](https://github.com/pardus/pardus-software/blob/master/src/MainWindow.py): `src/MainWindow.py`

### Catalog and assets

- [Catalog API and cache](https://github.com/pardus/pardus-software/blob/master/src/Server.py): `src/Server.py`
- [App details](https://github.com/pardus/pardus-software/blob/master/src/AppDetail.py): `src/AppDetail.py`
- [App images](https://github.com/pardus/pardus-software/blob/master/src/AppImage.py): `src/AppImage.py`

### Package management

- [APT package data](https://github.com/pardus/pardus-software/blob/master/src/Package.py): `src/Package.py`
- [Package actions](https://github.com/pardus/pardus-software/blob/master/src/Actions.py): `src/Actions.py`
- [System actions](https://github.com/pardus/pardus-software/blob/master/src/SysActions.py): `src/SysActions.py`

### Reviews and feedback

- [Rating requests](https://github.com/pardus/pardus-software/blob/master/src/AppRequest.py): `src/AppRequest.py`
- [GNOME reviews](https://github.com/pardus/pardus-software/blob/master/src/GnomeComment.py): `src/GnomeComment.py`
- [Pardus comments](https://github.com/pardus/pardus-software/blob/master/src/PardusComment.py): `src/PardusComment.py`
- [GNOME rating service](https://github.com/pardus/pardus-software/blob/master/src/GnomeRatingServer.py): `src/GnomeRatingServer.py`

### Local support

- [User preferences](https://github.com/pardus/pardus-software/blob/master/src/UserSettings.py): `src/UserSettings.py`
- [APT update policy](https://github.com/pardus/pardus-software/blob/master/src/AutoAptUpdate.py): `src/AutoAptUpdate.py`
- [Desktop utilities](https://github.com/pardus/pardus-software/blob/master/src/Utils.py): `src/Utils.py`
- [Application logging](https://github.com/pardus/pardus-software/blob/master/src/Logger.py): `src/Logger.py`

### Other components

- **Desktop user**
- **Pardus catalog service**
- **GNOME ODRS service**
- **Debian package system**

## Connections

- Desktop user → Application entry: launches (evidence: `README.md`)
- Application entry → Software center window: opens (evidence: `src/Main.py`)
- Software center window → Catalog API and cache: requests catalog (evidence: `src/MainWindow.py`)
- Software center window → App details: requests details (evidence: `src/MainWindow.py`)
- Software center window → App images: requests images (evidence: `src/MainWindow.py`)
- Software center window → APT package data: queries packages (evidence: `src/MainWindow.py`)
- Software center window → Rating requests: requests ratings (evidence: `src/MainWindow.py`)
- Software center window → GNOME reviews: requests reviews (evidence: `src/MainWindow.py`)
- Software center window → Pardus comments: requests comments (evidence: `src/MainWindow.py`)
- Software center window → User preferences: uses preferences (evidence: `src/MainWindow.py`)
- Software center window → Desktop utilities: uses utilities (evidence: `src/MainWindow.py`)
- Catalog API and cache → Pardus catalog service: fetches catalog
- Catalog API and cache → GNOME ODRS service: configures review endpoints (evidence: `src/Server.py`)
- APT package data → Debian package system: reads package state (evidence: `src/Package.py`)
- APT package data → Debian package system: marks install or removal (evidence: `src/Package.py`)
