goauthentik / goauthentik/authentik
Python client slow when importing
- Dominant language
- Python
- Stars
- 25.6k
- Forks
- 2k
- Avg merge
- 1d 1h
- Merged PRs (30d)
- 644
Description
**Describe your question**
Is there a way to make imports using the Python client faster?
**Relevant info**
Here is an example I did using **Python 3.12.4** and Authentik client version **2024.6.3-1723032688**
authentik_client installations did using a virtual environment and pip.
```
time python -c "from authentik_client.api_client import ApiClient"
real 0m11,639s
user 0m11,525s
sys 0m0,115s
```
and other downgrading to version **2024.2.2.post1710464650**
```
time python -c "from authentik_client.api_client import ApiClient"
real 0m3,400s
user 0m3,344s
sys 0m0,057s
```
I read this related issue on openapi generator: https://github.com/OpenAPITools/openapi-generator/issues/18144
Thanks!
Contributor guide
Assessment
This issue has not been assessed yet.