跳转到主要内容

Akamai Fast Purge API客户端

项目描述

一个用于Akamai Fast Purge API的Python客户端。

Build Status codecov Maintainability

这个库为Fast Purge API提供了一个简单的异步Python包装器。功能包括

  • 方便处理认证
  • 从错误中恢复
  • 将大请求分割成小块

安装

从PyPI安装fastpurge包。

pip install fastpurge

使用示例

假设有一个根据Akamai文档配置的有效的~/.edgerc文件

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)

许可证

本程序是自由软件:您可以根据自由软件基金会发布的GNU通用公共许可证的条款重新分发和/或修改它,许可证版本为3,或者(根据您的选择)任何后续版本。

项目详情


下载文件

下载适用于您平台的文件。如果您不确定选择哪个,请了解更多关于安装包的信息。

源分发

fastpurge-1.0.5.tar.gz (20.5 kB 查看哈希值)

上传时间

构建分发

fastpurge-1.0.5-py3-none-any.whl (20.2 kB 查看哈希值)

上传时间 Python 3

AWS AWS 云计算和安全赞助商 Datadog Datadog 监控 Fastly Fastly CDN Google Google 下载分析 Microsoft Microsoft PSF 赞助商 Pingdom Pingdom 监控 Sentry Sentry 错误日志 StatusPage StatusPage 状态页面