dargslan-sysinfo
Linux System Information Tool — Get comprehensive system information with a single command. CPU, memory, disk, network, uptime, and process monitoring for sysadmins and DevOps engineers.
Installation
pip install dargslan-sysinfo
Quick Start
Command Line
# Full system report
dargslan-sysinfo
# Specific sections
dargslan-sysinfo --cpu
dargslan-sysinfo --memory
dargslan-sysinfo --disk
dargslan-sysinfo --network
dargslan-sysinfo --processes
dargslan-sysinfo --all
# JSON output (for scripting)
dargslan-sysinfo --json
Python API
from dargslan_sysinfo import SystemInfo
info = SystemInfo()
# Get all system info
report = info.full_report()
# Individual sections
cpu = info.cpu_info()
mem = info.memory_info()
disk = info.disk_info()
net = info.network_info()
procs = info.top_processes(n=10)
# JSON output
import json
print(json.dumps(info.full_report(), indent=2))
Output Example
╔══════════════════════════════════════════════════════════════╗
║ SYSTEM INFORMATION ║
╚══════════════════════════════════════════════════════════════╝
🖥️ HOSTNAME: web-server-01
🐧 OS: Ubuntu 24.04.1 LTS
🔧 KERNEL: 6.8.0-45-generic
⏱️ UPTIME: 14 days, 3 hours, 22 minutes
📦 PACKAGES: 1,247 installed
💻 CPU
Model: AMD EPYC 7763 64-Core
Cores: 4 (8 threads)
Load Avg: 0.45, 0.38, 0.32
Usage: 12.3%
🧠 MEMORY
Total: 16.0 GB
Used: 6.2 GB (38.8%)
Available: 9.8 GB
Swap: 2.0 GB (0.0% used)
💾 DISK
/ 45.2 GB / 100.0 GB (45.2%)
/home 12.8 GB / 50.0 GB (25.6%)
🌐 NETWORK
eth0: 10.0.0.5
RX: 2.4 GB
TX: 1.1 GB
Features
- Zero dependencies — uses only Python standard library
- Works on any Linux distribution
- CLI and Python API
- JSON output for automation
- Color-coded terminal output
- Top process monitoring
Use Cases
- Server health checks — Quick overview of system resources
- Monitoring scripts — JSON output for integration with monitoring tools
- Inventory management — Collect system info across fleet
- Troubleshooting — Identify resource bottlenecks
More Resources
- 📚 Linux & DevOps eBooks — 210+ professional eBooks
- 📋 Free Cheat Sheets — Linux, Docker, Kubernetes quick references
- 📖 Blog & Tutorials — In-depth Linux and DevOps guides
License
MIT License — see LICENSE for details.
Made with ❤️ by Dargslan — Your source for Linux & DevOps knowledge.
Metadata
Release files for dargslan-sysinfo 1.0.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 | |
|---|---|---|---|
| dargslan_sysinfo-1.0.0.tar.gz | 7.0 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| dargslan_sysinfo-1.0.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 15.2 kB
Release files / dargslan_sysinfo-1.0.0.tar.gz
| Download URL | dargslan_sysinfo-1.0.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e7572514d506d68d6d0d1d81b6c8759257a42c5349dd92c35ff140e3d2d0ee10
|
|
BLAKE2b-256 checksum How to use checksums |
d88310e73b933d97ef83a1eb771906da92bb54059826c2ae6a0681a8e176374a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|
Release files / dargslan_sysinfo-1.0.0-py3-none-any.whl
| Download URL | dargslan_sysinfo-1.0.0-py3-none-any.whl |
|---|---|
| Size | 8.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7ea3f4fd9277ba76dca9098b8b1723f1c161663b5b27d025a9b9dc03869ea426
|
|
BLAKE2b-256 checksum How to use checksums |
a0dc8c022ebfa3ca325775a35c9e0ba7e0610949779071f8f61222787de917ab
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.11.14
|