repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/agent_network/agent_registry.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:30.086519 | #!/usr/bin/env python
"""
Agent Registry Example
This example demonstrates how to create and run an A2A agent registry server
that enables agent discovery. It shows:
- How to create a registry server
- How to enable discovery on existing agents
- How to discover agents through a registry
To run:
python agent_reg... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | docs/conf.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:30.373655 | # Configuration file for the Sphinx documentation builder.
import os
import sys
import datetime
# Add the project directory to the path so that Sphinx can find the modules
sys.path.insert(0, os.path.abspath('..'))
# Project information
project = 'Python A2A'
copyright = f'{datetime.datetime.now().year}, Manoj Desai'
... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/ai_powered_agents/bedrock_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:30.486565 | #!/usr/bin/env python
"""
AWS Bedrock-Powered A2A Agent
This example demonstrates how to create an A2A agent powered by AWS Bedrock models,
including Claude, Titan, and other models available on AWS Bedrock.
To run:
export AWS_ACCESS_KEY_ID=your_access_key
export AWS_SECRET_ACCESS_KEY=your_secret_key
expo... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/agent_network/agent_discovery.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:30.612494 | #!/usr/bin/env python
"""
Agent Discovery Example
This example demonstrates automatic discovery of A2A agents in a network.
It shows how to:
- Deploy multiple specialized agents on different ports
- Automatically discover available agents through URL scanning
- Filter and verify discovered agents based on capabilities... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/building_blocks/agent_skills.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:30.673150 | #!/usr/bin/env python
"""
A2A Agent Skills
This example demonstrates how to use the @agent and @skill decorators
to create A2A agents with structured skills. These decorators make it
easy to define agent capabilities and create self-documenting agents.
To run:
python agent_skills.py [--port PORT]
Example:
py... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/building_blocks/messages_and_conversations.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:30.995249 | #!/usr/bin/env python
"""
A2A Messages and Conversations
This example demonstrates how to create, manipulate, and work with A2A
message and conversation objects. You'll learn how to build conversations
with different message types and handle message history.
To run:
python messages_and_conversations.py
Requireme... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/building_blocks/tasks.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:31.107451 | #!/usr/bin/env python
"""
A2A Tasks
This example demonstrates how to work with A2A tasks, which are the
core units of work in the A2A protocol. Tasks encapsulate messages,
their statuses, and results.
To run:
python tasks.py
Requirements:
pip install python-a2a
"""
import sys
import json
import time
from da... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/developer_tools/cli_tools.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:31.198514 | #!/usr/bin/env python
"""
CLI Tools Example
This example demonstrates how to use and create command-line interface (CLI)
tools for working with A2A agents. It shows how to create agents, interact
with them via terminal, and connect to remote agents using the CLI.
To run:
python cli_tools.py [--command COMMAND]
C... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/developer_tools/interactive_docs.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:31.421712 | #!/usr/bin/env python
"""
Interactive Documentation Generator
This example demonstrates how to generate beautiful, interactive API documentation
for A2A agents. You can use this to document your agents' capabilities, making
them more accessible to users and developers.
To run:
python interactive_docs.py [--output... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/developer_tools/testing_agents.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:31.589604 | #!/usr/bin/env python
"""
Testing A2A Agents Example
This example demonstrates how to properly test A2A agents using various
testing strategies including unit tests, mock clients, and test fixtures.
It shows best practices for verifying agent functionality programmatically.
To run:
python testing_agents.py
Requi... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/getting_started/function_calling.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:31.678110 | #!/usr/bin/env python
"""
A2A Function Calling Example
This example demonstrates how to build an A2A server with function calling
capabilities. The server can perform math operations and convert units.
To run:
python function_calling.py [--port PORT]
Example:
python function_calling.py --port 5000
Requireme... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/getting_started/hello_a2a.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:31.809295 | #!/usr/bin/env python
"""
Hello World with Python A2A
This is the simplest possible example of using Python A2A.
It demonstrates how to create basic messages and provides a first
hands-on experience with the library.
To run:
python hello_a2a.py
Requirements:
pip install python-a2a
"""
import sys
def check... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/getting_started/simple_client.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:32.118733 | #!/usr/bin/env python
"""
Simple A2A Client Example
This example shows how to use the A2A client to connect to an A2A-compatible agent
and send messages. It includes a built-in server for a complete self-contained example.
To run:
python simple_client.py [--port PORT]
Example:
python simple_client.py --port ... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/getting_started/simple_server.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:32.309318 | #!/usr/bin/env python
"""
Simple A2A Server Example
This example shows how to create a basic A2A server that responds
to messages. It demonstrates the minimal code needed to get a
server up and running.
To run:
python simple_server.py [--port PORT]
Example:
python simple_server.py --port 5000
Requirements:
... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/a2a_to_langchain.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:32.382930 | #!/usr/bin/env python
"""
A2A to LangChain Integration Example
This example demonstrates how to create an OpenAI-powered A2A agent
and then integrate it with LangChain workflows.
To run:
export OPENAI_API_KEY=your_api_key
python a2a_to_langchain.py [--port PORT] [--model MODEL]
Requirements:
pip install ... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/langchain_advanced_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:32.573773 | #!/usr/bin/env python
"""
Advanced LangChain Agent with Specialized Tools Example
This example demonstrates creating a sophisticated LangChain agent with
specialized tools and converting it to an A2A server with streaming support.
It showcases more advanced tool integration, memory, and structured outputs.
To run:
... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/langchain_agent_with_tools.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:32.877442 | #!/usr/bin/env python
"""
LangChain Agent with Tools Example
This example demonstrates how to create a LangChain agent with various tools
and convert it to an A2A server with streaming support.
To run:
export OPENAI_API_KEY=your_api_key
python langchain_agent_with_tools.py [--port PORT] [--model MODEL]
Requi... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/langchain_streaming.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:32.959745 | #!/usr/bin/env python
"""
LangChain Streaming Example
This example demonstrates how to use streaming with LangChain components
wrapped as A2A servers.
To run:
export OPENAI_API_KEY=your_api_key
python langchain_streaming.py [--port PORT] [--model MODEL]
Requirements:
pip install "python-a2a[langchain,ope... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/langchain_to_a2a.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:33.048021 | #!/usr/bin/env python
"""
LangChain to A2A Conversion Example
This example demonstrates how to convert LangChain components to A2A servers,
making them accessible via the A2A protocol.
To run:
python langchain_to_a2a.py
Requirements:
python-a2a[langchain] langchain langchain_openai openai
"""
import os
impo... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/langchain_tools_to_mcp.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:33.174790 | #!/usr/bin/env python
"""
LangChain to MCP Conversion Example
Demonstrates converting LangChain tools (including pre-built ones) to MCP endpoints.
Run with: python fixed_tool_names.py
"""
import sys
import time
import threading
import socket
import requests
from typing import Dict, Any, List
def find_available_port(... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/langchain/mcp_to_langchain.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:33.482322 | #!/usr/bin/env python
"""
Simple MCP to LangChain Conversion Example
This example demonstrates how to convert MCP tools to LangChain tools
using the to_langchain_tool function.
"""
import sys
import time
import threading
import socket
def find_available_port(start_port=5000, max_tries=10):
"""Find an available ... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/agent_with_mcp_tools.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:33.594573 | #!/usr/bin/env python3
"""
Example demonstrating how to create A2A agents with MCP server tools.
This is a key feature of python-a2a: easily attaching any MCP server
to agents to give them additional capabilities.
"""
import asyncio
import argparse
import socket
from python_a2a import (
A2AServer, AgentCard, run... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/browserbase_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:33.645634 | """
Browserbase MCP Server Example
This example demonstrates how to use the Browserbase MCP server with python-a2a.
It shows browser automation capabilities including navigation, interactions, and data extraction.
Available operations:
- Navigation: navigate(), navigate_back(), navigate_forward()
- Interaction: click... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/code_review_assistant.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:33.758349 | """
Code Review Assistant - MCP Integration Example
This example demonstrates how to integrate multiple MCP providers with AI to create
a practical code review assistant. It shows:
1. GitHub MCP - Fetch code from repositories
2. OpenAI Integration - AI-powered code analysis
3. Browserbase MCP - Check repository docum... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/filesystem_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.145803 | """
Filesystem MCP Server Example
This example demonstrates how to use the Filesystem MCP server with python-a2a.
It shows basic file operations like reading, writing, directory listing, and file management.
"""
import asyncio
import os
import tempfile
from pathlib import Path
from python_a2a.mcp.providers import Fil... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/intelligent_mcp_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.219827 | """
Intelligent Code Assistant - AI chooses which MCP tools to use
This shows the real power of MCP: the AI agent intelligently decides which tools
to call based on the user's request. No predefined sequences!
The agent has access to:
- GitHub MCP: Repository operations
- Browserbase MCP: Web browsing
- Filesystem... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/github_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.258030 | """
GitHub MCP Server Example
This example demonstrates how to use the GitHub MCP server with python-a2a.
It shows basic GitHub operations like authentication, repository access, and file operations.
"""
import asyncio
import os
from python_a2a.mcp.providers import GitHubMCPServer
async def main():
# Check for ... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/kite_mcp_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.338588 | #!/usr/bin/env python3
"""
Zerodha Kite MCP Integration Example
This example demonstrates how to integrate Zerodha's official Kite MCP server with python-a2a,
creating an intelligent trading assistant that provides real portfolio analysis and market insights.
Based on Zerodha's official MCP implementation:
- Blog: ht... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/mcp.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.713865 | #!/usr/bin/env python3
"""
Complete MCP Server and Client Implementation
This demonstrates a production-grade MCP implementation following
the 2025-03-26 specification in one comprehensive file.
Features:
- Complete MCP server with tools, resources, and prompts
- Production-grade MCP client implementation
- Full sp... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/mcp_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.792568 | #!/usr/bin/env python
"""
MCP Agent Example
This example demonstrates how to create an A2A agent that can use MCP tools.
It shows how to connect to MCP servers and use their tools to extend the
agent's capabilities.
To run:
python mcp_agent.py --auto-mcp
Requirements:
pip install "python-a2a[mcp,server]"
"""... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/applications/openai_travel_planner.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:34.793952 | #!/usr/bin/env python
"""
OpenAI Travel Planner Example
A complete travel planning system powered by OpenAI and A2A.
This example demonstrates how to build a practical travel planner
that uses OpenAI's capabilities combined with specialized agents.
To run:
export OPENAI_API_KEY=your_api_key
python openai_tra... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/building_blocks/agent_discovery.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:35.216107 | #!/usr/bin/env python
"""
A2A Agent Discovery
This example demonstrates how to create an agent card that describes
your agent's capabilities and skills for discovery by other agents.
It also shows how to interpret agent cards from other agents.
To run:
python agent_discovery.py
Requirements:
pip install pyth... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/mcp_client_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:35.217458 | #!/usr/bin/env python3
"""
MCP Client Example - One-Click Demo of MCP Integration
This example demonstrates the power of MCP (Model Context Protocol) integration
in python-a2a with a seamless, one-click experience.
Features demonstrated:
- Automatic MCP server detection and connection
- Interactive agent with real MC... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/applications/weather_assistant.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:35.218416 | #!/usr/bin/env python
"""
Weather Assistant Example
A complete weather assistant application that provides current weather,
forecasts, and activity recommendations based on weather conditions.
To run:
python weather_assistant.py
Requirements:
pip install "python-a2a[server]"
"""
import sys
import os
import ... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/mcp_tools.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:35.699201 | #!/usr/bin/env python
"""
MCP Tools Example
This example demonstrates how to create MCP (Model Context Protocol) tools
that can be used to extend AI agent capabilities with external functions.
MCP lets you define tools that models can use to access external data or
perform actions they couldn't do otherwise.
To run:
... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/push_notification/push_notification_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:36.153023 | #!/usr/bin/env python
"""
push_notification_example.py - Python A2A Push Notification Example
This example demonstrates how to use push notifications (subscribe and receive updates)
in the python-a2a library.
To run:
python push_notification_example.py
"""
import asyncio
import time
import threading
import uuid
... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/streaming/02_advanced_streaming.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:36.154183 | #!/usr/bin/env python
"""
02_advanced_streaming.py - Advanced A2A Streaming Example
This example demonstrates more advanced streaming capabilities in the
A2A protocol, including metrics tracking, progress visualization,
chunking strategies, and error handling during streaming.
Key concepts demonstrated:
- Advanced st... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/streaming/01_basic_streaming.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:36.156363 | #!/usr/bin/env python
"""
01_basic_streaming.py - Basic A2A Streaming Example
This example demonstrates the fundamentals of streaming in the A2A protocol.
It creates a simple streaming server and client that communicate in real-time,
showing the key concepts of streaming with minimal complexity.
Key concepts demonstr... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/puppeteer_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:36.183589 | """
Puppeteer MCP Server Example
This example demonstrates how to use the Puppeteer MCP server with python-a2a.
It shows browser automation capabilities including navigation, interactions, and data extraction.
Available operations:
- Navigation: puppeteer_navigate()
- Interaction: puppeteer_click(), puppeteer_fill()... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/streaming/03_streaming_llm_integration.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:36.523837 | #!/usr/bin/env python
"""
03_streaming_llm_integration.py - LLM Streaming Integration
This example demonstrates how to integrate LLM API streaming with the A2A protocol.
It shows how to bridge between LLM streaming APIs and A2A streaming, enabling
real-time delivery of LLM-generated content.
Key concepts demonstrated... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/ai_powered_agents/anthropic_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:38.687675 | #!/usr/bin/env python
"""
Anthropic-Powered A2A Agent
This example demonstrates how to create an A2A agent powered by Anthropic's Claude models.
It shows how to set up the agent, handle environment variables, and connect to the API.
To run:
export ANTHROPIC_API_KEY=your_api_key
python anthropic_agent.py [--po... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/ai_powered_agents/openai_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:38.698857 | #!/usr/bin/env python
"""
OpenAI-Powered A2A Agent
This example demonstrates how to create an A2A agent powered by OpenAI's GPT models.
It shows how to set up the agent, handle environment variables, and connect to the API.
To run:
export OPENAI_API_KEY=your_api_key
python openai_agent.py [--port PORT] [--mod... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | diagnose_a2a.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:38.774843 | #!/usr/bin/env python
"""
Diagnostic script for the python-a2a package.
"""
import sys
import importlib
import warnings
import pkg_resources
def check_import(module_name):
try:
module = importlib.import_module(module_name)
print(f"✅ Successfully imported {module_name}")
return True
exc... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/openai_mcp_agent.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:40.379647 | #!/usr/bin/env python
"""
OpenAI MCP Agent Example
A compact example showing how to create an OpenAI-powered agent with MCP tools.
This agent combines the power of GPT with external tools for calculations,
conversions, and getting real-time information.
To run:
export OPENAI_API_KEY=your_api_key
python openai... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/mcp/playwright_example.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:40.868203 | #!/usr/bin/env python3
"""
Playwright MCP Server Example
This example demonstrates browser automation using the Playwright MCP server.
The PlaywrightMCPServer provider automatically handles all setup including:
- Node.js and npm detection
- @playwright/mcp package installation
- Browser installation (chromium, firefox... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/streaming/04_task_based_streaming.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:41.919698 | #!/usr/bin/env python
"""
04_task_based_streaming.py - Task-Based Streaming Example
This example demonstrates task-based streaming in the A2A protocol,
which provides a more structured approach to streaming than message-based
streaming. Tasks have state transitions, artifacts, and metadata.
Key concepts demonstrated:... |
themanojdesai/python-a2a | https://github.com/themanojdesai/python-a2a | null | null | null | null | 987 | null | null | mit | null | null | null | null | null | null | null | examples/streaming/05_streaming_ui_integration.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:41.946190 | """
Example 05: Streaming UI Integration
This example demonstrates how to integrate A2A streaming with user interfaces,
including:
1. Simple CLI UI with real-time updates
2. Web interface using Server-Sent Events (SSE)
3. Interactive streaming responses
Key concepts:
- UI rendering of streamed content
- Client-side S... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/operators.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.234023 | import inspect
import re
from functools import wraps
from six import string_types, integer_types
from .fields import (FIELD_TEXT, FIELD_NUMERIC, FIELD_NO_INPUT,
FIELD_SELECT, FIELD_SELECT_MULTIPLE)
from .utils import fn_name_to_pretty_label, float_to_decimal
from decimal import Decimal, Inexact, C... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/engine.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.434222 | from .fields import FIELD_NO_INPUT
def run_all(rule_list,
defined_variables,
defined_actions,
stop_on_first_trigger=False):
rule_was_triggered = False
for rule in rule_list:
result = run(rule, defined_variables, defined_actions)
if result:
rule_w... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.436143 | from unittest import TestCase
# Allow us to use Python 3's `assertRaisesRegex` to avoid "DeprecationWarning: Please use assertRaisesRegex instead."
if not hasattr(TestCase, 'assertRaisesRegex'):
TestCase.assertRaisesRegex = TestCase.assertRaisesRegexp
|
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.437702 | __version__ = '1.1.1'
from .engine import run_all
from .utils import export_rule_data
# Appease pyflakes by "using" these exports
assert run_all
assert export_rule_data
|
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/utils.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.439461 | from decimal import Decimal, Inexact, Context
import inspect
def fn_name_to_pretty_label(name):
return ' '.join([w.title() for w in name.split('_')])
def export_rule_data(variables, actions):
""" export_rule_data is used to export all information about the
variables, actions, and operators to the client. ... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_actions_class.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.440418 | from business_rules.actions import BaseActions, rule_action
from business_rules.fields import FIELD_TEXT
from unittest import TestCase
class ActionsClassTests(TestCase):
""" Test methods on classes that inherit from BaseActions.
"""
def test_base_has_no_actions(self):
self.assertEqual(len(BaseActio... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | setup.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.441831 | #! /usr/bin/env python
from setuptools import setup
from business_rules import __version__ as version
with open('README.md') as f:
readme = f.read()
with open('HISTORY.md') as f:
history = f.read()
setup(
name='business-rules',
version=version,
description='Python DSL for setting up business int... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/fields.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.442312 | FIELD_TEXT = 'text'
FIELD_NUMERIC = 'numeric'
FIELD_NO_INPUT = 'none'
FIELD_SELECT = 'select'
FIELD_SELECT_MULTIPLE = 'select_multiple'
|
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/actions.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.442943 | import inspect
from . import fields
from .utils import fn_name_to_pretty_label
class BaseActions(object):
""" Classes that hold a collection of actions to use with the rules
engine should inherit from this.
"""
@classmethod
def get_all_actions(cls):
methods = inspect.getmembers(cls)
... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | business_rules/variables.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:44.443585 | import inspect
from functools import wraps
from .utils import fn_name_to_pretty_label
from .operators import (BaseType,
NumericType,
StringType,
BooleanType,
SelectType,
SelectMultipleType)
class Bas... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_operators.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:46.071677 | from business_rules.operators import (StringType,
NumericType, BooleanType, SelectType,
SelectMultipleType)
from unittest import TestCase
from decimal import Decimal
import sys
class StringOperatorTests(TestCase):
def test_operator_decor... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_integration.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:46.072418 | from business_rules.engine import check_condition
from business_rules import export_rule_data
from business_rules.actions import rule_action, BaseActions
from business_rules.variables import BaseVariables, string_rule_variable, numeric_rule_variable, boolean_rule_variable
from business_rules.fields import FIELD_TEXT, F... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_variables_class.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:46.072979 | from business_rules.variables import BaseVariables, rule_variable
from business_rules.operators import StringType
from unittest import TestCase
class VariablesClassTests(TestCase):
""" Test methods on classes that inherit from BaseVariables
"""
def test_base_has_no_variables(self):
self.assertEqual... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_variables.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:46.274943 | from unittest import TestCase
from business_rules.utils import fn_name_to_pretty_label
from business_rules.variables import (rule_variable,
numeric_rule_variable,
string_rule_variable,
boolean_rule_variable... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_engine_logic.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:46.275416 | from business_rules import engine
from business_rules.variables import BaseVariables
from business_rules.operators import StringType
from business_rules.actions import BaseActions
from mock import patch, MagicMock
from unittest import TestCase
class EngineTests(TestCase):
###
### Run
###
@patch.obj... |
venmo/business-rules | https://github.com/venmo/business-rules | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | tests/test_operators_class.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:46.469356 | from business_rules.operators import BaseType, type_operator
from unittest import TestCase
from mock import MagicMock
class OperatorsClassTests(TestCase):
""" Test methods on classes that inherit from BaseType.
"""
def test_base_has_no_operators(self):
self.assertEqual(len(BaseType.get_all_operato... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/exe_stub_gen.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:50.452719 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Generates a stub executable and saves it to the given output_file.
The stub executable will exec a child at the given path relative to its
origin. This emulates how a symlink to an executable would function and can
be used in place of a symlin... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/build_topology.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:50.454297 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""
Build topology parsing and manipulation for TheRock CI/CD pipeline.
This module provides classes and utilities for parsing BUILD_TOPOLOGY.toml
and computing artifact dependencies for sharded build pipelines.
"""
from dataclasses import datac... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/py_packaging.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:50.455196 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Utilities for producing Python packages."""
from typing import Callable, Sequence
import importlib.util
import re
import os
from pathlib import Path
import platform
import shlex
import subprocess
import shutil
import sys
import tarfile
from ... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/artifacts.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:50.456358 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Manipulates artifact directories.
See `artifact_builder` for tools to construct artifacts from descriptors.
Artifacts are the primary way that build outputs are broken down in the
project. See cmake/therock_artifacts.cmake.
In brief, the art... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/artifact_builder.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:50.497415 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Builds artifacts from a descriptor.
See `artifacts` for a general description of artifacts and utilities for processing
them once built.
"""
import os
from pathlib import Path
import platform
from _therock_utils.pattern_match import PatternM... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/hash_util.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:50.596628 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import hashlib
def calculate_hash(file, hash_algorithm):
with open(file, "rb") as f:
try:
digest = hashlib.file_digest(f, hash_algorithm)
except AttributeError: # file_digest() was added in Python 3.11.
... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/artifact_backend.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.034420 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Abstraction layer for artifact storage backends (S3 or local directory).
This module provides a unified interface for artifact storage that works with
both local directories (for prototyping/testing) and S3 (for CI/CD).
TODO(scotttodd): Conso... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/pattern_match.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.146787 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
from typing import Generator, Sequence
import os
from pathlib import Path, PurePosixPath
import platform
import re
import shutil
import sys
import time
_IS_WINDOWS = platform.system() == "Windows"
# --------------------------------------------... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/git_mirrors.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.412551 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Shared utilities for git mirror management in TheRock.
Provides common functionality used by both fetch_sources.py and
setup_git_mirrors.py for working with git mirror repositories.
"""
from urllib.parse import urlparse
... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/analyze_build_times.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.461242 | #!/usr/bin/env python3
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Analyze Ninja build times and generate HTML report.
This script parses the .ninja_log file from a build directory and generates
an HTML report showing build times for each ROCm component and dependency.
Usage:
pytho... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/artifact_manager.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.495658 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Stage-aware artifact manager for multi-stage CI/CD pipeline.
This CLI tool manages artifacts between build stages, supporting both local
directories (for prototyping) and S3 (for CI/CD). Operations are parallelized
for pe... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/cmake_amdgpu_targets.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.574551 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Parses AMDGPU target and family definitions from cmake/therock_amdgpu_targets.cmake.
Provides a Python-accessible mapping of family names to constituent gfx targets,
derived from the authoritative CMake source of truth.
"""
import re
from dat... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/build_tarballs.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.705101 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Fetch multi-arch build artifacts and package them into per-family tarballs.
For each GPU family in --dist-amdgpu-families, this script:
1. Fetches artifacts (generic + family-specific) using artifact_manager.py
2. Flatten... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/build_python_packages.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:51.706890 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Given ROCm artifacts directories, performs surgery to re-layout them for
distribution as Python packages and builds sdists and wheels as appropriate.
Under Linux, it is standard to run this under an appropriate manylinux ... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/buildctl.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.288664 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""CLI tool for managing the 'prebuilt' state of project components.
In TheRock terminology, 'prebuilt' refers to a project component that has had
its staging install provided externally and it will not be configured/built
l... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/compute_rocm_package_version.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.317762 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Computes a ROCm package version with an appropriate suffix for a given release type.
For usage from other Python scripts, call the `compute_version()` function
directly. When used from GitHub Actions, this writes all thr... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/bump_submodules.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.462931 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Helper script to bump TheRock's submodules, doing the following:
* (Optional) Creates a new branch
* Updates submodules from remote using `fetch_sources.py`
* Creares a commit and tries to apply local patches
* (Option... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/storage_backend.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.479273 | """Storage backend abstraction for writing to S3 and local directories.
Provides a unified interface for writing files to storage — uploading
local files, copying between storage locations, etc. Content types for
known file extensions are set automatically during upload.
Usage::
from _therock_utils.storage_back... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/storage_location.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.520163 | """Backend-agnostic storage location.
A ``StorageLocation`` represents a file or directory in S3 (or a local staging
directory) without coupling to any particular layout or upload/download
direction. It is the bridge between path computation modules (like
``workflow_outputs.WorkflowOutputRoot``) and I/O modules (``st... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/configure_stage.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.521350 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Generate CMake configuration for building a specific stage.
This script uses BUILD_TOPOLOGY.toml to determine which features/artifacts
should be enabled for a specific build stage, and outputs the appropriate
CMake argume... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/workflow_outputs.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.828923 | """CI workflow outputs layout specification.
This module defines the canonical directory structure for all outputs from a
GitHub Actions workflow run. All tools that read or write workflow outputs
should use this module to compute paths.
See docs/development/workflow_outputs.md for the full layout reference.
Note: t... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/_therock_utils/s3_buckets.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.872875 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Inventory of S3 buckets used by CI/CD systems and related functions.
See docs/development/s3_buckets.md.
"""
from dataclasses import dataclass, field
import os
import sys
def _log(*args, **kwargs):
"""Log to stdout with flush for CI vis... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/fetch_repo.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.899574 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Fetches the specific pull request, commit or branch from a repo.
This script is available for users, but it is primarily the mechanism
to fetch a monorepo in the CI.
"""
import argparse
from pathlib import Path
import shl... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/fetch_sources.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:52.900983 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
# Fetches sources from a specified branch/set of projects.
# This script is available for users, but it is primarily the mechanism
# the CI uses to get to a clean state.
#
# Stage-aware fetching:
# Use --stage <stage_name> ... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/fileset_tool.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.144580 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""fileset_tool.py
Helper tool for manipulating filesets by listing matching files, copying,
archiving, etc. This is ultimately inspired by the fileset manipulation behavior
of Ant, which uses recursive glob include/exclude ... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/find_latest_artifacts.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.157368 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Module and CLI script for finding the most recent CI artifacts from a branch.
This script
1. Queries the GitHub API for commits on the chosen branch
2. Invokes find_artifacts_for_commit to find CI artifacts
It skips over ... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/find_artifacts_for_commit.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.158336 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Module and CLI script for finding CI artifacts for a given commit.
This script queries the GitHub API to find workflow runs for a commit and
returns information about where the artifacts are stored in S3.
Usage:
pyth... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/export_source_archive.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.284104 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Exports a canonical source archive from a pristine git worktree.
Many downstream packagers operate off of source archives, and this utility exports
canonical source archives of different types for such consumption.
There... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/fetch_artifacts.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.288501 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Fetches artifacts from S3.
The install_rocm_from_artifacts.py script builds on top of this script to both
download artifacts then unpack them into a usable install directory.
Example usage (using https://github.com/ROCm... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/generate_manifest_diff_report.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.327562 | """Generate manifest diff reports between two TheRock commits.
Compares submodule versions and generates HTML reports showing commit changes
for each component between builds.
Arguments:
--start Start commit SHA or workflow run ID (required unless using --find-last-successful)
--end ... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/generate_therock_manifest.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.423079 | #!/usr/bin/env python3
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import argparse
import json
import os
from pathlib import Path
import re
import subprocess
import sys
from github_actions.manifest_utils import capture, capture_optional, log
def source_root() -> Path:
"""
Determi... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/generate_s3_index.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.526131 | #!/usr/bin/env python3
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""
Usage:
generate_s3_index.py [-h]
--run-id RUN_ID
[--output-dir OUTPUT_DIR]
[--dry-run]
Generate index.html for each first-level subdirectory under a CI run prefix.
For each subdirectory found under {run_id}-{pla... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/github_actions/build_configure.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.548043 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""
This script runs the Linux and Windows build configurations
Required environment variables:
- amdgpu_families
- package_version
- extra_cmake_options
- BUILD_DIR
Optional environment variables:
- VCToolsInstallDir
- GITHUB_WORKSP... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/github_actions/amdgpu_family_matrix.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.647711 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""
This AMD GPU Family Matrix is the "source of truth" for GitHub workflows.
Also provides the select_weighted_label utility for weighted runner selection.
* Each entry determines which families and test runners are available to use
* Each group... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/github_actions/bump_automation.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.713885 | #!/usr/bin/env python3
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
import argparse
import subprocess
import tempfile
import os
from datetime import datetime
import requests
THEROCK_REPO = "ROCm/TheRock"
ROCM_SYSTEMS_FILES = [
".github/workflows/therock-ci-linux.yml",
".github/work... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/github_actions/compute_jax_package_version.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.823910 | #!/usr/bin/env python
# Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""Computes JAX package version from rocm_version and JAX requirements.
Used as a fallback when the test workflow is triggered via manual
workflow_dispatch (without versions passed from a build workflow).
The version suffix... |
ROCm/TheRock | https://github.com/ROCm/TheRock | null | null | null | null | 986 | null | null | mit | null | null | null | null | null | null | null | build_tools/github_actions/configure_ci_path_filters.py | null | null | null | null | null | null | Python | 2026-05-04T01:33:53.839234 | # Copyright Advanced Micro Devices, Inc.
# SPDX-License-Identifier: MIT
"""CI path filtering logic for determining whether to run CI based on modified files.
This module provides utilities to:
- Get modified file paths from git
- Filter paths based on skippable patterns (docs, markdown, etc.)
- Identify CI-related wo... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.