Files
airflow/clients
Jarek Potiuk 0df08334cd Switch all our prek python hooks to use PEP-723 inline dependencies (#54917)
Following the change in https://github.com/j178/prek/pull/529 and
release of prek 0.1.3, we convert all our Python scripts to use
PEP-723-compliant inline scripts.

This will remove decoupling of scripts from their dependencies,
and will allow to run them easily by `uv run` as well as easier
debugging and testing.
2025-08-25 21:59:08 +02:00
..

Airflow OpenAPI clients

This directory contains definition of Airflow OpenAPI client packages.

Supported languages:

  • Python generated through ./gen/python.sh.

Generating client code

To generate the client code using dockerized breeze environment, run (at the Airflow source root directory):

breeze release-management prepare-python-client --distribution-format both

The client source code generation uses OpenAPI generator image, generation of packages is done using Hatch. By default, packages are generated in a dockerized Hatch environment, but you can also use a local one by setting --use-local-hatch flag.

breeze release-management prepare-python-client --distribution-format both --use-local-hatch

Browsing the generated source code

The generated source code is not committed to Airflow repository, but when releasing the package, Airflow team also stores generated client code in the Airflow Client Python repository.