{"id":29007107,"url":"https://github.com/a2aproject/a2a-python","last_synced_at":"2026-03-05T04:34:34.564Z","repository":{"id":293309226,"uuid":"980428225","full_name":"a2aproject/a2a-python","owner":"a2aproject","description":"Official Python SDK for the Agent2Agent (A2A) Protocol","archived":false,"fork":false,"pushed_at":"2025-06-23T12:55:09.000Z","size":1032,"stargazers_count":536,"open_issues_count":25,"forks_count":115,"subscribers_count":14,"default_branch":"main","last_synced_at":"2025-06-23T19:50:15.038Z","etag":null,"topics":["agents","generative-ai","google"],"latest_commit_sha":null,"homepage":"https://goo.gle/a2a-python-sdk","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/a2aproject.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-09T05:42:15.000Z","updated_at":"2025-06-23T14:11:29.000Z","dependencies_parsed_at":"2025-05-27T20:44:32.275Z","dependency_job_id":"4fdaa39e-53d7-4b37-82fb-cd24084499e6","html_url":"https://github.com/a2aproject/a2a-python","commit_stats":null,"previous_names":["google/a2a-python","google-a2a/a2a-python","a2aproject/a2a-python"],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/a2aproject/a2a-python","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2aproject%2Fa2a-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2aproject%2Fa2a-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2aproject%2Fa2a-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2aproject%2Fa2a-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/a2aproject","download_url":"https://codeload.github.com/a2aproject/a2a-python/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/a2aproject%2Fa2a-python/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261879271,"owners_count":23223736,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agents","generative-ai","google"],"created_at":"2025-06-25T13:01:52.751Z","updated_at":"2026-03-05T04:34:34.556Z","avatar_url":"https://github.com/a2aproject.png","language":"Python","funding_links":[],"categories":["Libraries by Language","⚙️ Implementations \u0026 Libraries","MCP Frameworks and libraries","🛠️ Tools \u0026 Libraries","A2A - Agent2Agent Protocol","📚 Official Documentation","🧩 Protocol Deep Dives"],"sub_categories":["Python","🏛️ Official A2A SDKs","🐍 Official SDKs","A2A (Agent-to-Agent Protocol)","A2A (Agent2Agent Protocol)"],"readme":"# A2A Python SDK\n\n[![License](https://img.shields.io/badge/License-Apache_2.0-blue.svg)](LICENSE)\n[![PyPI version](https://img.shields.io/pypi/v/a2a-sdk)](https://pypi.org/project/a2a-sdk/)\n![PyPI - Python Version](https://img.shields.io/pypi/pyversions/a2a-sdk)\n[![PyPI - Downloads](https://img.shields.io/pypi/dw/a2a-sdk)](https://pypistats.org/packages/a2a-sdk)\n[![Python Unit Tests](https://github.com/a2aproject/a2a-python/actions/workflows/unit-tests.yml/badge.svg)](https://github.com/a2aproject/a2a-python/actions/workflows/unit-tests.yml)\n\u003c!-- markdownlint-disable no-inline-html --\u003e\n\u003ca href=\"https://codewiki.google/github.com/a2aproject/a2a-python\"\u003e\n  \u003cimg src=\"https://www.gstatic.com/_/boq-sdlc-agents-ui/_/r/Mvosg4klCA4.svg\" alt=\"Ask Code Wiki\" height=\"20\"\u003e\n\u003c/a\u003e\n\n\u003cdiv align=\"center\"\u003e\n   \u003cimg src=\"https://raw.githubusercontent.com/a2aproject/A2A/refs/heads/main/docs/assets/a2a-logo-black.svg\" width=\"256\" alt=\"A2A Logo\"/\u003e\n   \u003ch3\u003e\n      A Python library for running agentic applications as A2A Servers, following the \u003ca href=\"https://a2a-protocol.org\"\u003eAgent2Agent (A2A) Protocol\u003c/a\u003e.\n   \u003c/h3\u003e\n\u003c/div\u003e\n\n\u003c!-- markdownlint-enable no-inline-html --\u003e\n\n---\n\n## ✨ Features\n\n- **A2A Protocol Compliant:** Build agentic applications that adhere to the Agent2Agent (A2A) Protocol.\n- **Extensible:** Easily add support for different communication protocols and database backends.\n- **Asynchronous:** Built on modern async Python for high performance.\n- **Optional Integrations:** Includes optional support for:\n  - HTTP servers ([FastAPI](https://fastapi.tiangolo.com/), [Starlette](https://www.starlette.io/))\n  - [gRPC](https://grpc.io/)\n  - [OpenTelemetry](https://opentelemetry.io/) for tracing\n  - SQL databases ([PostgreSQL](https://www.postgresql.org/), [MySQL](https://www.mysql.com/), [SQLite](https://sqlite.org/))\n\n---\n\n## 🧩 Compatibility\n\nThis SDK implements the A2A Protocol Specification [`v0.3.0`](https://a2a-protocol.org/v0.3.0/specification).\n\n| Transport | Client | Server |\n| :--- | :---: | :---: |\n| **JSON-RPC** | ✅ | ✅ |\n| **HTTP+JSON/REST** | ✅ | ✅ |\n| **GRPC** | ✅ | ✅ |\n\n---\n\n## 🚀 Getting Started\n\n### Prerequisites\n\n- Python 3.10+\n- `uv` (recommended) or `pip`\n\n### 🔧 Installation\n\nInstall the core SDK and any desired extras using your preferred package manager.\n\n| Feature                  | `uv` Command                               | `pip` Command                                |\n| ------------------------ | ------------------------------------------ | -------------------------------------------- |\n| **Core SDK**             | `uv add a2a-sdk`                           | `pip install a2a-sdk`                        |\n| **All Extras**           | `uv add \"a2a-sdk[all]\"`                    | `pip install \"a2a-sdk[all]\"`                 |\n| **HTTP Server**          | `uv add \"a2a-sdk[http-server]\"`            | `pip install \"a2a-sdk[http-server]\"`         |\n| **gRPC Support**         | `uv add \"a2a-sdk[grpc]\"`                   | `pip install \"a2a-sdk[grpc]\"`                |\n| **OpenTelemetry Tracing**| `uv add \"a2a-sdk[telemetry]\"`              | `pip install \"a2a-sdk[telemetry]\"`           |\n| **Encryption**           | `uv add \"a2a-sdk[encryption]\"`             | `pip install \"a2a-sdk[encryption]\"`          |\n|                          |                                            |                                              |\n| **Database Drivers**     |                                            |                                              |\n| **PostgreSQL**           | `uv add \"a2a-sdk[postgresql]\"`             | `pip install \"a2a-sdk[postgresql]\"`          |\n| **MySQL**                | `uv add \"a2a-sdk[mysql]\"`                  | `pip install \"a2a-sdk[mysql]\"`               |\n| **SQLite**               | `uv add \"a2a-sdk[sqlite]\"`                 | `pip install \"a2a-sdk[sqlite]\"`              |\n| **All SQL Drivers**      | `uv add \"a2a-sdk[sql]\"`                    | `pip install \"a2a-sdk[sql]\"`                 |\n\n## Examples\n\n### [Helloworld Example](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents/helloworld)\n\n1. Run Remote Agent\n\n   ```bash\n   git clone https://github.com/a2aproject/a2a-samples.git\n   cd a2a-samples/samples/python/agents/helloworld\n   uv run .\n   ```\n\n2. In another terminal, run the client\n\n   ```bash\n   cd a2a-samples/samples/python/agents/helloworld\n   uv run test_client.py\n   ```\n\n3. You can validate your agent using the agent inspector. Follow the instructions at the [a2a-inspector](https://github.com/a2aproject/a2a-inspector) repo.\n\n---\n\n## 🌐 More Examples\n\nYou can find a variety of more detailed examples in the [a2a-samples](https://github.com/a2aproject/a2a-samples) repository:\n\n- **[Python Examples](https://github.com/a2aproject/a2a-samples/tree/main/samples/python)**\n- **[JavaScript Examples](https://github.com/a2aproject/a2a-samples/tree/main/samples/js)**\n\n---\n\n## 🤝 Contributing\n\nContributions are welcome! Please see the [CONTRIBUTING.md](CONTRIBUTING.md) file for guidelines on how to get involved.\n\n---\n\n## 📄 License\n\nThis project is licensed under the Apache 2.0 License. See the [LICENSE](LICENSE) file for more details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2aproject%2Fa2a-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fa2aproject%2Fa2a-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fa2aproject%2Fa2a-python/lists"}