A Pip Package for Akamai Test Center Condition
Project description
A Python Class for Akamai Test Center Conditions
An Object oriented implementation of ATC Condition. Akamai Condition class helps application developers in not knowing about the API calls and their usage.
Credentials
In order to use this configuration, you need to:
- Set up your credential files as described in the authorization and credentials sections of the getting started guide on developer.akamai.com.
- When working through this process you need to give grants for the property manager API and the User Admin API (if you will want to move properties). The section in your configuration file should be called 'default'.
Overview
An Object oriented implementation of ATC Condition. Akamai Condition class helps application developers in not knowing about the API calls and their usage.
Install Dependencies If you are using source code.
$ pip install -r requirements.txt
Install pip package available
$ pip install atccondition
Instantiate the object.
>>> from atccondition import ATCCondition
>>> atcCondition = ATCCondition("/Users/apadmana.edgerc","<accountSwitchKey>")
Create Response Code condition
>>> atcCondition.responseCode([200,401])
12345
Create a new version
>>> atcCondition.redirect([301,302],'redirect.akamai.com')
12355
Class Definition
class ATCCondition():
def __init__(self,edgercLocation,accountSwitchKey=None):
def listConditions(self)
def deleteCondition(self,conditionId)
def deleteAllConditions(self)
def responseCode(self,responsecodelist)
def redirect(self,redirect_code_list,location)
def tieredDistribution(self,isenabled)
def logHeader(self,headerName,isenabled)
def cookiesLogged(self,isenabled,cookieName=None)
def lastMileAcceleration(self,isgzipped)
def cache(self,option,ttl=None)
def responseHeaderExists(self,headerName)
def responseHeaderDoesNotExist(self,headerName)
def responseHeaderHasNoValue(self,headerName)
def getHasValueCondition(self,isHeader,varname,operator,varvalue)
def responseHeaderBeginsWith(self,headerName,headerValue)
def responseHeaderDoesntNotBeginWith(self,headerName,headerValue)
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
File details
Details for the file atccondition-0.6-py3-none-any.whl
.
File metadata
- Download URL: atccondition-0.6-py3-none-any.whl
- Upload date:
- Size: 8.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.3.0 requests-toolbelt/0.9.1 tqdm/4.49.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f33e7078570d0b0d5ebf8926774688450e0d3babc43010146b153a49837cb8bc |
|
MD5 | bf7e010e720b2f4159ea3b063fdc58d6 |
|
BLAKE2b-256 | 79d604bc253dd96d095a134b38090f82bbad11675b1080f570e4b61dafad887a |