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
Two methods are provided to install this software. Use PyPi (see [package](https://pypi.python.org/pypi/cloudflare) details) or GitHub (see [package](https://github.com/cloudflare/python-cloudflare) details).
5
+
Two methods are provided to install this software.
6
+
Use PyPi (see [package](https://pypi.python.org/pypi/cloudflare) details) or GitHub (see [package](https://github.com/cloudflare/python-cloudflare) details).
6
7
7
8
### Via PyPI
8
9
9
10
```bash
10
-
$ sudo pip install cloudflare
11
-
$
11
+
$ sudo pip install cloudflare
12
+
$
12
13
```
13
14
14
15
Yes - that simple! (the sudo may not be needed in some cases).
The CloudFlare API can be found [here](https://api.cloudflare.com/). Each API call is provided via a similarly named function within the _CloudFlare_ class. A full list is provided below.
32
+
The CloudFlare API can be found [here](https://api.cloudflare.com/).
33
+
Each API call is provided via a similarly named function within the _CloudFlare_ class.
34
+
A full list is provided below.
31
35
32
36
## Getting Started
33
37
@@ -37,19 +41,19 @@ A very simple listing of zones within your account; including the IPv6 status of
Extra API calls can be added via the configuration file
367
373
```bash
368
-
$ cat ~/.cloudflare/cloudflare.cfg
374
+
$ cat ~/.cloudflare/cloudflare.cfg
369
375
[CloudFlare]
370
376
extras=
371
-
/client/v4/command
372
-
/client/v4/command/:command_identifier
373
-
/client/v4/command/:command_identifier/settings
377
+
/client/v4/command
378
+
/client/v4/command/:command_identifier
379
+
/client/v4/command/:command_identifier/settings
374
380
$
375
381
```
376
382
@@ -390,11 +396,20 @@ The following error can be caused by an out of date SSL/TLS library and/or out o
390
396
391
397
The solution can be found [here](https://urllib3.readthedocs.org/en/latest/security.html#insecureplatformwarning) and/or [here](http://stackoverflow.com/questions/35144550/how-to-install-cryptography-on-ubuntu).
392
398
399
+
## Python 2.x vs 3.x support
400
+
401
+
As of May/June 2016 the code is now tested againt pylint.
402
+
This was required in order to move the codebase into Python 3.x.
403
+
The motivation for this came from [Danielle Madeley (danni)](https://github.com/danni).
404
+
405
+
While the codebase has been edited to run on Python 3.x, there's not been enough Python 3.x testing performed.
406
+
If you can help in this regard; please contact the maintainers.
407
+
393
408
## Credit
394
409
395
-
This is based on work by [Felix Wong (gnowxilef)](https://github.com/gnowxilef) found [here](https://github.com/cloudflare-api/python-cloudflare-v4). It has been seriously expanded upon.
410
+
This is based on work by [Felix Wong (gnowxilef)](https://github.com/gnowxilef) found [here](https://github.com/cloudflare-api/python-cloudflare-v4).
411
+
It has been seriously expanded upon.
396
412
397
413
## Copyright
398
414
399
415
Portions copyright [Felix Wong (gnowxilef)](https://github.com/gnowxilef) 2015 and CloudFlare 2016.
0 commit comments