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 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.

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.6.tar.gz (20.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fastpurge-1.0.6-py3-none-any.whl (20.3 kB view details)

Uploaded Python 3

File details

Details for the file fastpurge-1.0.6.tar.gz.

File metadata

  • Download URL: fastpurge-1.0.6.tar.gz
  • Upload date:
  • Size: 20.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for fastpurge-1.0.6.tar.gz
Algorithm Hash digest
SHA256 650ca73b28e64d46a198e3d7ea3f7ee79bfd0404a3030d057addd11e79ef80e3
MD5 86618cf803a2fe05ba34525e2cb1d423
BLAKE2b-256 2618358441868c580f10282496668c399863a9277e171efca20c5684fd1bc72d

See more details on using hashes here.

File details

Details for the file fastpurge-1.0.6-py3-none-any.whl.

File metadata

  • Download URL: fastpurge-1.0.6-py3-none-any.whl
  • Upload date:
  • Size: 20.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.11.13

File hashes

Hashes for fastpurge-1.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 fbeb2aa84fb6c890c80bbab2a00da89100a267deaa0e0fd0a995ab1176ee709b
MD5 866bb203b208044c8025ce07bbb19d66
BLAKE2b-256 b3169126da4f4570e693feab16517a8050152b10608c5663609b403406b62516

See more details on using hashes here.

Supported by

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