a2ea-py
Official Python SDK for sending A2EA telemetry to the backend.
Install
pip install a2ea-py
Quickstart
from a2ea import A2EAClient
client = A2EAClient(
api_key="your X-A2EA-API-Key"
)
@client.track_agent(task_type="data_processing")
def run_agent(payload):
return process(payload)
Optional configuration
base_url- Defaults to
https://aimodularity.com - Set this when testing locally against
http://127.0.0.1:4080
- Defaults to
agent_id- Optional override if you want to assign a fixed agent identifier instead of the default host/process-based value
Example for local development:
from a2ea import A2EAClient
client = A2EAClient(
api_key="your X-A2EA-API-Key",
base_url="http://127.0.0.1:4080",
agent_id="agent_pipeline_014",
)
What the client sends
Each tracked function call produces:
eventIdagentIdtimestampdurationMstaskTypeoutcomeverification
The verification payload is signed locally with HMAC-SHA256 using the workspace API key so the backend can verify the telemetry envelope.
Reliability behavior
- submission runs in a background thread
- transient failures are retried with backoff
- exhausted events are retained in a local fallback buffer
Local package test commands
python -m unittest discover tests
python -m build
pip install dist/a2ea_py-0.1.0-py3-none-any.whl
Metadata
Release files for a2ea-py 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 | |
|---|---|---|---|---|
| a2ea_py-0.1.0.tar.gz | 5.8 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| a2ea_py-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 11.4 kB
Release files / a2ea_py-0.1.0.tar.gz
| Download URL | a2ea_py-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d9a12162e18e2fe095ddb8b2bcd44bcf2d793f4371782ef58edac578fd19e7d0
|
|
BLAKE2b-256 checksum How to use checksums |
f7fd0bcf2902a699f99173702d782a5d552d2e2a3ddea32d64282ba234261962
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Release files / a2ea_py-0.1.0-py3-none-any.whl
| Download URL | a2ea_py-0.1.0-py3-none-any.whl |
|---|---|
| Size | 5.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
149bbcea53bf618d6c087f228e4e79bf297986d37c1c6db9f49b157026186f9f
|
|
BLAKE2b-256 checksum How to use checksums |
e31a8cf4e831c8270b8a3948825c5504b7a23440ab33a2c8082d110667b67054
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.13.2
|
Security for a2ea-py 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.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A 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.
To learn more about protecting yourself from malicious actors, visit our package security documentation.