Metadata-Version: 2.4
Name: squarepeg
Version: 0.4.1
Summary: Run a docker-run-style command as a Kubernetes Pod or Job, streaming its output like a local process
Requires-Python: >=3.11
Description-Content-Type: text/markdown
Requires-Dist: click>=8.1
Requires-Dist: kubernetes>=31
Requires-Dist: PyYAML>=6
Provides-Extra: dev
Requires-Dist: pytest>=8; extra == "dev"
Requires-Dist: pytest-cov>=5; extra == "dev"
Requires-Dist: ruff>=0.4; extra == "dev"

```
   _____                                             
  / ___/____ ___  ______ _________  ____  ___  ____ _
  \__ \/ __ `/ / / / __ `/ ___/ _ \/ __ \/ _ \/ __ `/
 ___/ / /_/ / /_/ / /_/ / /  /  __/ /_/ /  __/ /_/ / 
/____/\__, /\__,_/\__,_/_/   \___/ .___/\___/\__, /  
        /_/                     /_/         /____/   
```

# squarepeg

Run a `docker run`-style command as a Kubernetes Pod or Job, streaming its
output like a local process and exiting with the container's exit code.

```
squarepeg run alpine echo "hello from a pod"
```

## Install

```
pip install squarepeg
```

## Docs

Full documentation lives in the [wiki](https://github.com/BioWilko/squarepeg/wiki):

- [Getting Started](https://github.com/BioWilko/squarepeg/wiki/Getting-Started)
- [CLI Reference](https://github.com/BioWilko/squarepeg/wiki/CLI-Reference)
- [Configuration](https://github.com/BioWilko/squarepeg/wiki/Configuration)
- [Environment Variable Interpolation](https://github.com/BioWilko/squarepeg/wiki/Environment-Variable-Interpolation)
- [Docker Compatibility](https://github.com/BioWilko/squarepeg/wiki/Docker-Compatibility)
- [Execution Lifecycle](https://github.com/BioWilko/squarepeg/wiki/Execution-Lifecycle)
- [Troubleshooting](https://github.com/BioWilko/squarepeg/wiki/Troubleshooting)
- [Development](https://github.com/BioWilko/squarepeg/wiki/Development)

> **MicroK8s on Python 3.13+:** if connecting fails with `CA cert does not include key usage extension`,
> set `lenient_tls: true` in your config — see [Troubleshooting](https://github.com/BioWilko/squarepeg/wiki/Troubleshooting#runner-errors-exit-code-125).

See also [`examples/config.yaml`](examples/config.yaml) for a fully worked
config file.

## Development

```
pytest                        # unit tests
pytest -m integration         # integration tests, requires SQUAREPEG_INTEGRATION=1 and a kind cluster
ruff check .                  # lint
```
