Skip to main content

margot

margot

PyPI version Python versions License CI Docs Downloads Container Codecov GitHub stars GitHub forks GitHub issues Ruff uv pytest

margot is a developer CLI for building and publishing Margo application packages as OCI artifacts. It handles packaging, tagging, and pushing/pulling to any OCI-compliant registry.

Documentation · PyPI

Install

From PyPI

pip install margo-tooling

Or with uv:

uv tool install margo-tooling

Or with pipx:

pipx install margo-tooling

With a container

Every release publishes a container image to GHCR. The image is built for linux/amd64 and linux/arm64; podman and docker select the right architecture automatically. Mount your project directory into /workspace:

podman run --rm -v "$PWD":/workspace ghcr.io/karnarokepoch/margot:latest --help

Pin to a specific version instead of latest for reproducible builds, e.g. ghcr.io/karnarokepoch/margot:1.0.0. Pass --platform linux/arm64 (or linux/amd64) to force a specific architecture.

From source

git clone https://github.com/karnarokEpoch/margot.git
cd margot
uv sync

Usage

$ margot --help

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

 Margo application package developer CLI.

╭─ Options ────────────────────────────────────────────────────────────────────╮
│ --version             -V        Print version and exit.                     │
│ --verbose             -v        Enable verbose output (step-level info).     │
│ --debug               -d        Enable debug output (infra-level detail,     │
│                                  implies --verbose).                         │
│ --install-completion            Install completion for the current shell.    │
│ --show-completion                Show completion for the current shell, to  │
│                                  copy it or customize the installation.      │
│ --help                -h        Show this message and exit.                 │
╰────────────────────────────────────────────────────────────────────────────────╯
╭─ Commands ─────────────────────────────────────────────────────────────────────╮
│ fetch     Fetch and display the manifest of an OCI artifact.                  │
│ build     Build Margo application package types locally.                     │
│ push      Push built Margo application artifacts to an OCI registry.         │
│ pull      Pull OCI artifact layers to a local directory.                     │
│ package   Bundle built artifacts into an offline .tgz for disconnected      │
│           deployment.                                                        │
│ verify    Validate the Margo application description against the Margo spec │
│           schema.                                                            │
│ describe  Describe a Margo application description in rich, structured      │
│           output.                                                           │
│ install   Install one quadlet deployment profile of a Margo application on  │
│           this host.                                                        │
│ auth      Manage OCI registry credentials.                                  │
╰────────────────────────────────────────────────────────────────────────────────╯

A minimal project

A Margo project is described by a margo.yaml file at the project root:

nginx-helm/
├── margo.yaml
└── margo/
    └── app.yaml.jinja
# margo.yaml
apiVersion: v1
id: com-example-nginx
name: nginx
version: "1.0.0"
appVersion: "1.27.0"
description: "NGINX web server deployed via Helm chart"
repository: public.ecr.aws/g2n4p2m7/margo

Validate the application description

margot verify

Validates app.yaml (or app.yaml.jinja, rendered on the fly) against the upstream Margo spec schema — no network access, no prior build required.

Inspect it visually

margot describe

Renders the descriptor as structured panels and trees: identity, deployment profiles, configuration (settings, schemas, parameters), and extensions.

Build and push

margot build
margot push

build renders the descriptor and stages it under build_dir. push publishes the artifact via ORAS to the registry declared in margo.yaml, tagged with version:

public.ecr.aws/g2n4p2m7/margo:1.0.0

Log in first if the registry requires auth:

margot auth login

Package for offline delivery

margot build
margot package

package collects everything build produced and bundles it into a single <id>-<version>.tgz — for deployment in disconnected environments without registry access. The bundle is written to .dist/<version>/ by default:

.dist/1.0.0/com-example-nginx-1.0.0.tgz

Pass --output to write it elsewhere. A bundle is never pushed to a registry.

Pull and inspect a published artifact

margot pull public.ecr.aws/g2n4p2m7/margo:1.0.0 --output ./out
margot fetch public.ecr.aws/g2n4p2m7/margo:1.0.0

pull writes the artifact's layers to disk as-is (no extraction). fetch prints the raw manifest JSON for a quick remote inspection, without pulling anything.

Install a quadlet application on this host

margot install --dry-run public.ecr.aws/g2n4p2m7/margo:1.0.0   # show the plan, change nothing
margot install public.ecr.aws/g2n4p2m7/margo:1.0.0             # place the quadlet files, reload systemd

install takes a built project, a pull --recursive folder or a remote artifact. It places the quadlet files of one deployment profile under ~/.config/containers/systemd/<application-id>/, applies the application parameters (--set NAME=VALUE) as systemd unit environment variables, and prints the systemctl --user start commands. It never starts anything itself. See the install page for the full contract.

Shell completion

Enable shell tab completion for margot commands and flags:

# Quick setup — appends to your shell's rc file directly
margot --install-completion

# Manual setup — prints the script; redirect it wherever you source completions from
margot --show-completion bash > ~/.local/share/bash-completion/completions/margot

Both methods require a shell restart or re-sourcing the rc file to take effect. --show-completion takes a shell argument (bash, zsh, fish, powershell, or pwsh) and prints the completion script to stdout.

--install-completion has no --path option — it always appends to the shell's default rc file (e.g. ~/.bashrc). If you curate your own rc includes rather than a raw rc append, use --show-completion instead and redirect the output to your preferred location.

Learn more

  • Documentation — full command reference, margo.yaml reference, configuration, and worked examples (Helm, Compose, Quadlet, multi-component).
  • ROADMAP.md — planned features, fixes, and ideas.
  • CONTRIBUTING.md — development setup, testing, release process.
  • CODE_OF_CONDUCT.md — community standards.

License

Apache License 2.0

Metadata

Release files for margo-tooling 0.13.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for margo-tooling 0.13.0
File Size Uploaded Provenance Actions
margo_tooling-0.13.0.tar.gz 579.2 kB With provenance Details for margo_tooling-0.13.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for margo-tooling 0.13.0
File Interpreter ABI Platform Actions
margo_tooling-0.13.0-py3-none-any.whl Python 3 none any Details for margo_tooling-0.13.0-py3-none-any.whl

Total release size: 742.5 kB

Release files / margo_tooling-0.13.0.tar.gz

Download URL margo_tooling-0.13.0.tar.gz
Size 579.2 kB
Tags Source
SHA-256 checksum
How to use checksums
e732fadd3add0940701b750454fc03c629bc2d622b9f8dcdc8e43b2fda7beb67
BLAKE2b-256 checksum
How to use checksums
2d398de78a501b9ffd176234962f61a2b2a5b586335e03e6e28b29b7c7a5e9cd
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / margo_tooling-0.13.0-py3-none-any.whl

Download URL margo_tooling-0.13.0-py3-none-any.whl
Size 163.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8304556609d86109ed860cb433ae01b2dd5478e2dcc9309dafc8e0afc9d497f4
BLAKE2b-256 checksum
How to use checksums
8262204c7cd21eff7b05d0ff75f1e221843c984c570fa885eb47ae3ae93ab9cc
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for margo-tooling 0.13.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for margo_tooling-0.13.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page