GitHub user 29TanayRaj created a discussion: Regarding the authentication token 
seperate call.

## Suggestion: Simplify Authentication Flow

I noticed that the authentication token currently needs to be obtained via a 
separate `POST` request and then manually passed into the configuration.

Would it be possible to provide a method within the configuration (or during 
client initialization) that automatically handles token generation?

This could significantly improve the developer experience by removing the extra 
step of explicitly calling the authentication endpoint before using the client.

### Context

I wasn’t aware that this repository already existed. Since I sometimes struggle 
with navigating documentation, I ended up creating my own Python wrapper around 
the Airflow v2 API that provides similar functionality with a simpler 
configuration flow:

https://github.com/29TanayRaj/Apache-Airflow-Python-SDK

### Example Usage (from my repo)

```python
with AirflowSDK(
    base_url="<your_base_url>",
    username="<your_admin_name>",
    password="<your_password>"
) as client:
    
    print(client.dags.list())
```

GitHub link: https://github.com/apache/airflow-client-python/discussions/147

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to