Metadata-Version: 2.1
Name: bupy
Version: 0.1.2
Summary: A Python toolkit for Butane and Ignition
Author: QuickVM
Author-email: hello@quickvm.com
Requires-Python: >=3.8.10,<4.0.0
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Requires-Dist: Jinja2 (>=3.1.2,<4.0.0)
Requires-Dist: pip (>=23.0.1,<24.0.0)
Requires-Dist: pyxdg (>=0.28,<0.29)
Requires-Dist: rich (>=13.4.2,<14.0.0)
Requires-Dist: ruamel.yaml (>=0.17.21,<0.18.0)
Requires-Dist: typer[all] (>=0.9.0,<0.10.0)
Requires-Dist: urllib3 (>=1.26.10,<2.0.0)
Description-Content-Type: text/markdown

# Bupy

The **Bu**tane **Py**thon Toolkit

Bupy was built to help users develop Butane configurations for Fedora CoreOS quickly on their workstations. It allows you to convert Butane YAML to Ignition JSON and render Butane Jinja2 templates to either Butane YAML or Ignition JSON. You can then use your Butane file or template to launch a local QEMU Virtual Machine.

### Requirements

* [Python 3.8.10^](https://www.python.org/downloads/)
* [butane](https://coreos.github.io/butane/)
* [qemu](https://www.qemu.org/download/)
* If possible, a positive attitude

### Roadmap

* [x] Convert Support

* [x] Jinja2 Template Support
* [x] Launch a local QEMU FCOS VM
* [ ] Merge Butane YAML (snippets)
* [ ] Serve Ignition JSON via HTTP
* [ ] Libvirt support

### Demo

You can watch a quick demo of Bupy on Youtube.

[![Quick demo of Bupy for Fedora CoreOS](https://img.youtube.com/vi/yBOEz827TUU/0.jpg)](https://www.youtube.com/watch?v=yBOEz827TUU)

### Development

1) Clone this repo
2) Install dependencies

```bash
poetry install
```

3) Activate a poetry shell

```bash
poetry shell
```

4) Make changes...
5) See them in action

```bash
bupy --help

 Usage: bupy [OPTIONS] COMMAND [ARGS]...

 Bupy: Butane Python toolkit.

╭─ Options ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ --version             -v        Show the version and exit.                                                                                                                                                 │
│ --install-completion            Install completion for the current shell.                                                                                                                                  │
│ --show-completion               Show completion for the current shell, to copy it or customize the installation.                                                                                           │
│ --help                          Show this message and exit.                                                                                                                                                │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╮
│ convert                      Converts Butane YAML to Ignition JSON                                                                                                                                         │
│ template                     Renders a Jinja2 Template to Butane YAML or Ignition JSON                                                                                                                     │
│ vm                           Launches a QEMU VM with a Butane YAML or Jinja2 Template                                                                                                                      │
╰────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────╯

 Made in ✶✶✶✶ Chicago✶✶✶✶  〜 (c) 2023 QuickVM, LLC
  ```

## License

[Apache License Version 2.0](http://www.apache.org/licenses/LICENSE-2.0>)

Copyright 2023 QuickVM, LLC

