basicami
AsyncIO-based Asterisk Manager Interface (AMI) client for Python.
Companion to basicagi.
Install
pip install basicami
Usage
import asyncio
from basicami import BasicAMI
async def main():
ami = await BasicAMI.connect("localhost", 5038, "admin", "secret")
# Send any AMI action
resp = await ami.send_action({"Action": "Ping"})
print(resp)
# Originate a call
resp = await ami.originate(
channel="Local/100@from-internal",
application="Wait",
data="30",
caller_id="Test <15550099999>",
timeout=30,
)
# Collect events
events = await ami.get_events(timeout=2.0)
for event in events:
print(event)
await ami.close()
asyncio.run(main())
Marker Parsing
Includes a marker parser for Asterisk Verbose/Log markers used in PBX testing:
from basicami import parse_marker, MarkerTrace
marker = parse_marker("SBC_ENTER: 001D tenant=001D-dev-testing")
print(marker.name) # "SBC_ENTER"
print(marker.context) # "001D"
print(marker.kv) # {"tenant": "001D-dev-testing"}
License
MIT
Metadata
Release files for basicami 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| basicami-0.1.0.tar.gz | 6.7 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| basicami-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / basicami-0.1.0.tar.gz
| Download URL | basicami-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6a33e8a2dd8e0ee58b8fc12902c25be1a146269f9ddaa570e0cf1f2a0e072f2e
|
|
BLAKE2b-256 checksum How to use checksums |
210e4c355e11aa58fb591c55c27ed1be3d077597aa21c8521701804aeee8666a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logRelease files / basicami-0.1.0-py3-none-any.whl
| Download URL | basicami-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9247642903172e7a1fa546d21d9ae022f86637da0343524dad01e92f55144cc1
|
|
BLAKE2b-256 checksum How to use checksums |
588e79635b49f06a42ac6e62ea3fb969c13704e7f19785342e3f4087463857fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logSecurity for basicami 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for basicami-0.1.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Mar 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.