Fix bug - Invalid type for variable for execution_timeout and dag_run_timeout (#53) (#76)

(cherry picked from commit f32517a63fd7367e300f0add7aff7ed3bfdde0d8)

Co-authored-by: David Katz <41651296+DavidKatz-il@users.noreply.github.com>
2 files changed
tree: d39c650ee58354777e350069b7a6014b51630df5
  1. .github/
  2. airflow_client/
  3. dev/
  4. license-templates/
  5. .asf.yaml
  6. .gitignore
  7. .pre-commit-config.yaml
  8. .rat-excludes
  9. CHANGELOG.md
  10. INSTALL
  11. LICENSE
  12. NOTICE
  13. README.md
  14. requirements.txt
  15. setup.cfg
  16. setup.py
  17. test-requirements.txt
README.md

Apache Airflow Python Client

NOTE: The Apache Airflow Client is still under active development and some methods or APIs might be broken. Please raise an issue in github if you encounter any such issues.

Requirements.

Python >= 3.6

Installation & Usage

pip install

You can install directly using pip:

pip install apache-airflow-client

Setuptools

Or install via Setuptools.

git clone git@github.com:apache/airflow-client-python.git
cd airflow-client-python
python setup.py install --user

(or sudo python setup.py install to install the package for all users)

Then import the package:

import airflow_client.client

Getting Started

Please follow the installation procedure and then run the following:

import airflow_client.client
from pprint import pprint
from airflow_client.client.api import config_api

#
# In case of the basic authentication below. Make sure:
#  - Airflow is configured with the basic_auth as backend:
#     auth_backend = airflow.api.auth.backend.basic_auth
#  - Make sure that the client has been generated with securitySchema Basic.

# Configure HTTP basic authorization: Basic
configuration = airflow_client.client.Configuration(
    host="http://localhost/api/v1",
    username='admin',
    password='admin'
)


# Enter a context with an instance of the API client
with airflow_client.client.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = config_api.ConfigApi(api_client)

    try:
        # Get current configuration
        api_response = api_instance.get_config()
        pprint(api_response)
    except airflow_client.client.ApiException as e:
        print("Exception when calling ConfigApi->get_config: %s\n" % e)

See README for full client API documentation.