OpenAPITools / OpenAPITools/openapi-generator

Python: Creating an async client

Open
#18,407 4 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
26.8k
Forks
7.7k
PR merge metrics
PR metrics pending

Description

I see there is an option to give the library=asyncio in the CONFIG OPTIONS to get an async client, but its not clear enough will it be an async client? Can I create an SDK for both async and sync requests?

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the Python generator's CONFIG OPTIONS documentation and the library=asyncio option. Verify whether it generates an async client and whether synchronous and asynchronous clients can be generated together; update the documentation to state the supported behavior and usage clearly.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, documentation
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.