Skip to main content

A Python Interface to Asterisk

Project description

caret consists of a set of interfaces and libraries to allow programming of Asterisk from Python. The library currently supports AGI, AMI, and the parsing of Asterisk configuration files. The library also includes debugging facilities for AGI.

This project provides a single library for all Asterisk based needs of Python users and an easy transition to Python for PHP users from the PHPAGI package.

Installation

Using Python

To install caret, simply run:

$ pip install caret

On Debian/Ubuntu

(Under development)

This will install the latest version of the library automatically.

Documentation

Documentation is still under development and parts of it are hosted on https://ar13pit.github.io/caret/

Use Python docstrings for time being using Python’s built-in help facility:

import caret
help (caret)
import caret.agi
help (caret.agi)
import caret.manager
help (caret.manager)
import caret.config
help (caret.config)

Some notes on platforms: We now specify “platforms = ‘Any’” in setup.py. This means, the manager part of the package will probably run on any platform. The agi scripts on the other hand are called directly on the host where Asterisk is running. Since Asterisk doesn’t run on windows platforms (and probably never will) the agi part of the package can only be run on Asterisk platforms.

Credits

Thanks to Karl Putland for writing the original pyst package and Matthew Nicholson for maintaining it for some years.

Thanks to Randall Degges for maintaining the pyst2 fork and accepting pull requests for some years.

Thanks to Arpit Aggarwal for carrying the development forward and starting the caret project.

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

caret-0.1.1-py2.py3-none-any.whl (22.2 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file caret-0.1.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for caret-0.1.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 3c68219d71dcabc1120a281c31f6339d9f22afdf3e812b6b2f620c201766fe4b
MD5 42b1871553322aa393ecb0570973e14a
BLAKE2b-256 bb04afaca166bf624afb80984a7c077d5efffbe14439b02c0991d91a1a925db3

See more details on using hashes here.

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