Skip to content

Commit 8de5189

Browse files
author
Chris Thorwarth
committed
Merge branch 'next' into ct/kv-update-issue
2 parents b8f3b10 + 763829c commit 8de5189

518 files changed

Lines changed: 40267 additions & 8996 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/workflows/detect-breaking-changes.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,9 @@ jobs:
99
detect_breaking_changes:
1010
runs-on: 'ubuntu-latest'
1111
name: detect-breaking-changes
12-
if: github.repository == 'cloudflare/cloudflare-python'
12+
if: false
13+
permissions:
14+
contents: read
1315
steps:
1416
- name: Calculate fetch-depth
1517
run: |

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "4.3.1"
2+
".": "5.0.0-beta.1"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 1995
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-28b84a5db03b38290dfe7ef1de2c68feb68762d7a8f207bdbea4d39a7aeef1ea.yml
3-
openapi_spec_hash: ba6bd61621e4be20b581f4f3bf0978d3
4-
config_hash: b73d16cbbb07431f2e4dff6dc0290ba5
1+
configured_endpoints: 2028
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/cloudflare%2Fcloudflare-e8f3032e68d3763a847cee8685c7083ef9e52cca2457e88598afdbac8b64187d.yml
3+
openapi_spec_hash: cad13093a7aacb69e6a73f3ec5bb9c77
4+
config_hash: 7a70007089f586cc7b1ebd1808030dd1

CHANGELOG.md

Lines changed: 141 additions & 0 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 18 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ The Cloudflare Python library provides convenient access to the Cloudflare REST
77
application. The library includes type definitions for all request params and response fields,
88
and offers both synchronous and asynchronous clients powered by [httpx](https://github.com/encode/httpx).
99

10+
It is generated with [Stainless](https://www.stainless.com/).
11+
12+
## MCP Server
13+
14+
Use the Cloudflare MCP Server to enable AI assistants to interact with this API, allowing them to explore endpoints, make test requests, and use documentation to help integrate this SDK into your application.
15+
16+
[![Add to Cursor](https://cursor.com/deeplink/mcp-install-dark.svg)](https://cursor.com/en-US/install-mcp?name=cloudflare-mcp&config=eyJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsImNsb3VkZmxhcmUtbWNwIl19)
17+
[![Install in VS Code](https://img.shields.io/badge/_-Add_to_VS_Code-blue?style=for-the-badge&logo=data:image/svg%2bxml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIGZpbGw9Im5vbmUiIHZpZXdCb3g9IjAgMCA0MCA0MCI+PHBhdGggZmlsbD0iI0VFRSIgZmlsbC1ydWxlPSJldmVub2RkIiBkPSJNMzAuMjM1IDM5Ljg4NGEyLjQ5MSAyLjQ5MSAwIDAgMS0xLjc4MS0uNzNMMTIuNyAyNC43OGwtMy40NiAyLjYyNC0zLjQwNiAyLjU4MmExLjY2NSAxLjY2NSAwIDAgMS0xLjA4Mi4zMzggMS42NjQgMS42NjQgMCAwIDEtMS4wNDYtLjQzMWwtMi4yLTJhMS42NjYgMS42NjYgMCAwIDEgMC0yLjQ2M0w3LjQ1OCAyMCA0LjY3IDE3LjQ1MyAxLjUwNyAxNC41N2ExLjY2NSAxLjY2NSAwIDAgMSAwLTIuNDYzbDIuMi0yYTEuNjY1IDEuNjY1IDAgMCAxIDIuMTMtLjA5N2w2Ljg2MyA1LjIwOUwyOC40NTIuODQ0YTIuNDg4IDIuNDg4IDAgMCAxIDEuODQxLS43MjljLjM1MS4wMDkuNjk5LjA5MSAxLjAxOS4yNDVsOC4yMzYgMy45NjFhMi41IDIuNSAwIDAgMSAxLjQxNSAyLjI1M3YuMDk5LS4wNDVWMzMuMzd2LS4wNDUuMDk1YTIuNTAxIDIuNTAxIDAgMCAxLTEuNDE2IDIuMjU3bC04LjIzNSAzLjk2MWEyLjQ5MiAyLjQ5MiAwIDAgMS0xLjA3Ny4yNDZabS43MTYtMjguOTQ3LTExLjk0OCA5LjA2MiAxMS45NTIgOS4wNjUtLjAwNC0xOC4xMjdaIi8+PC9zdmc+)](https://vscode.stainless.com/mcp/%7B%22name%22%3A%22cloudflare-mcp%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22cloudflare-mcp%22%5D%7D)
18+
19+
> Note: You may need to set environment variables in your MCP client.
20+
1021
## Documentation
1122

1223
The REST API documentation can be found on [developers.cloudflare.com](https://developers.cloudflare.com/api). The full API of this library can be found in [api.md](api.md).
@@ -15,7 +26,7 @@ The REST API documentation can be found on [developers.cloudflare.com](https://d
1526

1627
```sh
1728
# install from PyPI
18-
pip install cloudflare
29+
pip install --pre cloudflare
1930
```
2031

2132
## Usage
@@ -79,7 +90,7 @@ You can enable this by installing `aiohttp`:
7990

8091
```sh
8192
# install from PyPI
82-
pip install cloudflare[aiohttp]
93+
pip install --pre cloudflare[aiohttp]
8394
```
8495

8596
Then you can enable it by instantiating the client with `http_client=DefaultAioHttpClient()`:
@@ -203,10 +214,11 @@ from cloudflare import Cloudflare
203214

204215
client = Cloudflare()
205216

206-
client.api_gateway.user_schemas.create(
207-
zone_id="023e105f4ecef8ad9ca31a8372d0c353",
208-
file=Path("/path/to/file"),
209-
kind="openapi_v3",
217+
client.kv.namespaces.values.update(
218+
key_name="My-Key",
219+
account_id="023e105f4ecef8ad9ca31a8372d0c353",
220+
namespace_id="0f2ac74b498b48028cb68387c421e279",
221+
value=Path("/path/to/file"),
210222
)
211223
```
212224

api.md

Lines changed: 258 additions & 102 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)