Skip to main content

Linux system information tool — CPU, memory, disk, network, and process monitoring for sysadmins

Project description

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.

PyPI version License: MIT

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

License

MIT License — see LICENSE for details.


Made with ❤️ by Dargslan — Your source for Linux & DevOps knowledge.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dargslan_sysinfo-1.0.0.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dargslan_sysinfo-1.0.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file dargslan_sysinfo-1.0.0.tar.gz.

File metadata

  • Download URL: dargslan_sysinfo-1.0.0.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.14

File hashes

Hashes for dargslan_sysinfo-1.0.0.tar.gz
Algorithm Hash digest
SHA256 e7572514d506d68d6d0d1d81b6c8759257a42c5349dd92c35ff140e3d2d0ee10
MD5 b4492866a672219e185d4812220b7410
BLAKE2b-256 d88310e73b933d97ef83a1eb771906da92bb54059826c2ae6a0681a8e176374a

See more details on using hashes here.

File details

Details for the file dargslan_sysinfo-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for dargslan_sysinfo-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ea3f4fd9277ba76dca9098b8b1723f1c161663b5b27d025a9b9dc03869ea426
MD5 a28269daeeb20c3efd44e000534233dd
BLAKE2b-256 a0dc8c022ebfa3ca325775a35c9e0ba7e0610949779071f8f61222787de917ab

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page