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.
fastly-py/README.md

38 lines
736 B
Markdown
Raw Permalink Normal View History

2014-09-23 16:38:32 -07:00
## Fastly Python Client
fastly-py is available through `pip` as the [fastly](https://pypi.python.org/pypi/fastly) package
There are three simple scripts provided in `/bin` that can be used for various stand-alone purge operations.
### Usage
```python
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
```
2014-09-23 16:46:17 -07:00
Builds and uploads to PyPi. More info on this at the [python site](https://docs.python.org/2/distutils/packageindex.html).
You will need to be granted access to the fastly package in order to push.
2014-09-23 16:38:32 -07:00