OpenAPITools / OpenAPITools/openapi-generator

[REQ] Either vendor or use builtins for python generator

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

Nobody has claimed this yet.

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

Description

Is your feature request related to a problem? Please describe.

It would be nice if we don't depend on anything external Python packages. Either vendor the packages for what's necessary or just use builtins. This makes it easier for consumers of our clients to add the package, without ending in dep hell. I.e. pydantic v1 vs v2

Describe the solution you'd like

  • Couple of base classes that handle certain validation logic
  • Couple of base logic for making api calls
  • Having a pip package that has no deps

Describe alternatives you've considered

  • Writing my own generator
  • Crying
  • Vendoring packages

Additional context

In a world where its easy to get in pip dep hell, its good if we make simple clients so adding our client doesnt become a dep hell for the consumer of our clients.

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

The issue names no files or tests. Start by mapping the Python generator's current external packages and the code paths for validation and API calls. Define the supported dependency-free approach, then verify that the generated client can be packaged and installed without external Python dependencies.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
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.