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.
It bundles software aspects which Brinkhaus GmbH needed again and again for setting up reliable, configurable applications:
- App -- central wiring object that connects all components
- ShutdownHandler -- graceful shutdown with signal handling
- Settings -- update-safe, thread-safe JSON settings with hierarchical key 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
Variants¶
| Variant | Registry | Install |
|---|---|---|
| Python | PyPI | pip install brinkhaustools |
| Rust | crates.io | cargo add brinkhaustools |
| JavaScript | Git dependency | Include from repo |
| C++ | CMake FetchContent | See C++ docs |
Component Availability¶
| Component | Python | Rust | JS | C++ |
|---|---|---|---|---|
| App | Yes | Yes | Yes | Planned |
| ShutdownHandler | Yes | Yes | -- | Planned |
| Settings | Yes | Yes | Yes | TBD |
| SelfDiagnosisEngine | Yes | Yes | Yes | Planned |
| StatusEngine + StatusSource | Yes | Yes | Yes | Planned |
| HeartbeatEngine | Yes | Yes | -- | TBD |
| LoggingHelper | Yes | Yes | Yes | No |
| VersionInformation | Yes | Yes | Yes | Planned |
| FleetMonitorClient | Yes | Yes | -- | Planned |
| StatusMonitor | Yes | Yes | -- | Planned |
| RestServer | Yes | Planned | N/A | N/A |
Fleet Protocol¶
The fleet management protocol specification is maintained in the FleetManager product documentation. Edge devices running brinkhaustools report heartbeats, diagnostics, and status via HTTPS POST to the FleetManager API.
Project Status¶
Version 0.30.0-nightly
Recent versions: 0.29.0: release channel from the FleetManager's heartbeat response (channel(), set_build_channel(), Rust and Python); 0.28.0: heartbeat field hardware (model and data partition size, set_hardware(), Rust and Python); 0.27.0: licence hardware sources named one by one (container mounts single files instead of a host root); 0.26.0: a placeholder value can itself be a keyed part (DiagParam::Keyed; a classified foreign error inside a sentence), fleet diagnoses 7001/7002 keyed; 0.25.0: translatable diagnosis messages (messageParts: text keys with placeholder values next to messageForUI; Rust, Python, JS); 0.24.1: republishes 0.24.0 (its CI test failed on Rust 1.85, nothing was published); 0.24.0: offline-verifiable, hardware-bound licences (Rust feature / Python extra licence), Rust fleet command registry, heartbeat field licence; 0.23.3: republishes 0.23.2 (its CI test failed, nothing was published); 0.23.2: [Rust] ShutdownHandler::with_signal_handlers() also catches SIGTERM and SIGHUP, so docker stop shuts down gracefully; 0.23.1: RecoveredFrom is exported; 0.23.0: heartbeats can carry the software's public X25519 key, identity fields can change without a restart
License: MIT