Metadata-Version: 2.4
Name: rtk-py
Version: 0.30.0.1
Summary: Python wrapper around invoking rtk (https://github.com/rtk-ai/rtk)
License-Expression: MIT
Project-URL: Homepage, https://github.com/markjm/rtk-py
Project-URL: Upstream, https://github.com/rtk-ai/rtk
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# rtk-py

Python wrapper around [rtk](https://github.com/rtk-ai/rtk) — a CLI proxy that reduces LLM token consumption by 60-90% on common dev commands.

This package downloads and installs the pre-built `rtk` binary for your platform, making it available via `pip install`.

All thanks to @pszymkowiak for the real meat, I am just a lowly wrapper man.

## Installation

```bash
pip install rtk-py
uv pip install rtk-py
```

## Usage

After installation, `rtk` is available for use:

```bash
rtk --version
rtk init --global
```

See the [rtk documentation](https://github.com/rtk-ai/rtk#readme) for full usage details.


## Packaging Inspirations

This package follows the same pattern as [shfmt-py](https://github.com/MaxWinterstein/shfmt-py) and [shellcheck-py](https://github.com/shellcheck-py/shellcheck-py). During `pip install`, it downloads the appropriate pre-built binary from the [rtk GitHub releases](https://github.com/rtk-ai/rtk/releases) and installs it into your Python environment's `bin/` (or `Scripts/`) directory.

## Version

The Python package version tracks the upstream rtk version with an additional Python release suffix: `{rtk_version}.{py_release}` (e.g., `0.28.2.1`).

## License

For the code in this repository — see [LICENSE](LICENSE) for details.

The `rtk` binary is distributed under [MIT](https://github.com/rtk-ai/rtk/blob/master/Cargo.toml).
