Metadata-Version: 2.4
Name: rhiza-tools
Version: 0.2.3
Summary: Add your description here
License-File: LICENSE
Requires-Python: >=3.11
Requires-Dist: bump-my-version==1.2.6
Requires-Dist: loguru>=0.7.3
Requires-Dist: pandas<3.1,>=3
Requires-Dist: plotly<7.0,>=6.5.0
Requires-Dist: questionary>=2.1.1
Requires-Dist: semver>=3.0.4
Requires-Dist: tomlkit>=0.13.3
Requires-Dist: typer>=0.9.0
Description-Content-Type: text/markdown

<div align="center">

# <img src="https://raw.githubusercontent.com/Jebel-Quant/rhiza/main/.rhiza/assets/rhiza-logo.svg" alt="Rhiza Logo" width="30" style="vertical-align: middle;"> rhiza-tools
![Synced with Rhiza](https://img.shields.io/badge/synced%20with-rhiza-2FA4A9?color=2FA4A9)

[![PyPI version](https://img.shields.io/pypi/v/rhiza-tools.svg)](https://pypi.org/project/rhiza-tools/)
[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)
[![Coverage](https://img.shields.io/endpoint?url=https://jebel-quant.github.io/rhiza-tools/tests/coverage-badge.json)](https://jebel-quant.github.io/rhiza-tools/tests/html-coverage/index.html)
[![Downloads](https://static.pepy.tech/personalized-badge/rhiza-tools?period=month&units=international_system&left_color=black&right_color=orange&left_text=PyPI%20downloads%20per%20month)](https://pepy.tech/project/rhiza-tools)
[![CodeFactor](https://www.codefactor.io/repository/github/jebel-quant/rhiza-tools/badge)](https://www.codefactor.io/repository/github/jebel-quant/rhiza-tools)

Extra utilities and tools serving the mothership [rhiza](https://github.com/Jebel-Quant/rhiza).

**📖 New to Rhiza? Check out the [Getting Started Guide](https://github.com/Jebel-Quant/rhiza-cli/blob/ad816ff3e91a8d6f07fcba979bc64576de3d0116/GETTING_STARTED.md) for a beginner-friendly introduction!**
</div>

This package provides additional commands for the Rhiza ecosystem, such as version bumping, release management, and documentation helpers. It can be used as a plugin for `rhiza-cli` or as a standalone tool.

## Installation

### As a Rhiza Plugin (Recommended)

You can install `rhiza-tools` alongside `rhiza-cli` using `uvx` or `pip`. This automatically registers the tools as subcommands under `rhiza tools`.

#### Using uvx (run without installation)

```bash
uvx "rhiza[tools]" tools --help
```

#### Using pip

```bash
pip install "rhiza[tools]"
```

### Standalone Usage

You can also use `rhiza-tools` independently if you don't need the full `rhiza` CLI.

#### Using uvx

```bash
uvx rhiza-tools --help
```

#### Using pip

```bash
pip install rhiza-tools
```

## Commands

### `bump`

Bump the version of the project in `pyproject.toml`.

**Usage:**

```bash
# As plugin
rhiza tools bump [VERSION]

# Standalone
rhiza-tools bump [VERSION]
```

**Arguments:**

*   `VERSION` - The version to bump to (e.g., `1.0.1`, `major`, `minor`, `patch`).

**Options:**

*   `--dry-run` - Print what would happen without actually changing files.

### `release`

Create a git tag and push to remote to trigger the release workflow.

**Usage:**

```bash
# As plugin
rhiza tools release

# Standalone
rhiza-tools release
```

**Options:**

*   `--dry-run` - Print what would happen without actually performing git operations.

### `update-readme-help`

Update `README.md` with the current output from `make help`.

**Usage:**

```bash
# As plugin
rhiza tools update-readme-help

# Standalone
rhiza-tools update-readme-help
```

**Options:**

*   `--dry-run` - Print what would happen without actually changing files.

## Development

### Prerequisites

*   Python 3.11 or higher
*   `uv` package manager (recommended) or `pip`
*   Git

### Setup Development Environment

```bash
# Clone the repository
git clone https://github.com/Jebel-Quant/rhiza-tools.git
cd rhiza-tools

# Install dependencies
make install

# Run tests
make test
```

## License

This project is licensed under the MIT License.
