Skip to main content

A Python toolkit for Butane and Ignition

Project description

Bupy

The Butane Python 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.

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

Development

  1. Clone this repo
  2. Install dependencies
poetry install
  1. Activate a poetry shell
$ poetry shell
Spawning shell within /home/jdoss/src/quickvm/bupy/.venv
. /home/jdoss/src/quickvm/bupy/.venv/bin/activate
$ . /home/jdoss/src/quickvm/bupy/.venv/bin/activate
  1. Make changes...
  2. See them in action
(.venv) $ python -m bupy --help

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

╭─ 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                                               │
│ merge        Merge Butane files together                                                         │
│ qemu         Launches a QEMU VM with the specified Ignition JSON or Butane YAML                  │
│ serve        Serve an ignition file via HTTP on a specified port                                 │
│ template     Render Butane Jinja2 templates                                                      │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

bupy-0.1.0.tar.gz (13.8 kB view hashes)

Uploaded Source

Built Distribution

bupy-0.1.0-py3-none-any.whl (14.9 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page