Skip to main content

Common tooling for Brinkhaus industrial applications

Project description

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

# Cargo.toml
[dependencies]
brinkhaustools = "0.4"
# With fleet management client:
brinkhaustools = { version = "0.4", 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.4.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

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

brinkhaustools-0.6.0.tar.gz (39.7 kB view details)

Uploaded Source

Built Distribution

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

brinkhaustools-0.6.0-py3-none-any.whl (32.9 kB view details)

Uploaded Python 3

File details

Details for the file brinkhaustools-0.6.0.tar.gz.

File metadata

  • Download URL: brinkhaustools-0.6.0.tar.gz
  • Upload date:
  • Size: 39.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for brinkhaustools-0.6.0.tar.gz
Algorithm Hash digest
SHA256 70929ce1bf6772bd18b4b83c9ee1bd3cfa390df77d5bf2c3ca507328f05397af
MD5 7c74b3bf556afa5ef34badae2557401a
BLAKE2b-256 2ff24e17ec02fdc556f3866a0c8ade731707bc3d04c1844e2fd8d4b327d25098

See more details on using hashes here.

File details

Details for the file brinkhaustools-0.6.0-py3-none-any.whl.

File metadata

  • Download URL: brinkhaustools-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 32.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for brinkhaustools-0.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bd2bcb2594658ca27d827b57c2afc938b85e3f37ea3202e89cdf24a3791a0c4b
MD5 f664881f8df5fb8acc0563ac1caad2ed
BLAKE2b-256 cdcdb1ee2eca5a6713c3737abcb4713407656a5642c4ce8060abe5aee7206f8f

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