Skip to main content

Interact with AKA through Python

Project description


Misc scripts and libraries to run junk against aka

Using this on your own

Use this module with the following in your script

import logging
from akapy import Colorer
from akapy.helpers import CredentialParser, cidr_to_netmask, is_pingable, wait_until_it_pings
from akapy.aka import Api

if os.environ.has_key('AKA_BASE_URL'):
    AKA_BASE = os.environ['AKA_BASE_URL']
    AKA_BASE = ""

cred_parser = CredentialParser(AKA_BASE)
cred = cred_parser.import_credentials()
AKA = Api(AKA_BASE, cred)


Make sure you have ~/.akarc set up like this:

    user = joeuser
    key = 11111111-2222-3333-4444-555555555555

    user = joeuser
    key = aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee

The script will default to using ''. If you would like to change it to test (or any other URL), set your environment variable

export AKA_BASE_URL=

Project details

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for python-aka, version 0.0.9
Filename, size File type Python version Upload date Hashes
Filename, size python-aka-0.0.9.tar.gz (8.3 kB) File type Source Python version None Upload date Hashes View

Supported by

Pingdom Pingdom Monitoring Google Google Object Storage and Download Analytics Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page