Skip to main content

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

atccondition-0.6-py3-none-any.whl (8.2 kB view hashes)

Uploaded Python 3

Supported by

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