Skip to main content

cmk-werk-zeug

Project description

CWZ - CMK-Werk-Zeug

This is both a collection of tools and shared libraries created for (but not limited to) Checkmk development and a 'collector' for other tools located in different repositories.

What you get

cmk-components

A CLI for querying and validating component and code ownership details of the check_mk (mostly) repository.

Use cases:

  • Browse all components interactively (TUI, default when no subcommand is given)
  • List all known components: list
  • Show members/owners of a component: members <COMPONENT>
  • Show which paths belong to a component: paths <COMPONENT>
  • Look up who owns a given file or directory: owners <PATH>
  • Find which component a path belongs to: component <PATH>
  • List all OWNERS config files in the repo: config-files

Output modes (--mode): rich (default in a terminal), json, script (YAML, default when stdout is not a TTY — suitable for piping).

Caching (--cache-mode auto|always|never): a locally cached collection of component and ownership information stored at ~/.cache/cwz/cmk-components.json will be used in auto (default) mode if remote git commit still matches or when in always mode. In never mode, the cache will be ignored and updated with the latest data from Gerrit.

Credentials: read from ~/.netrc by default; override via --gerrit-username-var / --gerrit-api-token-var to name environment variables that hold the credentials instead.

Other options: --gerrit-url, --project-name, --branch to point at a different Gerrit instance or branch.

Install

You either clone the cwz repository (ssh://review.lan.tribe29.com:29418/cmk-werk-zeug) and make it's tools available via uv or you install the pip package:

pipx install cmk-werk-zeug

For ci_build_metrics you need PostgreSQL installed

sudo apt install postgresql postgresql-contrib postgresql-server-dev

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

cmk_werk_zeug-0.2.5.tar.gz (173.5 kB view details)

Uploaded Source

Built Distribution

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

cmk_werk_zeug-0.2.5-py3-none-any.whl (66.5 kB view details)

Uploaded Python 3

File details

Details for the file cmk_werk_zeug-0.2.5.tar.gz.

File metadata

  • Download URL: cmk_werk_zeug-0.2.5.tar.gz
  • Upload date:
  • Size: 173.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cmk_werk_zeug-0.2.5.tar.gz
Algorithm Hash digest
SHA256 f31d8dfbb6f717a3c54a8af053c88acee9baf5af78e372d357e9bc11fb806d7f
MD5 b3586c7295d6c7dde12dbb5e8a880d67
BLAKE2b-256 7b96b40504d34d1d02bd04e403bae75a6735116adff171b90f5094f076c4141f

See more details on using hashes here.

File details

Details for the file cmk_werk_zeug-0.2.5-py3-none-any.whl.

File metadata

  • Download URL: cmk_werk_zeug-0.2.5-py3-none-any.whl
  • Upload date:
  • Size: 66.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.9.27 {"installer":{"name":"uv","version":"0.9.27","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for cmk_werk_zeug-0.2.5-py3-none-any.whl
Algorithm Hash digest
SHA256 3581cf4c8a302e96a1ecdadd50781a5608449fd3822a67ae74b73fd50b02c83e
MD5 3c189dc2eef8d44c44c6c26e43dd36fb
BLAKE2b-256 a95017f127203078a2b8e72fc00f1726a3a4d26584853edd8cdcb5ed2950debf

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