Skip to main content
Help us improve PyPI by participating in user testing. All experience levels needed!

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

Project details


Release history Release notifications

History Node

0.4.3

History Node

0.4.2

History Node

0.4.1

History Node

0.4.0

History Node

0.3.4

History Node

0.3.3

History Node

0.3.2

History Node

0.3.1

History Node

0.3.0

History Node

0.2.3

History Node

0.2.2

History Node

0.2.1

History Node

0.2.0

This version
History Node

0.0.2

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
pycloudflare-0.0.2.tar.gz (9.9 kB) Copy SHA256 hash SHA256 Source None Aug 5, 2015

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page