Skip to main content
This is a pre-production deployment of Warehouse. Changes made here affect the production instance of PyPI (
Help us improve Python packaging - Donate today!

Python wrapper around the deprecated Andrews & Arnold API

Project Description

Andrews & Arnold API wrapper for Python 3.5+

Deprecation warning

The original Chaos API is deprecated and this library will see no more development as a result. Please see Chaos2 for an equivalent library for the replacement API.

This package will allow you to access the original, deprecated Chaos API. Use cases could include scripts to monitor your data, VoIP or SIP2SIM usage.


  • Python 3.5 or later
  • Python-Requests (will be installed automatically using pip)


pip install aaispy


import aaispy

aa = aaispy.Chaos("username", "password") # use your normal credentials for

Methods correspond to “commands” as defined in the API documentation, and any arguments are passed as JSON to the API. The method name is passed as the “command” parameter of the JSON object, and it will override any “command” argument set manually. # lists all the services associated to your account
aa.usage(sim={"ID": "1234"}) # displays call/SMS records for a particular SIM based in its ICCID
aa.usage(voip={"ID": "+44..."}) # same but for a VoIP line based on its phone number


A very basic test suite is included. You need to be able to reach the API server for the tests to succeed.

python test


Copyright (c) 2016 Andre Borie.

Released under the MIT license.

Release History

Release History

This version
History Node


History Node


History Node


Download Files

Download Files

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

File Name & Checksum SHA256 Checksum Help Version File Type Upload Date (7.3 kB) Copy SHA256 Checksum SHA256 Source Oct 14, 2016

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting