Skip to content

Python client slow when importing #10865

@javikalsan

Description

@javikalsan

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: OpenAPITools/openapi-generator#18144

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingbug/confirmedConfirmed bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions