A client for the Akamai Fast Purge API
Project description
A Python client for the Akamai Fast Purge API.
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.
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
Built Distribution
File details
Details for the file fastpurge-1.0.5.tar.gz
.
File metadata
- Download URL: fastpurge-1.0.5.tar.gz
- Upload date:
- Size: 20.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 74499c36be7372ee63bf694d61b0c85b6877d15830be4cfe2918f4baec2a0803 |
|
MD5 | 2b16ed8563d17cb7f5c095bcb7576241 |
|
BLAKE2b-256 | 1acbce1f5cde8804f70cdc6ef56e3d1ad562d2c7a6a782a03b3e71434f1bd060 |
File details
Details for the file fastpurge-1.0.5-py3-none-any.whl
.
File metadata
- Download URL: fastpurge-1.0.5-py3-none-any.whl
- Upload date:
- Size: 20.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.0.0 CPython/3.11.8
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 0e8c082afca8d4fd289963a59b4ba022704263b271117bac18b7d8bd768b0b9f |
|
MD5 | 00bdc7b710652a6a8aeb04a6402bb8a2 |
|
BLAKE2b-256 | d26e5b6b9623f47f7092233114bceba8103d350ff01af11f7f272b8bb2e157c4 |