Skip to main content

Python rewrite of the Manuheart health checker

Project description

Manuheart Python

Quick start

Install for local development:

python -m venv .venv
.venv/bin/python -m pip install -e '.[dev,yaml]'

Validate the example config:

.venv/bin/python -m manuheart validate-config --config examples/localhost/manuheart.json

Run one check cycle:

.venv/bin/python -m manuheart check --config examples/localhost/manuheart.json

Run the public deployment smoke config:

.venv/bin/python -m manuheart check --config examples/deployment-test/public-smoke.json

Run daemon mode:

.venv/bin/python -m manuheart daemon --config examples/localhost/manuheart.json

Use the library API:

from manuheart.api import CheckerMap, load_config, run_check, write_reports

config = load_config("examples/localhost/manuheart.json")
result = run_check(config)
write_reports(result)

Typed extension points such as CheckerMap, ClockSource, SleepFunction, and DaemonEventCallback are exported from manuheart.api for callers that inject custom checkers, clocks, daemon sleepers, or daemon event hooks.

Library callers can also pass previous_state= to run_check() for in-memory state continuity, or load_previous=False when they want a single cycle that deliberately avoids reading previous report files.

Run the local verification gate:

.venv/bin/python -m ruff check src tests scripts
.venv/bin/python -m mypy src/manuheart
.venv/bin/python -m pytest -q
.venv/bin/python scripts/check_localhost_compatibility.py
.venv/bin/python scripts/check_dependency_security.py
.venv/bin/python scripts/check_clean_install.py

Docs

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

manuheart-0.1.2.tar.gz (66.2 kB view details)

Uploaded Source

Built Distribution

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

manuheart-0.1.2-py3-none-any.whl (18.0 kB view details)

Uploaded Python 3

File details

Details for the file manuheart-0.1.2.tar.gz.

File metadata

  • Download URL: manuheart-0.1.2.tar.gz
  • Upload date:
  • Size: 66.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for manuheart-0.1.2.tar.gz
Algorithm Hash digest
SHA256 f158b0846579674389be113a0c4b014b4942e639ee58010ba58ac3a324733680
MD5 fcc18ab7dfe98e4821e2409b49247e17
BLAKE2b-256 1f72b73549142c4537bb509bc2dbb2bb518553c1838f7cd009d3ec9f0d61a082

See more details on using hashes here.

Provenance

The following attestation bundles were made for manuheart-0.1.2.tar.gz:

Publisher: publish.yml on RusDavies/manuheart-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file manuheart-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: manuheart-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 18.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for manuheart-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 f96e5e42c6523bd03fedafb9de1b66938d1aaf28c8c4500ea15f566891b9efa4
MD5 f8db959c94de91b02e5f5e6c118e09d3
BLAKE2b-256 e18502112c3643388e2ad6653651752b8be244c4731c2da5ec04484eed728fd0

See more details on using hashes here.

Provenance

The following attestation bundles were made for manuheart-0.1.2-py3-none-any.whl:

Publisher: publish.yml on RusDavies/manuheart-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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