Skip to main content

Fastly python API

Project description

## 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.purge_url('', '/some/path')

### TODO:

Doc files
Config file

### Running Tests

$ python -m test.api_test

#### Set up environment configuration
We use Python's [os]( and a `.env` file to manage environment variables in development and test environments. See the list of required environment variables in the `.env.example` file in the root directory.

To optionally set values for testing, make a copy of `.env.example` and name it `.env`.

cp .env.example .env

# Note:
# If using direnv, you can just use it as a `.envrc` file and not have to `source` it manually.

# Using your favorite editor, update the values of the environment variables in `.env` and then

source .env

### Distributing a package

$ python register

Follow the prompts to create an account or login. The `register` command also ensures that your account has access to the fastly package on PyPi.

$ python sdist upload

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.

Project details

Download files

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

Files for fastly, version 0.2.3
Filename, size File type Python version Upload date Hashes
Filename, size fastly-0.2.3-py3-none-any.whl (8.6 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fastly-0.2.3.tar.gz (4.6 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page