Fastly Python Client
This repository has been archived on 2025-05-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Find a file
Michael May 1d6b755a31 Merge pull request from kshay/master
Fix setup.py to reflect renamed README.md
2014-09-24 11:06:33 -07:00
bin reorganize scripts 2014-05-10 19:36:31 +02:00
fastly require key authentication for purge_by_key 2014-09-15 10:49:11 -07:00
test require key authentication for purge_by_key 2014-09-15 10:49:11 -07:00
.gitignore initial 2012-02-07 03:55:05 -08:00
LICENSE MIT License 2014-01-06 13:53:13 -08:00
README.md add link to package docs 2014-09-23 16:46:17 -07:00
setup.py Fix setup.py to reflect renamed README.md 2014-09-24 13:35:02 -04:00

Fastly Python Client

fastly-py is available through pip as the fastly package

There are three simple scripts provided in /bin that can be used for various stand-alone purge operations.

Usage

import fastly
api = fastly.API()
api.authenticate_by_key('MYKEY')
api.purge_url('www.example.com', '/some/path')

TODO:

Doc files Docstrings Config file

Running Tests

$ python -m test.api_test

Distributing a package

$ python setup.py register

Builds and uploads to PyPi. More info on this at the python site. You will need to be granted access to the fastly package in order to push.