Repository navigation
Moderniza el SDK Python con HTTPX, uv y Ruff - #1
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Corrige la codificación de búsquedas y añade clientes HTTPX síncrono/asíncrono con conexiones reutilizables y cierre explícito. La única dependencia de ejecución es HTTPX; uv gestiona el proyecto y Ruff controla lint y formato.
Evidence
test_search_preserves_reserved_characters_and_accentsrecibíasearch=Aal buscarA&B ÑANDÚ + CIA.After: conserva el término completo. Los 28 casos pasan tanto en el proyecto con lock como en el wheel instalado en cada Python 3.11–3.15: 280 ejecuciones, con reutilización TCP, cierre, concurrencia, timeouts y respuestas HTTP comprobados.
uv sync --locked, Ruff lint/formato,uv buildytwine checkpasan. El wheel sólo declara HTTPX y los consumidores limpios no instalan Requests.uv publish --dry-run --trusted-publishing nevervalida las distribuciones sin subirlas. Actionlint pasa;setup-uvestá fijado al SHA verificado.Merge Danger
Door: two-way
El merge es reversible; la publicación sigue limitada a tags cuya versión coincide con el paquete y depende de toda la matriz.
Blast Radius: Consumidores
La versión 0.1.0 requiere Python 3.11 o superior y cambia las excepciones de transporte a la familia
httpx.RequestError. Las funciones anteriores conservan parámetros, respuestas y llamadas aisladas sin timeout; los clientes reutilizables usan 10 segundos por fase de forma predeterminada. Los consumidores no necesitan uv ni utilizan nuestro lockfile.