Cloudflare Python SDK Hits v5.0.0 — aiohttp and 11 New Services Land
Hey everyone, it's me, Shiichan! Today I've got good news for everyone who works with Cloudflare from Python.
Cloudflare ChangelogWhat was announced?
On Cloudflare's Changelog, the official Python SDK was released as v5.0.0. It's a major version bump that bundles a refresh of the supported Python lines, a new async backend, and support for 11 new services — a pretty big step all at once.
The story so far
Up until now, the v4 line still supported Python 3.8, and the HTTP backend was mostly the standard one. For folks who wanted to lean hard into async, or run on newer Python versions, it could feel a little limiting.
What changes
With v5.0.0, the minimum requirement moves up to Python 3.9, and in exchange 3.13 and 3.14 are now officially tested. Async fans get an optional aiohttp backend to pick from, and new services like AI Search and Email Sending can now be reached straight from the SDK.
Dive Deep
The newly added services are: AI Search, Connectivity, Email Sending, Fraud, Google Tag Gateway, Organizations, R2 Data Catalog, Realtime Kit, Resource Tagging, Token Validation, and Vulnerability Scanner — 11 in all. Nice and broad.
The aiohttp backend is optional, and you can install it like this:
pip install cloudflare[aiohttp]
On the version side, Python 3.8 is dropped so the minimum is 3.9, with support up to 3.14. The typing-extensions dependency also moves from >=4.10 to >=4.14.
The big one is the breaking changes. This release touches 15 resources — abusereports, d1.database, queues.consumers, rulesets.rules, zerotrust.dlp, and more — so before you upgrade, it's worth reading the v5.0.0 migration guide. The finer usage details are also gathered in the Python SDK documentation.
Wrap-up
- Cloudflare's official Python SDK gets a major update to v5.0.0
- Minimum requirement moves to Python 3.9, with 3.13 and 3.14 officially supported
- An aiohttp backend is now selectable via
cloudflare[aiohttp] - 11 new services including AI Search and Email Sending
- Breaking changes across 15 resources — read the migration guide before you upgrade
If you call the Cloudflare API from Python, this is exactly the kind of update to check right now!