{"repo":"cloudflare/cloudflare-python","free":true,"listed":false,"github":"https://github.com/cloudflare/cloudflare-python","clone":"git clone https://github.com/cloudflare/cloudflare-python.git","description":"The official Python library for the Cloudflare API","language":"Python","stars":497,"topics":["api","cloudflare","sdk","sdk-python"],"license":"Apache-2.0","category":"api-integrations-sdks","readme_excerpt":"Cloudflare Python API library ) The Cloudflare Python library provides convenient access to the Cloudflare REST API from any Python 3.9+ application. The library includes type definitions for all request params and response fields, and offers both synchronous and asynchronous clients powered by httpx. It is generated with Stainless. Documentation The REST API documentation can be found on developers.cloudflare.com. The full API of this library can be found in api.md. Installation Usage The full API of this library can be found in api.md. While you can provide a api email keyword argument, we recommend using python-dotenv to add CLOUDFLARE EMAIL=\"user@example.com\" to your .env file so that your API Email is not stored in source control. Async usage Simply import AsyncCloudflare instead of Cloudflare and use await with each API call: Functionality between the synchronous and asynchronous clients is otherwise identical. With aiohttp By default, the async client uses httpx for HTTP requests. However, for improved concurrency performance you may also use aiohttp as the HTTP backend. You can enable this by installing aiohttp : Then you can enable it by instantiating the client with http client=DefaultAioHttpClient() : Using types Nested request parameters are TypedDicts. Responses are Pydantic models which also provide helper methods for things like: - Serializing back into JSON, model.to json() - Converting to a dictionary, model.to dict() Typed requests and responses provide auto","default_branch":null,"files":null,"tree":[],"storefront":"/r/cloudflare","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/cloudflare/cloudflare-python/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}