Fastly Python Client
|
||
---|---|---|
bin | ||
fastly | ||
test | ||
.gitignore | ||
LICENSE | ||
README.md | ||
setup.py |
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.