Python client for the Cloudflare v4 API
Project description
pycf
Python client for Cloudflare API v4
Using pip
pip install cloudflare-api
Sample code can be found inside /test.py
Usage from source
git clone https://github.com/nikhiljohn10/pycf
cd pycf
Create a secret.py
in the root directory with following content:
API_TOKEN = ""
ACCOUNT_ID = ""
The above variable need to be assigned with your own api token and account id from Cloudflare dashboard.
Then run the following command in terminal:
make test
Available endpoints
Worker Script
- list - List all existing workers
- upload - Upload a new worker with binding if given
- download - Download an existing worker
- delete - Delete an existing worker
Workers KV
- list - List all existing Namespaces
- id - Find the namespace id of the namespace
- create - Create a new namespace
- rename - Rename an existing namespace
- delete - Delete an existing namespace
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
cloudflare-api-1.0.2.tar.gz
(4.7 kB
view hashes)
Built Distribution
Close
Hashes for cloudflare_api-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c33a5c2b3cd9d2908df4736b732f30703ed7e3732bff46bb7c5cc17bbd97ef78 |
|
MD5 | 8aca00934622d61a2599f510805445d1 |
|
BLAKE2b-256 | 27c180e922715a1e9ce545f90990048fb74fe6f349b234858601d83e083fb69a |