Migrate to httpx2

Open
#2,733 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Quiet
Tech stack
python
Domain
api

Research direction

Start by checking the project dependencies to find where httpx is declared and how it is used in the Python library. Migrate those references to the maintained httpx2 package, then run the library's existing test suite to confirm the dependency change works across supported uses.

Written by the indexing model from the issue text.

Description

Confirm this is a Python library issue and not an underlying Cloudflare API issue.
  • This is an issue with the Python library
Describe the bug

This project currently depends on httpx, which is no longer maintained. Given that situation, it should be migrated away to a maintained http library. One such option is httpx2 (https://github.com/pydantic/httpx2), which seems to be the accepted community fork of httpx, specially given it's maintained by pydantic. This is even more true, when the author of httpxyz (a previous fork) blesses this new package.

Note that Sentry, already added support for this package in https://github.com/getsentry/sentry-python/issues/6448.

To Reproduce

Check the project dependencies

Code snippets

OS

any

Python version

any

Library version

5.x

Dominant language
Python
Stars
509
Forks
150
Avg merge
3h 15m
Merged PRs (30d)
1

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.

More from cloudflare/cloudflare-python

All issues in cloudflare/cloudflare-python

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.