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.
- Host: GitHub
- URL: https://github.com/logan-connolly/toheute
- Owner: logan-connolly
- License: gpl-3.0
- Created: 2025-03-31T10:59:13.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-27T15:46:02.000Z (about 1 year ago)
- Last Synced: 2025-09-14T18:45:07.802Z (10 months ago)
- Topics: checkmk, git, python
- Language: Python
- Homepage:
- Size: 70.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.