An open API service indexing awesome lists of open source software.

https://github.com/logan-connolly/toheute

Utility for copying in local changes to checkmk sites.
https://github.com/logan-connolly/toheute

checkmk git python

Last synced: about 2 months ago
JSON representation

Utility for copying in local changes to checkmk sites.

Awesome Lists containing this project

README

          

# toheute

> sync local changes with a Checkmk site.

## setup

`toheute.py` is a self-contained python script that requires
[uv](https://github.com/astral-sh/uv) to run.

The script can be run as an executable, so you only need to make sure that it
can be found on your path:

```console
ln -sf $PWD/toheute.py $HOME/.local/bin/toheute.py
```

Once it's there, navigate to the checkmk repository and run:

```console
toheute.py
```

### options

Run `toheute.py --help` to see what options are available.

## development

To create a dedicated virtual environment with required dependencies, run:

```console
uv venv --python 3.12
uv pip install click gitpython rich
source .venv/bin/activate
```

## troubleshooting

If you are having some issues with a conflicting uv environment, it is probably
best to put this into a dedicated script. Here is how a script could look like
on your `PATH`:

```shell
#!/bin/bash

# Specify the explicit path in the event that the uv used in the checkmk project
# differs from the uv version that you want to run.
~/.cargo/bin/uv run \
--quiet \
--isolated \
--python 3.13 \
--with 'click>=8.2.0' \
--with 'gitpython>=3.1.44' \
--with 'rich>=13.9.4' \
~/git/ToHeute/toheute.py $@
```

## disclaimer

This is not an all inclusive tool for checkmk development, but instead a simple
one that meets most use cases.

## acknowledgments

The original [implementation](https://github.com/gavinmcguigan/ToHeute) was
created by [@gavinmcguigan](https://github.com/gavinmcguigan) - all props
should be directed his way.