rhiza_tools

Rhiza Tools — Extra utilities and tools for the Rhiza ecosystem.

Rhiza Tools provides additional commands and utilities that extend the capabilities of the main Rhiza CLI. It includes tools for version management, release automation, and documentation maintenance.

Key features

  • Version Bumping: Automate version updates in pyproject.toml.
  • Release Management: Streamline the release process with git tag automation.
  • Documentation Helpers: Keep your README up-to-date with CLI help output.
  • Flexible Usage: Use as a rhiza plugin or as a standalone CLI.

Quick start

Bump the project version:

rhiza tools bump 1.0.1
# or standalone
rhiza-tools bump 1.0.1

Create a release tag:

rhiza tools release

Main modules

Documentation

For more details, see the README.md.

 1"""Rhiza Tools — Extra utilities and tools for the Rhiza ecosystem.
 2
 3Rhiza Tools provides additional commands and utilities that extend the capabilities
 4of the main Rhiza CLI. It includes tools for version management, release automation,
 5and documentation maintenance.
 6
 7## Key features
 8
 9- **Version Bumping**: Automate version updates in `pyproject.toml`.
10- **Release Management**: Streamline the release process with git tag automation.
11- **Documentation Helpers**: Keep your README up-to-date with CLI help output.
12- **Flexible Usage**: Use as a `rhiza` plugin or as a standalone CLI.
13
14## Quick start
15
16Bump the project version:
17
18```bash
19rhiza tools bump 1.0.1
20# or standalone
21rhiza-tools bump 1.0.1
22```
23
24Create a release tag:
25
26```bash
27rhiza tools release
28```
29
30## Main modules
31
32- `rhiza_tools.cli` — The main Typer application and command definitions.
33
34## Documentation
35
36For more details, see the [README.md](https://github.com/Jebel-Quant/rhiza-tools/blob/main/README.md).
37"""
38
39from importlib.metadata import PackageNotFoundError, version
40
41try:
42    __version__ = version("rhiza-tools")
43except PackageNotFoundError:
44    # Package is not installed, use a fallback or leave undefined
45    __version__ = "unknown"