Skip to main content

A Python client for the Akamai Fast Purge API.

Build Status codecov 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

Installation

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(['https://example.com/resource1', 'https://example.com/resource2'])

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

License

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.

Release files for fastpurge 1.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for fastpurge 1.0.6
File Size Uploaded
fastpurge-1.0.6.tar.gz 20.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for fastpurge 1.0.6
File Interpreter ABI Platform
fastpurge-1.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 41.0 kB

Release files / fastpurge-1.0.6.tar.gz

Download URL fastpurge-1.0.6.tar.gz
Size 20.7 kB
Tags Source
SHA-256 checksum
How to use checksums
650ca73b28e64d46a198e3d7ea3f7ee79bfd0404a3030d057addd11e79ef80e3
BLAKE2b-256 checksum
How to use checksums
2618358441868c580f10282496668c399863a9277e171efca20c5684fd1bc72d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release files / fastpurge-1.0.6-py3-none-any.whl

Download URL fastpurge-1.0.6-py3-none-any.whl
Size 20.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
fbeb2aa84fb6c890c80bbab2a00da89100a267deaa0e0fd0a995ab1176ee709b
BLAKE2b-256 checksum
How to use checksums
b3169126da4f4570e693feab16517a8050152b10608c5663609b403406b62516
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.11.13

Release history Release notifications | RSS feed

This release

1.0.6 This release

2 release files

1.0.5

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

1 release file

1.0.1

1 release file

1.0.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page