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.

Requirements

Roadmap

  • Convert Support

  • Jinja2 Template Support

  • 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
  1. Make changes...
  2. See them in action
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

Copyright 2023 QuickVM, LLC

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.2.tar.gz (13.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

bupy-0.1.2-py3-none-any.whl (15.1 kB view details)

Uploaded Python 3

File details

Details for the file bupy-0.1.2.tar.gz.

File metadata

  • Download URL: bupy-0.1.2.tar.gz
  • Upload date:
  • Size: 13.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.4 Linux/6.4.2-201.fc38.x86_64

File hashes

Hashes for bupy-0.1.2.tar.gz
Algorithm Hash digest
SHA256 cedde01c766be2cad2fbd9515d08dc9c7e52c379d423c791afe95414fadd0221
MD5 768f0a64f42dc8854a1a8e6a2eedf69a
BLAKE2b-256 a227d567a7187511f04746066bfe1dd790da5eea9acdca23d450467d207aef26

See more details on using hashes here.

File details

Details for the file bupy-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: bupy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 15.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.4.1 CPython/3.11.4 Linux/6.4.2-201.fc38.x86_64

File hashes

Hashes for bupy-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 d59327b57270db59195906efea597951090a60a3a691c179138bb776f7551826
MD5 fe021193da6c837cf455a5cd56e3d827
BLAKE2b-256 171d3745647bd087d102c2f0e0ffada5f29439c299920f385e33f98b96a5cdce

See more details on using hashes here.

Supported by

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