swagger-api / swagger-api/swagger-codegen

[python] Suggestion: use requests lib in python clients

Open
#4,102 1 comment 19 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Client: Python General: Suggestion help wanted
Dominant language
Mustache
Stars
17.8k
Forks
6k
PR merge metrics
No merged PRs in 30d

Description

I think a lot of boilerplate code could be removed from the python codegen if we used the requests lib.
Moreover, bringing oauth2 support would be easy with requests-oauthlib

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

No files, tests, or entry points are named. Start by reviewing the Python codegen templates and current HTTP and OAuth handling, then read the linked requests and requests-oauthlib documentation; done would require a concrete, tested plan for reducing boilerplate and adding OAuth2 support.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.