Skip to main content

A client for the Akamai Fast Purge API

Project description

A Python client for the Akamai Fast Purge API.

Build Status Coverage Status Maintainability

This library provides a simple asynchronous Python wrapper for the Fast Purge API. Features include:

  • convenient handling of authentication
  • recovery from errors
  • splitting large requests into smaller pieces


Install the fastpurge package from PyPI.

pip install fastpurge

Usage Example

Assuming a valid ~/.edgerc file prepared with credentials according to Akamai's documentation:

from fastpurge import FastPurgeClient

# Omit credentials to read from ~/.edgerc
client = FastPurgeClient()

# Start purge of some URLs
purged = client.purge_by_url(['', ''])

# purged is a Future, if we want to ensure purge completed
# we can block on the result:
result = purged.result()
print("Purge completed:", result)


This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

Project details

Download files

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

Source Distribution

fastpurge-1.0.1.tar.gz (19.7 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page