Skip to main content

A simple python package to gather host information from Windows, Mac and Linux. Returns host data as dicts to be used internally or sent to front-end dashboard applications as JSON.

Project description

Host Info

Coverage

Overview

A simple python package to gather host information from Windows, Mac and Linux. Returns host data as dicts to be used internally or sent to front-end dashboard applications as JSON.

Installation

Install Host Info:

python3 -m pip install host-inspector

Development

To get a list of all commands with descriptions simply run make.

make env
make pip_install_editable

Testing

make pytest
make coverage
make open_coverage

Issues

If you experience any issues, please create an issue on Github.

Example Usage

from host_inspector import get_device_info
from host_inspector import get_health_info

print(get_device_info())
print(get_health_info())

# You can also call individual methods:
from host_inspector import get_cpu_info
from host_inspector import get_datetime_info
from host_inspector import get_disk_info
from host_inspector import get_gpu_info
from host_inspector import get_mem_info
from host_inspector import get_network_info
from host_inspector import get_os_info
from host_inspector import get_platform_info
from host_inspector import get_uptime_info

History

All notable changes to this project will be documented in this file. This project adheres to Semantic Versioning.

0.1.0 (2025-08-06)

  • First release

0.1.1 (2025-09-04)

  • ADDED: Support for getting Windows Firewall status and rules

0.2.0 (2025-09-09)

  • CHANGED: get_device_info now returns a displays key which is a list of connected displays
  • CHANGED: get_gpu_info now returns a list of dicts (one for each GPU)
  • ADDED: get_display_info returns a list of dicts (one for each display)
  • CHANGED: For backawards compatability, when calling get_device_info, the gpu key will be an object if only one GPU detected.

0.2.1 (2025-09-23)

  • ADDED: Support for getting Linux Firewall status and rules using ufw.

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

host_inspector-0.2.1.tar.gz (24.0 kB view details)

Uploaded Source

Built Distribution

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

host_inspector-0.2.1-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file host_inspector-0.2.1.tar.gz.

File metadata

  • Download URL: host_inspector-0.2.1.tar.gz
  • Upload date:
  • Size: 24.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for host_inspector-0.2.1.tar.gz
Algorithm Hash digest
SHA256 0ed4a3598fc5f981132d2dd23477031ce1816a56acd78fe3abd8474bcf22df57
MD5 bec48e94ec9aa038c360fd74bc8e9563
BLAKE2b-256 142a6c7b1028366a6ba4500f195093fe7bc6bc68cea283ae8c9c248bb447478d

See more details on using hashes here.

File details

Details for the file host_inspector-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: host_inspector-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 30.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.1

File hashes

Hashes for host_inspector-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 fc4be9808de04eeceb5447612256f1baddd7ec1b58fd7ca25eabea1553b523a2
MD5 0b57fb2b9bfcd3852daef30ba3a9ac7f
BLAKE2b-256 ccdab18ce2d3b7bc8f2c7a6203468dab4e457eadbc5815846772a259f41d58ef

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