GitHub user hy144328 created a discussion: airflowctl Python API
I have only recently discovered `airflowctl`, and I fell in love with it immediately. I would like to integrate it into our runbooks, i.e. Jupyter notebooks. I think the CLI is well designed. However, it would be even nicer to be able to directly import the functionality into Python, and extend it there. I propose to more strictly separate the CLI logic from the underlying business logic related to the Airflow REST API, and expose the latter as a Python API, i.e. an importable collection of modules and functions. Other than the advantages, I do not see any advantages since this is possible without any breaking changes. We would follow the CLI relatively closely. If the maintainers are open to the suggestion, I would be happy to take it into my own hands. I would be happy to provide an outline of what the function signatures would possibly look like. Afterwards, I would implement it, and refactor the existing `commands/` modules. Since the existing commands are only refactored, it is possible to break it into a number of smaller PRs. What do you think? GitHub link: https://github.com/apache/airflow/discussions/72815 ---- This is an automatically sent email for [email protected]. To unsubscribe, please send an email to: [email protected]
