Skip to main content

Python bindings for Asterisk Manager Interface and Asterisk Gateway Interface

Project description

pystrix is an attempt at creating a versatile Asterisk-interface package for AMI and (Fast)AGI needs. It is published as an open-source library under the LGPLv3 by Ivrnet, inc., welcoming contributions from all users.


pystrix runs on python 2.7/python 3.4+ on any platform. It’s targeted at Asterisk 1.10+ and provides a rich, easy-to-extend set of bindings for AGI, FastAGI, and AMI.

Release Schedule

The current code in the repository correspond to version 1.1.8 of the package. When a bug is found and fixed a new version of the package will be generated in order to keep it updated and as bug-free as possible.

New releases will follow the format: <release mayor>.<release minor>.<bug fixed> according to the change made to the code.


After some research, we found that what was available was either incompatible with the architecture model we needed to work with Twisted, (while excellent for a great many things, isn’t always the right choice), was targeting an outdated version of Asterisk, or had a very rigid, monolithic design. Identifying the pyst and py-asterisk packages as being similar, but structurally incompatible, to what we wanted, pyst was chosen as the basis for this project, with a full rewrite of its AGI and AMI systems to provide a uniform-looking, highly modular design that incorporates logic and ideas from py-asterisk. The end result is a package that should satisfy anyone who was looking at either of its ancestors and that should be easier to extend as Asterisk continues to evolve.


  • From pip

$ pip install pystrix
  • From github

$ pip install -e git://


Detailed usage information is provided in the documentation, along with simple examples that should help to get anyone started.


Online documentation is available at

Inline documentation is complete and made readable by reStructuredText, so you’ll never be completely lost.


Ivrnet, inc.
  • Initial development of pystrix was funded by Ivrnet

  • Ivrnet is a software-as-a-service company that develops and operates intelligent software applications, delivered through traditional phone networks and over the Internet. These applications facilitate automated interaction, personalized communication between people, mass communication for disseminating information to thousands of people concurrently, and personalized communication between people and automated systems. Ivrnet’s applications are accessible through nearly any form of communication technology, at any time, from anywhere in North America, via voice, phone, fax, email, texting, and the Internet.

Neil Tallim
  • Development lead

  • Programming

Other contributions and current package maintenance

Marta Solano
  • Bug solving - Programming

  • Pip package maintenance

Eric Lee
  • Python 2 to 3 migration - compatibility

  • Programming

Karthic Raghupathi
  • Bug solving - Programming

  • Pip package maintenance

Project details

Download files

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

Source Distribution

pystrix-1.2.0.tar.gz (70.6 kB view hashes)

Uploaded Source

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