Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python: Replace OpenAPI generator http code with out own #1654

Merged
merged 41 commits into from
Jan 23, 2025

Conversation

svix-mman
Copy link
Contributor

Switching the HTTP call logic with a single (a)sync function.

WIP:

  • Don't use the old internal.openapi_client error types
  • Migrate the resources to use this new client

ref: https://github.com/svix/monorepo-private/issues/9685

…params`

`_query_params` and `_header_params` should return values that are ready to use _as is_  in `httpx.request`
python/svix/api/common.py Outdated Show resolved Hide resolved
python/svix/api/common.py Outdated Show resolved Hide resolved
python/svix/api/common.py Outdated Show resolved Hide resolved
python/svix/api/common.py Outdated Show resolved Hide resolved
@svix-mman
Copy link
Contributor Author

svix-mman commented Jan 21, 2025

@tasn The last 2 commits are breaking change, but they add new methods that are deprecated, and the methods have "deprecated" in the method name
This feels wrong to me, we should not be adding new methods that are already deprecated

The reason we only get this change now (instead of when I was working on the high-level API), is because I am working with a new openapi.json file

python/svix/api/application.py Show resolved Hide resolved
python/svix/api/authentication.py Outdated Show resolved Hide resolved
python/svix/api/authentication.py Show resolved Hide resolved
python/svix/api/background_task.py Show resolved Hide resolved
@tasn
Copy link
Member

tasn commented Jan 22, 2025

@tasn The last 2 commits are breaking change, but they add new methods that are deprecated, and the methods have "deprecated" in the method name This feels wrong to me, we should not be adding new methods that are already deprecated

The reason we only get this change now (instead of when I was working on the high-level API), is because I am working with a new openapi.json file

Whatever @svix-jplatte thinks is fine by me.

@svix-mman svix-mman marked this pull request as ready for review January 23, 2025 02:57
@svix-mman svix-mman requested a review from a team as a code owner January 23, 2025 02:57
svix-jplatte
svix-jplatte previously approved these changes Jan 23, 2025
@svix-jplatte svix-jplatte changed the title python: Add new low-level http client python: Replace OpenAPI generator http code with out own Jan 23, 2025
@svix-jplatte svix-jplatte merged commit 344d258 into main Jan 23, 2025
8 checks passed
@svix-jplatte svix-jplatte deleted the mendy/add-python-low-level-http-client branch January 23, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants