Python client for CloudFlare.
Project description
A Python client for CloudFlare
Usage
Get all our zones at CloudFlare
>>> 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:
{
"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.3.3.tar.gz
(12.3 kB
view details)
File details
Details for the file pycloudflare-0.3.3.tar.gz
.
File metadata
- Download URL: pycloudflare-0.3.3.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b574433990341f99ac123201f85da135df6412cbde701a9d12acd45596e53e21 |
|
MD5 | f8109bf32bb0c057d1ff93d229fe2b9d |
|
BLAKE2b-256 | 9cbdae84c63ca08ff77be4102dc9c46c03e236165380d503d3e7c467fcc4f69b |