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.

0.2.2 (2025-09-25)

  • CHANGED: Standardize date/time formatting for device uptime and local_datetime

0.2.3 (2025-10-07)

  • CHANGED: Ensure tests pass on Ubuntu (not all data available - yet)

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.3.tar.gz (25.1 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.3-py3-none-any.whl (31.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for host_inspector-0.2.3.tar.gz
Algorithm Hash digest
SHA256 d4414060b26c3f0d401f96bc09f8bf4b3931a43d32d765763ca2d49c1e3da7d0
MD5 744988b51f3f652598ad0782c9e1d2c7
BLAKE2b-256 da38c4a815cefcec89cd081adb89a6bc8897cc554920177a650ed835af600fae

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for host_inspector-0.2.3-py3-none-any.whl
Algorithm Hash digest
SHA256 02eff3768baaac083ca8699ced4a623df62e5f94115600a2d7da8603687f9187
MD5 45adc906637c03f8ee61fae09426b27a
BLAKE2b-256 7d494987876b288136c09f507e76344be8056a86ad8ba054eb342ec416ff88ef

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