Skip to main content

Unified developer CLI for Python packages with C and C++ bindings.

Project description

foga

foga is a Python package and CLI for developers maintaining Python packages with C or C++ bindings. It replaces ad-hoc repository scripts with a single YAML configuration file that drives build, test, docs, format, lint, install, deploy, inspect, and cleanup workflows.

What foga does

  • build Python packages and C++ artifacts from one config file
  • run Python and C++ test workflows through one CLI
  • run Python and C++ format and lint workflows through one CLI
  • generate Python and C++ documentation through one CLI
  • install local packages and external dependencies through one CLI
  • switch environment-specific settings with named profiles
  • inspect the resolved config and planned commands before running anything
  • keep escape hatches explicit through structured hooks

Install

pip install foga

Minimal example

project:
  name: demo

build:
  python:
    backend: python-build

test:
  runners:
    unit:
      backend: pytest
      path: tests

For runnable examples that build up gradually, start with examples/tutorial/ or the Examples guide. Each tutorial README lists the local prerequisites, and this repository also includes examples/tutorial/run-example.py if you want to run the tutorials with only Docker and Python instead of installing the example-specific tools locally.

Quick start

foga validate
foga inspect
foga build --dry-run
foga test --dry-run
foga docs --dry-run
foga format --dry-run
foga lint --dry-run
foga install --dry-run
foga deploy --target pypi --dry-run

Python lint targets can use ruff-check or pylint, and C++ lint targets can use clang-tidy.

Documentation

Start with:

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

foga-0.3.4.tar.gz (138.2 kB view details)

Uploaded Source

Built Distribution

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

foga-0.3.4-py3-none-any.whl (54.3 kB view details)

Uploaded Python 3

File details

Details for the file foga-0.3.4.tar.gz.

File metadata

  • Download URL: foga-0.3.4.tar.gz
  • Upload date:
  • Size: 138.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for foga-0.3.4.tar.gz
Algorithm Hash digest
SHA256 81cfbb1539c85d9ee77a23c9ad99ac0de072e4f9fa0659b446c4bf953abc0aaf
MD5 1fe4417d0ed1955356d98788fc7b396e
BLAKE2b-256 03c44f20a58cdbfbf8d5438664638b4d6c39ac8e742bbce1162b26d8fce87e3b

See more details on using hashes here.

Provenance

The following attestation bundles were made for foga-0.3.4.tar.gz:

Publisher: publish.yml on fedluc/foga

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file foga-0.3.4-py3-none-any.whl.

File metadata

  • Download URL: foga-0.3.4-py3-none-any.whl
  • Upload date:
  • Size: 54.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for foga-0.3.4-py3-none-any.whl
Algorithm Hash digest
SHA256 816a47693f1dcf05e9a201df5d6d8862217dd2a40087a3af26665bf027e7edc0
MD5 500db2f37b9c6bbdcbd6089986c721ad
BLAKE2b-256 f6e43c905634dd2b6349c8364b936054a19afc540105f580d9e8a95eb23f8958

See more details on using hashes here.

Provenance

The following attestation bundles were made for foga-0.3.4-py3-none-any.whl:

Publisher: publish.yml on fedluc/foga

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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