Metadata-Version: 2.5
Name: airflow-balancer
Version: 0.7.12
Summary: Utilities for tracking hosts and ports and load balancing DAGs
Project-URL: Repository, https://github.com/airflow-laminar/airflow-balancer
Project-URL: Homepage, https://github.com/airflow-laminar/airflow-balancer
Author-email: the airflow-balancer authors <t.paine154@gmail.com>
License: Apache-2.0
License-File: LICENSE
Classifier: Development Status :: 3 - Alpha
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: Implementation :: CPython
Classifier: Programming Language :: Python :: Implementation :: PyPy
Requires-Python: >=3.11
Requires-Dist: airflow-config<1.13,>=1.12
Requires-Dist: airflow-pydantic<1.8,>=1.6
Requires-Dist: pydantic>=2
Provides-Extra: airflow
Requires-Dist: apache-airflow-providers-ssh; extra == 'airflow'
Requires-Dist: apache-airflow-providers-standard; extra == 'airflow'
Requires-Dist: apache-airflow<3,>=2.8; extra == 'airflow'
Provides-Extra: airflow3
Requires-Dist: apache-airflow-providers-ssh; extra == 'airflow3'
Requires-Dist: apache-airflow-providers-standard; extra == 'airflow3'
Requires-Dist: apache-airflow<3.4,>=3; extra == 'airflow3'
Provides-Extra: develop
Requires-Dist: build; extra == 'develop'
Requires-Dist: bump-my-version; extra == 'develop'
Requires-Dist: check-dist; extra == 'develop'
Requires-Dist: codespell; extra == 'develop'
Requires-Dist: email-validator>=2; extra == 'develop'
Requires-Dist: fastapi; extra == 'develop'
Requires-Dist: flask; extra == 'develop'
Requires-Dist: flask-appbuilder>=4.5.4; extra == 'develop'
Requires-Dist: flask-limiter<4.2; extra == 'develop'
Requires-Dist: hatch-js; extra == 'develop'
Requires-Dist: hatchling; extra == 'develop'
Requires-Dist: mdformat; extra == 'develop'
Requires-Dist: mdformat-frontmatter; extra == 'develop'
Requires-Dist: mdformat-tables>=1; extra == 'develop'
Requires-Dist: pytest; extra == 'develop'
Requires-Dist: pytest-cov; extra == 'develop'
Requires-Dist: ruff; extra == 'develop'
Requires-Dist: twine; extra == 'develop'
Requires-Dist: ty; extra == 'develop'
Requires-Dist: uv; extra == 'develop'
Requires-Dist: uvicorn; extra == 'develop'
Requires-Dist: wheel; extra == 'develop'
Description-Content-Type: text/markdown

# airflow-balancer

Select configured hosts and ports for Airflow tasks, generate SSH hooks, and inspect configuration in a viewer. Core models come from `airflow-pydantic`; YAML composition comes from `airflow-config`.

[![Build Status](https://github.com/airflow-laminar/airflow-balancer/actions/workflows/build.yaml/badge.svg?branch=main&event=push)](https://github.com/airflow-laminar/airflow-balancer/actions/workflows/build.yaml)
[![codecov](https://codecov.io/gh/airflow-laminar/airflow-balancer/branch/main/graph/badge.svg)](https://codecov.io/gh/airflow-laminar/airflow-balancer)
[![License](https://img.shields.io/github/license/airflow-laminar/airflow-balancer)](https://github.com/airflow-laminar/airflow-balancer)
[![PyPI](https://img.shields.io/pypi/v/airflow-balancer.svg)](https://pypi.python.org/pypi/airflow-balancer)

Python 3.11 or later is required. Install the package for configuration loading, or choose the extra for your Airflow version:

```bash
pip install airflow-balancer
pip install 'airflow-balancer[airflow]'   # Airflow 2
pip install 'airflow-balancer[airflow3]'  # Airflow 3
```

For conda-forge:

```bash
conda install -c conda-forge airflow-balancer
```

- [Tutorial: select a worker and inspect its configuration](docs/src/tutorial.md)
- [How-to guides: Python, YAML, SSH, pools, and the viewer](docs/src/examples.md)
- [Reference: models, queries, loading, and viewer settings](docs/src/API.md)
- [Explanation: selection, pool limits, and port availability](docs/src/explanation.md)

Selection chooses randomly among matching configured hosts. `free_port()` excludes ports listed in configuration. The [explanation](docs/src/explanation.md) describes how these choices relate to Airflow scheduling and resource ownership.

[Documentation](https://airflow-laminar.github.io/airflow-balancer/) · [Source](https://github.com/airflow-laminar/airflow-balancer) · [Issues](https://github.com/airflow-laminar/airflow-balancer/issues)

## License

Apache 2.0. See [LICENSE](LICENSE).
