Skip to content

Replace requests with httpx2 - #41

Merged
haobibo merged 3 commits into
mainfrom
dev/httpx
Sep 12, 2026
Merged

Replace requests with httpx2#41
haobibo merged 3 commits into
mainfrom
dev/httpx

Conversation

@haobibo

@haobibo haobibo commented Aug 31, 2026

Copy link
Copy Markdown
Member

Summary

  • Replace requests and httpx imports with httpx2 across the project.
  • Migrate OpenAPI retry handling from urllib3 adapters to explicit httpx2 client retries.
  • Update dependencies and English/Chinese documentation.

Validation

  • httpx2 2.12.0 imports successfully.
  • Python compileall passes.
  • git diff --check passes.
  • Full pytest collection is currently blocked by missing project dependency attrdict3 in the environment.

Comment thread pkg/aloha/db/base.py
password_vault = PasswordVault.get_vault()
p = password_vault.get_password(db_config.get("password"))
LOG.debug("Decrypted PWD: %s" % p)
LOG.debug(f"Decrypted PWD: {p}")
raise ValueError(msg)

def post(self, url_api: str, body: dict, headers: dict = None, timeout: int = 5):
def post(self, url_api: str, body: dict, headers: dict | None = None, timeout: int = 5):
LOG.error(f"Error calling ESG API POST [{url}]: {e!s}")

def get(self, url_api: str, body: dict, headers: dict = None, timeout: int = 5):
def get(self, url_api: str, body: dict, headers: dict | None = None, timeout: int = 5):
@haobibo
haobibo merged commit c5c49cd into main Sep 12, 2026
9 of 10 checks passed
@haobibo
haobibo deleted the dev/httpx branch September 12, 2026 11:47
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.

2 participants