You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 7, 2024. It is now read-only.
Copy file name to clipboardExpand all lines: README.md
+55-27
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,39 @@
1
1
# cloudflare-python
2
2
3
+
> [!WARNING]
4
+
> Soon there will be two Python packages for accessing Cloudflare's API.
5
+
>
6
+
> 1. This original [package](https://github.com/cloudflare/python-cloudflare), which was initially introduced [here](https://blog.cloudflare.com/python-cloudflare/).
7
+
> 2. A ground-up rewrite of the SDK, released under `3.x`, at some point in the future. See [here](https://github.com/cloudflare/python-cloudflare/discussions/191)
8
+
>
9
+
> If you like using this package in it's present form, it is highly recommended that you pin to the `2.x` releases now.
10
+
>
11
+
> ```bash
12
+
> $ cat ${YOUR_PROJECT}/requirements.txt
13
+
> cloudflare==2.19.*
14
+
> $
15
+
>```
16
+
>
17
+
> For manual upgrades; the following will work cleanly:
18
+
>```bash
19
+
> $ pip install --upgrade cloudflare==2.19.*
20
+
> ...
21
+
> Successfully installed cloudflare-2.19.3
22
+
> $
23
+
24
+
> [!WARNING]
25
+
> Release `3.x` will not be code-compatible/call-compatible with previous releases (i.e. release `1.x` and `2.x`).
26
+
27
+
When you see this README complete change you will know that `3.x` has been released; however, until then, this code will be released under a `2.19.x` release number.
# An authenticated call using using a stored profile (see below)
236
-
cf = CloudFlare.CloudFlare(profile="CompanyX"))
263
+
# An authenticated call using using a stored profile (see below)
264
+
cf = CloudFlare.CloudFlare(profile="CompanyX"))
237
265
```
238
266
239
267
If the account email and API key are not passed when you create the class, then they are retrieved from either the users exported shell environment variables or the .cloudflare.cfg or ~/.cloudflare.cfg or ~/.cloudflare/cloudflare.cfg files, in that order.
0 commit comments