r/madeinpython • • 16d ago

Spug: a Python/Django app for recurring SSH tasks in a web UI

I'm one of the maintainers of Spug, a self-hosted operations app for small and midsize teams. Its backend is Python/Django, the interface is React, and Paramiko handles SSH connections to Linux hosts. No Spug agent is needed on managed hosts.

The goal is to bring recurring operations into one web interface:

  • Host inventory, batch commands, an online terminal and file management
  • Application releases, deployment pipelines and scheduled tasks
  • A configuration center, monitoring and alerts

For example, select several hosts, run the same SSH command and inspect each host's output in the browser. This is an operations application rather than a Python library.

For a look at the Python code, start with the execution views and host models:
https://github.com/openspug/spug/tree/master/spug_api/apps/exec
https://github.com/openspug/spug/blob/master/spug_api/apps/host/models.py

Spug is free and open source (AGPL-3.0), with Docker installation and English/Chinese interfaces. The three screenshots show the English interface with sample data.

Source: https://github.com/openspug/spug
English guide: https://ops.spug.cc/en/docs/about-spug/
Demo: https://demo.spug.cc/ (admin / spug.cc; resets hourly). Please don't enter real credentials.

SSH private keys are stored without application-level encryption, so treat the panel and database as privileged systems.

Which Python-side workflow would you be interested in exploring: SSH execution, deployment pipelines or scheduled tasks?

Host management — grouped inventory with sample hosts.
Pipeline editor — a sample workflow.
Monitoring — example site, port, process and ping checks.
2 Upvotes

2 comments sorted by

0

u/[deleted] 15d ago

[removed] — view removed comment