Skip to main content

a2a-wrapper

a2a-wrapper is a lightweight helper layer for exposing custom agents as A2A servers and consuming A2A agents through the official Python a2a-sdk.

It is designed for teams who want a faster path from agent logic to an A2A-compatible service without rewriting the same request parsing, task response, and client plumbing every time.

What it includes

  • src/a2a_wrapper/
    • installable package with client and server APIs
  • examples/
    • ready-to-run LangChain and CrewAI sample servers
  • tests/
    • helper tests and an optional end-to-end smoke test

Install

Base install:

pip install -e .

Optional extras:

pip install -e .[langchain]
pip install -e .[crewai]
pip install -e .[dev]

Quick example

from a2a_wrapper import (
    AgentCapability,
    AgentRequest,
    AgentServerConfig,
    ResponseContext,
    create_agent_server,
)


async def handler(request: AgentRequest, responder: ResponseContext) -> None:
    await responder.complete(f"Echo: {request.user_text}")


server = create_agent_server(
    config=AgentServerConfig(
        name="Echo Agent",
        description="Simple echo agent",
        host="0.0.0.0",
        port=10002,
    ),
    capabilities=[
        AgentCapability(
            capability_id="echo",
            name="Echo",
            description="Echoes user input",
        )
    ],
    handler=handler,
)

server.run()

Client example

import asyncio

from a2a_wrapper import AgentClient


async def main():
    async with AgentClient("http://localhost:10002") as client:
        reply = await client.send("Hello")
        print(reply.text)


asyncio.run(main())

Examples

See examples/README.md for exact run steps.

Docs

See DOCS.md for detailed LangChain, CrewAI, server, and client walkthroughs.

Testing

Run:

pytest

Notes:

  • unit tests work without a live A2A server
  • the smoke test runs only when a2a-sdk is installed and importable

Metadata

Release files for a2a-wrapper 0.2.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for a2a-wrapper 0.2.0
File Size Uploaded Provenance Actions
a2a_wrapper-0.2.0.tar.gz 12.8 kB With provenance Details for a2a_wrapper-0.2.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for a2a-wrapper 0.2.0
File Interpreter ABI Platform Actions
a2a_wrapper-0.2.0-py3-none-any.whl Python 3 none any Details for a2a_wrapper-0.2.0-py3-none-any.whl

Total release size: 24.5 kB

Release files / a2a_wrapper-0.2.0.tar.gz

Download URL a2a_wrapper-0.2.0.tar.gz
Size 12.8 kB
Tags Source
SHA-256 checksum
How to use checksums
f47a60d80c5aa8425bfc85553c25276788f8b555bb86c15d0f37d297cb47d32e
BLAKE2b-256 checksum
How to use checksums
417c82750da44273d2dd3cdd52fa5e228a30e716161dc93ab0e7a74e768d9e07
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 Apr 5, 2026.

Transparency log

Release files / a2a_wrapper-0.2.0-py3-none-any.whl

Download URL a2a_wrapper-0.2.0-py3-none-any.whl
Size 11.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
b6c72d204b4cdbc435b56e787705f5473a6969d6df618f90ae1f5bacd28cf97a
BLAKE2b-256 checksum
How to use checksums
1391cc493042feb5ce0edcc88c3683cee308fe7da45fb37b96f29afc3dac796d
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 Apr 5, 2026.

Transparency log

Security for a2a-wrapper 0.2.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

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for a2a_wrapper-0.2.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 Apr 5, 2026.

Transparency log

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.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page