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

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.2.tar.gz (24.8 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.2-py3-none-any.whl (31.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: host_inspector-0.2.2.tar.gz
  • Upload date:
  • Size: 24.8 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.2.tar.gz
Algorithm Hash digest
SHA256 ddb2c2a9b456c6b13973b9b6fa4b3827adf246b764d06800cb47883979ec68fa
MD5 51f003d81e85bd681638eeb01a6cd492
BLAKE2b-256 5bf45e18bd17a713815c7c7824a7e4331237880e649e1abdbcbbd40d9af3926b

See more details on using hashes here.

File details

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

File metadata

  • Download URL: host_inspector-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 31.0 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5d94a730b6da96b9141a49214dfdc82ea20693d7e192c0a6c335ea597ec5cd6
MD5 352ffcbe2e6c906ff9ee4f1ba0582733
BLAKE2b-256 ab8aba1153b9a7cc25287d99857ca12cd2414882836da52b54a71ef61e07269e

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