v0.1.0
·
161 commits
to integration
since this release
Reusable workflow blocks for CUTIP — Container Unit Templates in Python.
Features
- 34 blocks across 9 categories: container, ssh, file, k8s, crictl, download, config, validate, service
- @block decorator with BlockMeta (name, category, action) for metadata discovery
- BlockRegistry.discover() auto-finds all blocks via pkgutil
- SSHSession with credential redaction and persistent connection reuse
- Structured logging with
[BlockName]prefix on all block executions
Block Categories
| Category | Blocks |
|---|---|
| container | start, stop, remove, exec, exec_stream |
| ssh | session, exec, probe |
| file | copy, copy_tree, read_yaml, write_yaml, read_json, write_json, replace, is_empty |
| k8s | get_deployment, get_secret, get_pod, exec, cp, apply, patch_deployment, rollout_status |
| crictl | image_ls, image_rm, image_import |
| download | http_fetch |
| config | render_template, substitute_vars |
| validate | path_exists, env_var_set, ip_valid |
| service | poll_until_ready, wait_for_exit |
Installation
```bash
pip install cutip-blocks
```
Note: PyPI publishing pending. Install from GitHub for now:
```bash
pip install "cutip-blocks @ git+https://github.com/joshuajerome/cutip-blocks.git@integration"
```
Full Changelog: https://github.com/joshuajerome/cutip-blocks/commits/v0.1.0