Python client for CloudFlare.
Project description
pycloudflare
============
[![Build Status](https://travis-ci.org/yola/pycloudflare.svg)](https://travis-ci.org/yola/pycloudflare)
A Python client for CloudFlare
## Usage
Get all our zones at CloudFlare
```python
>>> cf = CloudFlareService()
>>> for domain in cf.get_zones():
>>> print domain['name'], domain['id']
```
## Configuration
The Host (Partner) API service client is configured when it is
instantiated and reads its configuration from `configuration.json`.
The configuration file should be in the format:
```json
{
"common": {
"cloudflare": {
"api_key": "HOST API KEY HERE",
}
}
}
```
## Testing
Install development requirements:
pip install -r requirements.txt
Tests can then be run by doing:
nosetests
The integration tests require a host API key. They can be run with:
nosetests tests/test_integration.py
============
[![Build Status](https://travis-ci.org/yola/pycloudflare.svg)](https://travis-ci.org/yola/pycloudflare)
A Python client for CloudFlare
## Usage
Get all our zones at CloudFlare
```python
>>> cf = CloudFlareService()
>>> for domain in cf.get_zones():
>>> print domain['name'], domain['id']
```
## Configuration
The Host (Partner) API service client is configured when it is
instantiated and reads its configuration from `configuration.json`.
The configuration file should be in the format:
```json
{
"common": {
"cloudflare": {
"api_key": "HOST API KEY HERE",
}
}
}
```
## Testing
Install development requirements:
pip install -r requirements.txt
Tests can then be run by doing:
nosetests
The integration tests require a host API key. They can be run with:
nosetests tests/test_integration.py
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
pycloudflare-0.0.2.tar.gz
(9.9 kB
view details)
File details
Details for the file pycloudflare-0.0.2.tar.gz
.
File metadata
- Download URL: pycloudflare-0.0.2.tar.gz
- Upload date:
- Size: 9.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f2a4ff591acaa7d1db45e067db14efde258b11d2897c2f4127cf3d8ee87f131a |
|
MD5 | 26070839cea1ccc1d145b8e17b2710e4 |
|
BLAKE2b-256 | 7fd29bf5d70feb6cd630daff548668cca909e0aa1c54f7bfda324ee8dfc18a48 |