python-ccuapiPython wrapper around Akamai's Content Control Utility API | |
Download |
python-ccuapi Ranking & Summary
Advertisement
- License:
- BSD License
- Price:
- FREE
- Publisher Name:
- Daniel Ryan
- Publisher web site:
- http://dryan.com
python-ccuapi Tags
python-ccuapi Description
python-ccuapi is a Python wrapper around Akamai ccuapi.Hat tip to https://github.com/beathan/django-akamai for inspiring the code.CredentialsCredentials can be provided in 1 of 3 ways: AKAMAI_USERNAME and AKAMAI_PASSWORD environment variables. A .akamai config file in the user's home directory. (https://github.com/dryan/python-ccuapi/blob/master/.akamai.sample) Passing username and password kwargs to ccuapi.purge.PurgeRequest on initialization.Email NotificationsOne or more comma-separated email addresses may be set to receive notifications when a content purge is complete. These are provided in 1 of 3 ways: AKAMAI_NOTIFY_EMAIL environment variable. In the .akamai config file. Passing email kwarg to ccuapi.purge.PurgeRequest on initialization.Usage from ccuapi.purge import PurgeRequest purger = PurgeRequest() purger.add('http://domain.com') # this can be a string, list of strings, Django QuerySet or Django object with the get_absolute_url method defined results = purger.purge() # returns a list of responses from Akamai, 1 per 100 URLs sentCommand Line Usage ccu_purge http://domain.comRun ccu_purge -h for additional options.Product's homepage
python-ccuapi Related Software