跳到正文

Cloudflare Python SDK

活跃
cloudflare/cloudflare-python

Cloudflare 官方 Python REST API 库:为 Python 3.9+ 提供带类型定义的同步与异步客户端,由 Stainless 生成。

在 GitHub 查看
星标
518
Fork
163
关注
518
未关闭 Issue
37

该介绍目前仅提供英文版本。

Overview

The Cloudflare Python library provides convenient access to the Cloudflare REST API from any Python 3.9+ application. It includes type definitions for every request parameter and response field, and offers both synchronous and asynchronous clients powered by httpx. It is generated with Stainless.

Install

pip install cloudflare

Usage

import os
from cloudflare import Cloudflare

client = Cloudflare(api_token=os.environ.get("CLOUDFLARE_API_TOKEN"))

The full API surface is listed in api.md, and the REST API itself is documented on developers.cloudflare.com.

按共同分类和标签排序的同类开源项目。

全部 SDK 项目 →