Skip to main content

Python client for CloudFlare.

Project description

Build Status

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


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.1.tar.gz (11.9 kB view details)

Uploaded Source

File details

Details for the file pycloudflare-0.3.1.tar.gz.

File metadata

File hashes

Hashes for pycloudflare-0.3.1.tar.gz
Algorithm Hash digest
SHA256 4df227882cecefc045e3a0e1a9532116247a1396ab7591a532dbc91f0b2454e0
MD5 cd71e5f2e3a0326855d0ce25c28d6e50
BLAKE2b-256 6229a2d0fdab4c9189ed0dbf09a7b8363f8e6c76b81b319c134935466fd07853

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page