Skip to main content

brinkhaustools

Multi-language infrastructure toolkit for Brinkhaus industrial applications.

What is brinkhaustools?

brinkhaustools provides reusable components for industrial monitoring and control applications in Python, Rust, JavaScript, and C++. All variants share the same version number and are wire-compatible with BrinkhausFleetManager.

Core components (available in all variants):

  • App -- central wiring object that connects all components
  • ShutdownHandler -- graceful shutdown with signal handling
  • Settings -- thread-safe JSON settings with hierarchical dot-notation access
  • SelfDiagnosisEngine -- error/warning tracking with numeric codes
  • StatusEngine -- periodic status collection from pluggable sources
  • HeartbeatEngine -- watchdog for detecting hung threads
  • VersionInformation -- CI-generated version metadata
  • Fleet management -- HTTPS-based reporting to BrinkhausFleetManager

Additionally, the Python variant includes a RestServer (Flask + Waitress).

Installation

Python

pip install brinkhaustools
# With REST server support:
pip install brinkhaustools[rest]

Requirements: Python >= 3.10. The core has no external dependencies.

Rust

The crate is deliberately distributed as a git dependency from this public repository — publishing to crates.io is not planned for the medium term.

# Cargo.toml
[dependencies]
brinkhaustools = { git = "https://gitlab.com/brinkhaus/brinkhaustools.git", tag = "0.17.0" }
# With fleet management client:
brinkhaustools = { git = "https://gitlab.com/brinkhaus/brinkhaustools.git", tag = "0.17.0", features = ["fleet"] }

JavaScript

Include js/src/brinkhaus-tools.js from the repository. Zero dependencies, browser-compatible.

git clone https://gitlab.com/brinkhaus/brinkhaustools.git
# Use js/src/brinkhaus-tools.js in your project

C++

# CMakeLists.txt
include(FetchContent)
FetchContent_Declare(
    brinkhaustools
    GIT_REPOSITORY https://gitlab.com/brinkhaus/brinkhaustools.git
    GIT_TAG        0.17.0
    SOURCE_SUBDIR  cpp
)
FetchContent_MakeAvailable(brinkhaustools)
target_link_libraries(myapp PRIVATE brinkhaustools::brinkhaustools)

Quick Examples

Python

from brinkhaustools.common import App

app = App(
    name="my-service",
    settings_path="data/settings/settings_main.json",
    fleet_config_path="fleetManagementData/config.json",
)
app.start()
app.wait()

Rust

use brinkhaustools::App;

let app = App::builder("my-service")
    .settings("data/settings/settings_main.json")
    .build();
app.start();
app.wait();

Documentation

Full API reference, guides, and configuration details:

brinkhaus.gitlab.io/brinkhaustools

License

MIT

Metadata

Release files for brinkhaustools 0.20.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for brinkhaustools 0.20.3
File Size Uploaded Provenance Actions
brinkhaustools-0.20.3.tar.gz 53.2 kB Without provenance Details for brinkhaustools-0.20.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for brinkhaustools 0.20.3
File Interpreter ABI Platform Actions
brinkhaustools-0.20.3-py3-none-any.whl Python 3 none any Details for brinkhaustools-0.20.3-py3-none-any.whl

Total release size: 93.1 kB

Release files / brinkhaustools-0.20.3.tar.gz

Download URL brinkhaustools-0.20.3.tar.gz
Size 53.2 kB
Tags Source
SHA-256 checksum
How to use checksums
eba7c7503d374e30f7233619862fe26442f6d0509fdf845a35de5d1a034b3446
BLAKE2b-256 checksum
How to use checksums
d35f0836490cdd21a83b4e8fc38ba0d1dc24e0fa8cc35122278e099968e1a74d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Release files / brinkhaustools-0.20.3-py3-none-any.whl

Download URL brinkhaustools-0.20.3-py3-none-any.whl
Size 39.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b3eec142a9f67584d85ecb9a268430f091f44029dd1db327c4d70d3fcadf4e82
BLAKE2b-256 checksum
How to use checksums
8aa6595924c3d5387d35e8b4a078a65d56f977cbc7820d722115c44941ad4147
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.12.13

Security for brinkhaustools 0.20.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.20.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page