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
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/clients/distributed-session.py
null
null
null
null
null
null
Python
2026-05-04T02:30:29.795258
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import MessagePart # Assume setup with two independent servers (no shared infrastructure) # For simplicity, both servers contain the same chat_agent. See ex...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/await-external-approval/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:29.797938
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import Message, MessageAwaitResume, MessagePart async def handle_resume(client, run_id): async for event in client.run_resume_stream( run_id=ru...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/clients/advanced.py
null
null
null
null
null
null
Python
2026-05-04T02:30:29.800472
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio import httpx from acp_sdk.client.client import Client from acp_sdk.models import Message, MessagePart async def example() -> None: async with Client( client=httpx.AsyncClient( base_url=...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/acp-agent-generator/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:29.817534
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 # Create server parameters for stdio connection from mcp import ClientSession, StdioServerParameters from mcp.client.stdio import stdio_client from langchain_mcp_adapters.tools import load_mcp_tools from langgraph.prebuilt impo...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/acp-agent-generator/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:29.822290
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import ( Message, MessagePart, ) async def client() -> None: while True: user_message = input(">>> ") user_message_input = Mess...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/clients/stream.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.328625
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart async def example() -> None: async with Client(base_url="http://localhost:8000") as client: async for event in clie...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/servers/store.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.401893
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk.models import ( Message, ) from acp_sdk.server import RedisStore, RunYield, RunYieldResume, Server from redis.asyncio import Redis server = Server() @server.agent(...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/servers/llm.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.423686
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk.models import Message, MessagePart from acp_sdk.server import RunYield, RunYieldResume, Server from beeai_framework.agents.react import ReActAgent from beeai_framework.ba...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/servers/telemetry.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.424991
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import logging from collections.abc import AsyncGenerator from random import choice from acp_sdk.models import ( Message, ) from acp_sdk.server import Context, RunYield, RunYieldResume, Server logging.basicConfig(level=lo...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/servers/awaiting.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.434760
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk.models import ( Message, MessageAwaitRequest, MessageAwaitResume, MessagePart, ) from acp_sdk.server import Context, Server from acp_sdk.server.types impo...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/servers/echo.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.447461
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from collections.abc import AsyncGenerator from acp_sdk.models import ( Message, ) from acp_sdk.server import Context, RunYield, RunYieldResume, Server server = Server() @server.agent() async def echo(inp...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-canvas/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.452493
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import mimetypes import re from collections.abc import AsyncGenerator from acp_sdk import Message from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_framework.backend import AssistantM...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-chat/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.458011
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator import beeai_framework from acp_sdk import Message from acp_sdk.models import Metadata, Annotations from acp_sdk.models.platform import PlatformUIAnnotation, PlatformUIType from acp_...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/basic/servers/standalone.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.459301
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk.models import ( Message, ) from acp_sdk.server import RunYield, RunYieldResume, agent, create_app # This example demonstrates how to serve agents with you own server...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-canvas/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.463450
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio import base64 import sys from contextlib import suppress from pathlib import Path from acp_sdk import ArtifactEvent, MessageCompletedEvent, MessagePartEvent from acp_sdk.client import Client from acp_sdk.models ...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-chat/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:30.943209
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio import sys from contextlib import suppress from acp_sdk import GenericEvent, MessageCompletedEvent, MessagePartEvent from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart async def ...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-evaluator-optimizer/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.014618
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from functools import reduce from acp_sdk import Message from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_framework.agents.react import ReA...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-evaluator-optimizer/code_reviewer_tool.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.015532
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from acp_sdk import Message from acp_sdk.client import Client from acp_sdk.models import MessagePart from beeai_framework.context import RunContext from beeai_framework.emitter import Emitter from beeai_framework.tools import T...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-orchestrator/translation_tool.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.068699
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from enum import Enum import asyncio from acp_sdk import Message from acp_sdk.client import Client from acp_sdk.models import MessagePart from beeai_framework.context import RunContext from beeai_framework.emitter import Emitt...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-handoff/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.075319
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections import defaultdict from collections.abc import AsyncGenerator import beeai_framework from acp_sdk import Message from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_fra...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-handoff/run_agent_tool.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.076471
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections import defaultdict from acp_sdk import Message from acp_sdk.client import Client from beeai_framework.context import RunContext from beeai_framework.emitter import Emitter from beeai_framework.tools import Too...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-prompt-chaining/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.086548
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk import Message from acp_sdk.client import Client from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_framework.agents.react impor...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-routing/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.098623
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from functools import reduce from acp_sdk import Message from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_framework.agents.react import ReA...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-orchestrator/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.099977
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from functools import reduce from acp_sdk import Message from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_framework.agents.react import ReA...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-parallelization/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.126009
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk import Message from acp_sdk.client.client import Client from acp_sdk.models import MessagePart from acp_sdk.server import Context, Server from beeai_framework.agents.reac...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-routing/translation_tool.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.528481
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from enum import Enum from acp_sdk import Message from acp_sdk.client import Client from acp_sdk.models import MessagePart from beeai_framework.context import RunContext from beeai_framework.emitter import Emitter from beeai_f...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-slack-mcp/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.624162
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from typing import Any from mcp import ClientSession, StdioServerParameters from mcp.client.stdio import stdio_client from beeai_framework.agents import AgentExecutionConfig from beeai_framework.agents.tool_calling import Too...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/beeai-slack-mcp/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.680333
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart async def run_client() -> None: async with Client(base_url="http://localhost:8000") as client: run = await client.r...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/crewai-song-writer/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.687015
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio import sys from acp_sdk import GenericEvent, Message, MessageCompletedEvent, MessagePartEvent from acp_sdk.client import Client from acp_sdk.models import MessagePart async def run_client() -> None: async ...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/citation-agent/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.693973
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk import Message, Metadata from acp_sdk.models import MessagePart from acp_sdk.models.models import Annotations, CitationMetadata from acp_sdk.models.platform import Platfo...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/crewai-song-writer/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.702492
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import Iterator from typing import Any from acp_sdk import Message, MessagePart from acp_sdk.server import Context, Server from crewai import LLM, Agent, Crew, Task from crewai.agents.parser import AgentAc...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/gpt-researcher/client_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.703194
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart async def client() -> None: async with Client(base_url="http://localhost:8000") as client: run = await client.run_s...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/gpt-researcher/client_stream.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.732561
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk import MessagePartEvent from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart async def client() -> None: async with Client(base_url="http://localhost:8000") as cli...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/langgraph-greeting/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.733305
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from datetime import datetime from functools import reduce from typing import TypedDict from acp_sdk.models import Message from acp_sdk.models.models import MessagePart from acp_sdk.s...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/gpt-researcher/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:31.780111
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import logging import os from collections.abc import AsyncGenerator from typing import Any from acp_sdk.models import Message, MessagePart from acp_sdk.models.errors import ACPError, Error, ErrorCode from acp_sdk.server import...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/langgraph-greeting/client_stream.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.481613
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart, MessageCompletedEvent, GenericEvent async def client() -> None: async with Client(base_url="http://localhost:8000") as cli...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/trajectory-agent/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.680225
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from collections.abc import AsyncGenerator from acp_sdk import Message from acp_sdk.models import MessagePart from acp_sdk.models.models import TrajectoryMetadata from acp_sdk.server import Context, Server server = Server() ...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/langgraph-greeting/client_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.680834
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import ( Message, MessagePart, ) async def client() -> None: async with Client(base_url="http://localhost:8000") as client: run = await...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/llama-index-rag/client_sync.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.681422
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import ( Message, MessagePart, ) async def client() -> None: async with Client(base_url="http://localhost:8000") as client: run = await...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/openai-story-writer/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.682161
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart import asyncio async def run_agent(agent: str, input: str) -> list[Message]: async with Client(base_url="http://localhost:8000") as client...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/llama-index-rag/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.688682
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 ## Reference: https://medium.com/mitb-for-all/a-guide-to-code-testing-rag-agents-without-real-llms-or-vector-dbs-51154ad920be from collections.abc import AsyncGenerator from acp_sdk import Message, MessagePart from acp_sdk.ser...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
python/docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.689191
# Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # -- Project information ----------------------------------------------------- # https://www.sphinx-doc.org/en/master...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/openai-story-writer/agent.py
null
null
null
null
null
null
Python
2026-05-04T02:30:32.698163
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from agents import Agent, Runner from agents.extensions.models.litellm_model import LitellmModel from collections.abc import AsyncGenerator from acp_sdk.models import Message, MessagePart from acp_sdk.server import Server, Co...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
examples/python/llama-index-rag/client_stream.py
null
null
null
null
null
null
Python
2026-05-04T02:30:33.148289
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 import asyncio from acp_sdk.client import Client from acp_sdk.models import Message, MessagePart, MessageCompletedEvent, GenericEvent async def client() -> None: async with Client(base_url="http://localhost:8000") as cli...
i-am-bee/acp
https://github.com/i-am-bee/acp
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
python/src/acp_sdk/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:30:33.606270
# Copyright 2025 © BeeAI a Series of LF Projects, LLC # SPDX-License-Identifier: Apache-2.0 from acp_sdk.models import * # noqa: F403 from acp_sdk.version import __version__ as __version__
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
resources/baxter/generate_chains.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.674470
# IKPy imports from ikpy import chain from ikpy.urdf.utils import get_urdf_tree # Generate the pdf dot, urdf_tree = get_urdf_tree("./baxter.urdf", out_image_path="./baxter", root_element="base") ########################## Left arm ########################## baxter_left_arm_links = ["base", ...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
resources/robotis_op3/generate_chains.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.675670
from ikpy import chain ###### Left Arm ###### robotis_op3_left_arm_links = ["body_link", "l_sho_pitch_link", "l_sho_roll_link", "l_el_link"] robotis_op3_left_arm_joints = ["l_sho_pitch", "l_sho_r...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
resources/prismatic/generate_chains.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.694614
# IKPy imports from ikpy import chain ########################## Simple prismatic robot ############################### prismatic_robot_chain = chain.Chain.from_urdf_file( "./prismatic_robot.URDF", base_elements=[ "baseLink", "joint_baseLink_childA", "childA" ], last_link_vector=[0, 1, 0]...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
resources/robotis_op3/generate_urdf_tree.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.696020
from ikpy.urdf.utils import get_urdf_tree # Generate URDF Tree PDF dot, urdf_tree = get_urdf_tree('robotis_op3.urdf', out_image_path='robotis_op3', root_element='body_link')
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
resources/pepper/generate_chains.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.701314
# IKPy imports from ikpy import chain from ikpy.urdf.utils import get_urdf_tree # Generate the pdf dot, urdf_tree = get_urdf_tree("./pepper.urdf", out_image_path="./pepper", root_element="base_link") ########################## Left arm ########################## pepper_left_arm_links = ["base_link", ...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
scripts/hand_follow.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.757421
import time import numpy as np from poppy.creatures import PoppyTorso poppy = PoppyTorso(simulator='vrep') delay_time = 1 target_delta = np.array([-0.15, 0, 0]) # Initialize the robot for m in poppy.motors: m.goto_position(0, 2) # Left arm is compliant, right arm is active for m in poppy.l_arm: m.c...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
contrib/transformations.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.773248
""" Various transformations using matrix and quaternions """ __author__ = "Yoan Mollard, Baptiste Busch" import rospy from geometry_msgs.msg import * from std_msgs.msg import * from numpy import ndarray, dot, sqrt, array, arccos, inner, zeros, fill_diagonal import tf __all__ = [ 'pose_to_list', 'quat_to_list', 'l...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
resources/poppy_torso/generate_chains.py
null
null
null
null
null
null
Python
2026-05-04T02:30:39.788350
# IKPy imports from ikpy.chain import Chain def get_torso_right_arm(): chain1 = Chain.from_urdf_file( "./poppy_torso.URDF", base_elements=[ "base", "abs_z", "spine", "bust_y", "bust_motors", "bust_x", "chest", "r_shoulder_y" ], last_link_vector=[0, 0.18, 0],...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/link.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.281517
# coding= utf8 """ .. module:: link This module implements the Link class. """ import numpy as np import sympy # Ikpy imports from ikpy.utils import geometry from typing import Optional class Link: """ Base Link class. Parameters ---------- name: string The name of the link bounds: t...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/chain.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.284306
# coding= utf8 """ .. module:: chain This module implements the Chain class. """ import numpy as np import json import os from typing import List import warnings # IKPY imports from .urdf import URDF from . import inverse_kinematics as ik from . import link as link_lib class Chain: """The base Chain class P...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/inverse_kinematics.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.368279
# coding= utf8 import scipy.optimize import numpy as np from . import logs ORIENTATION_COEFF = 1. def inverse_kinematic_optimization(chain, target_frame, starting_nodes_angles, regularization_parameter=None, max_iter=None, orientation_mode=None, no_position=False, optimizer="least_squares"): """ Computes th...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/urdf/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.369637
from xml.etree import ElementTree from graphviz import Digraph LINK_COLOR = "blue" JOINT_COLOR = "green" def _get_next_joints(root, current_link): current_link_name = current_link.attrib["name"] next_joints = [] for joint in root.findall("joint"): if joint.find("parent").attrib["link"] == current...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/logs.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.382644
# coding= utf8 import logging logger = logging.getLogger("ikpy") stream_handler = logging.StreamHandler() logger.setLevel(logging.WARNING) logger.addHandler(stream_handler) def set_log_level(level): logger.setLevel(level)
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/utils/geometry.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.385878
# coding= utf8 """ .. module:: geometry_utils This module contains helper functions used to compute 3D geometric transformations. """ import numpy as np import sympy def rx_matrix(theta): """Rotation matrix around the X axis""" return np.array([ [1, 0, 0], [0, np.cos(theta), -np.sin(theta)], ...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/urdf/URDF.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.386984
# coding= utf8 """ This module contains the main functions used to parse URDF files. """ import xml.etree.ElementTree as ET import json import numpy as np import itertools import warnings # Ikpy imports from ikpy import link as lib_link from ikpy import logs def _find_next_joint(root, current_link, next_joint_name)...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
src/ikpy/utils/plot.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.956960
# coding= utf8 import numpy as np import matplotlib.animation import matplotlib.pyplot as plt # noqa: F401 # Ikpy imports from ikpy.utils import geometry # Colors of each directions axes. For ex X is green directions_colors = ["green", "cyan", "orange"] def plot_basis(ax, arm_length=1): """Plot a frame fitted...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_chain_dh.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.962717
from ikpy.chain import Chain from ikpy.link import OriginLink, DHLink from ikpy.utils import plot import matplotlib.pyplot as plt import numpy as np from math import pi class UR10(): def __init__(self): self.robot_name = 'UR10' self.home_config = [0, -pi/2, 0, -pi/2, 0, 0] self.dh_params...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_orientation.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.963910
import numpy as np def test_orientation(baxter_left_arm): target_position = [0.1, 0.5, -0.1] # Begin to place the arm in the right position ik = baxter_left_arm.inverse_kinematics(target_position) # Check orientation in all of the three axes # We don't test around the Z axis, this is too hard ...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.977974
import pytest import json # IKPy imports from ikpy.chain import Chain @pytest.fixture def resources_path(): return "../resources" def pytest_addoption(parser): parser.addoption( "--interactive", action="store_true", help="activate interactive mode" ) @pytest.fixture def interactive(request): ...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_chain.py
null
null
null
null
null
null
Python
2026-05-04T02:30:40.991702
import unittest import numpy as np import sys import matplotlib.pyplot as plt # IKPy imports from ikpy import chain from ikpy.utils import plot def test_chain(): fig, ax = plot.init_3d_figure() torso_right_arm = chain.Chain.from_urdf_file( "../resources/poppy_torso/poppy_torso.URDF", base_el...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/params.py
null
null
null
null
null
null
Python
2026-05-04T02:30:41.044634
import sys resources_path = "../resources" interactive = False try: if sys.argv[1] == "--interactive": interactive = True except KeyError: pass
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_poppy_robots.py
null
null
null
null
null
null
Python
2026-05-04T02:30:41.045491
import numpy as np import matplotlib.pyplot as plt # IKpy imports from ikpy import chain from ikpy.utils import plot def test_ergo(resources_path, interactive): a = chain.Chain.from_urdf_file(resources_path + "/poppy_ergo.URDF") target = [0.1, -0.2, 0.1] frame_target = np.eye(4) frame_target[:3, 3] =...
Phylliade/ikpy
https://github.com/Phylliade/ikpy
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
tests/test_urdf.py
null
null
null
null
null
null
Python
2026-05-04T02:30:41.069169
import os import matplotlib.pyplot as plt import numpy as np # ikpy imports from ikpy import chain from ikpy.utils import plot from ikpy.urdf import URDF from ikpy.urdf.utils import get_urdf_tree def test_urdf_chain(resources_path, interactive): """Test that we can open chain from a URDF file""" chain1 = cha...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/links.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.731344
"""Link Functions""" import numpy as np from pygam.core import Core class Link(Core): """ Creates an instance of a Link object. Parameters ---------- name : str, default: None """ def __init__(self, name=None): super(Link, self).__init__(name=name) class IdentityLink(Link): ...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
docs/conf.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.733715
# Configuration file for the Sphinx documentation builder. # # For the full list of built-in configuration values, see the documentation: # https://www.sphinx-doc.org/en/master/usage/configuration.html # autodoc package path import sys from pathlib import Path sys.path.insert(0, str(Path("sphinxext").resolve())) # f...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/datasets/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.734322
"""GAM datasets.""" # -*- coding: utf-8 -*- from pygam.datasets.load_datasets import ( cake, chicago, coal, default, faithful, head_circumference, hepatitis, mcycle, toy_classification, toy_interaction, trees, wage, ) __all__ = [ "mcycle", "coal", "faithful"...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/core.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.737849
"""Core Classes""" import numpy as np from pygam.utils import flatten, round_to_n_decimal_places def nice_repr( name, param_kvs, line_width=30, line_offset=5, decimals=3, args=None, flatten_attrs=True, ): """ Tool to do a nice repr of a class. Parameters ---------- n...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/callbacks.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.738772
"""CallBacks""" from functools import wraps import numpy as np from pygam.core import Core def validate_callback_data(method): """ Wraps a callback's method to pull the desired arguments from the vars dict also checks to ensure the method's arguments are in the vars dict. Parameters ----------...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/datasets/load_datasets.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.739958
"""GAM datasets.""" # -*- coding: utf-8 -*- from os.path import dirname import numpy as np import pandas as pd from pygam.utils import make_2d PATH = dirname(__file__) def _clean_X_y(X, y): """Ensure that X and y data are float and correct shapes.""" return make_2d(X, verbose=False).astype("float"), y.ast...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/distributions.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.740939
"""Distributions""" from abc import ABCMeta, abstractmethod from functools import wraps import numpy as np import scipy as sp from pygam.core import Core from pygam.utils import ylogydu def multiply_weights(deviance): @wraps(deviance) def multiplied(self, y, mu, weights=None, **kwargs): if weights ...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
gen_imgs.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.742216
"""Generate some plots for the pyGAM repo.""" import matplotlib.pyplot as plt import numpy as np from matplotlib.font_manager import FontProperties from pygam import GAM, ExpectileGAM, LinearGAM, LogisticGAM, PoissonGAM, f, s, te from pygam.datasets import ( cake, chicago, default, faithful, hepat...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
docs/sphinxext/github_link.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.753713
import inspect import os import subprocess import sys from functools import partial from operator import attrgetter REVISION_CMD = "git rev-parse --short HEAD" def _get_git_revision(): try: revision = subprocess.check_output(REVISION_CMD.split()).strip() # noqa: S603 except (subprocess.CalledProcess...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:30:48.754234
"""GAM toolkit""" from importlib.metadata import PackageNotFoundError, version from pygam.pygam import ( GAM, ExpectileGAM, GammaGAM, InvGaussGAM, LinearGAM, LogisticGAM, PoissonGAM, ) from pygam.terms import f, intercept, l, s, te __all__ = [ "GAM", "LinearGAM", "LogisticGAM"...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_core.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.384112
from pygam.core import Core, nice_repr def test_Core_class(): """ test attributes of core class """ c = Core() assert c._name is None c = Core(name="cat", line_width=70, line_offset=3) assert c._name == "cat" assert c._line_width == 70 assert c._line_offset == 3 def test_nice_re...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/penalties.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.386963
"""Penalty Matrix Generators""" import warnings import numpy as np import scipy as sp def derivative(n, coef, derivative=2, periodic=False): """ Builds a penalty matrix for P-Splines with continuous features. Penalizes the squared differences between basis coefficients. Parameters ---------- ...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/conftest.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.389312
import pytest from pygam import ( LinearGAM, PoissonGAM, f, s, te, ) from pygam.datasets import ( cake, chicago, coal, default, faithful, head_circumference, hepatitis, mcycle, toy_classification, toy_interaction, trees, wage, ) @pytest.fixture def ...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_GAM_methods.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.390727
import sys import numpy as np import pytest import scipy as sp from pygam import ( GAM, ExpectileGAM, LinearGAM, LogisticGAM, PoissonGAM, f, l, s, ) def test_LinearGAM_prediction(mcycle_X_y, mcycle_gam): """ check that we the predictions we get are correct shape """ X...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_GAM_params.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.396734
import numpy as np import pytest from pygam import ( LinearGAM, LogisticGAM, intercept, l, s, ) def test_lam_non_neg_array_like(cake_X_y): """ lambda must be a non-negative float or array of floats """ X, y = cake_X_y with pytest.raises(ValueError): LinearGAM(lam=-1)....
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_gen_imgs.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.398291
from unittest.mock import patch # Import the function to test import gen_imgs def test_gen_basis_fns(): """ Test that gen_basis_fns function executes without error and calls plt.savefig with the correct filename and dpi parameters for basis function visualization. """ with patch("gen_imgs.plt.sav...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/terms.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.401165
"""Terms""" import warnings from abc import ABCMeta, abstractmethod, abstractproperty from collections import defaultdict from copy import deepcopy import numpy as np import scipy as sp from pygam.core import Core, nice_repr from pygam.penalties import CONSTRAINTS, PENALTIES from pygam.utils import ( b_spline_ba...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_GAMs.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.406073
import pytest from pygam import ( GAM, ExpectileGAM, GammaGAM, InvGaussGAM, LinearGAM, LogisticGAM, PoissonGAM, ) def test_can_build_sub_models(): """ check that the inits of all the sub-models are correct """ LinearGAM() LogisticGAM() PoissonGAM() GammaGAM() ...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_datasets.py
null
null
null
null
null
null
Python
2026-05-04T02:30:49.407672
import numpy as np from pygam.datasets import ( cake, chicago, coal, default, faithful, head_circumference, hepatitis, mcycle, toy_classification, toy_interaction, trees, wage, ) def _test_dataset(dataset_loader, n_rows, n_columns_X, n_columns_df, n_rows_X=None): "...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_partial_dependence.py
null
null
null
null
null
null
Python
2026-05-04T02:30:50.733567
import pytest from pygam import LinearGAM class TestPartialDepencence: def test_partial_dependence_on_univar_data(self, mcycle_X_y): """ partial dependence with univariate data should equal the overall model if fit intercept is false """ X, y = mcycle_X_y gam = Lin...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_penalties.py
null
null
null
null
null
null
Python
2026-05-04T02:30:50.734385
import numpy as np from pygam import LinearGAM, s, te from pygam.penalties import ( concave, convex, derivative, l2, monotonic_dec, monotonic_inc, none, wrap_penalty, ) def test_single_spline_penalty(): """ check that feature functions with only 1 basis are penalized correctly...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_gridsearch.py
null
null
null
null
null
null
Python
2026-05-04T02:30:50.735277
import numpy as np import pandas as pd import pytest from pygam import ( GammaGAM, InvGaussGAM, LinearGAM, LogisticGAM, PoissonGAM, ) def test_gridsearch_returns_scores(mcycle_X_y): """ check that gridsearch returns the expected number of models """ n = 5 X, y = mcycle_X_y ...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_utils.py
null
null
null
null
null
null
Python
2026-05-04T02:30:50.735770
from copy import deepcopy from unittest.mock import patch import numpy as np import pytest from pygam import LinearGAM, LogisticGAM, f, s from pygam.utils import check_iterable_depth, check_X, check_X_y, check_y, sig_code # TODO check dtypes works as expected # TODO checkX, checky, check XY expand as needed, call ou...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/tests/test_terms.py
null
null
null
null
null
null
Python
2026-05-04T02:30:50.736821
from copy import deepcopy import numpy as np import pytest from pygam import LinearGAM, PoissonGAM from pygam.terms import ( FactorTerm, Intercept, LinearTerm, SplineTerm, TensorTerm, Term, TermList, f, l, s, te, ) from pygam.utils import flatten @pytest.fixture def chica...
dswah/pyGAM
https://github.com/dswah/pyGAM
null
null
null
null
997
null
null
apache-2.0
null
null
null
null
null
null
null
pygam/utils.py
null
null
null
null
null
null
Python
2026-05-04T02:30:52.550108
"""pyGAM Utilities""" import numbers import sys import warnings from copy import deepcopy import numpy as np import scipy as sp from numpy.linalg import LinAlgError from scipy import sparse # noqa: F401 try: from sksparse.cholmod import cholesky as spcholesky from sksparse.test_cholmod import CholmodNotPosi...
Finnhub-Stock-API/finnhub-python
https://github.com/Finnhub-Stock-API/finnhub-python
null
null
null
null
996
null
null
apache-2.0
null
null
null
null
null
null
null
finnhub/exceptions.py
null
null
null
null
null
null
Python
2026-05-04T02:30:54.978123
class FinnhubAPIException(Exception): def __init__(self, response): super(FinnhubAPIException, self).__init__() self.code = 0 try: json_response = response.json() except ValueError: self.message = "JSON error message from Finnhub: {}".format(response.text) ...
Finnhub-Stock-API/finnhub-python
https://github.com/Finnhub-Stock-API/finnhub-python
null
null
null
null
996
null
null
apache-2.0
null
null
null
null
null
null
null
examples.py
null
null
null
null
null
null
Python
2026-05-04T02:30:54.979435
import finnhub import os # Setup client finnhub_client = finnhub.Client(api_key=os.environ["FINNHUB_API_KEY"]) print(finnhub_client.company_net_income_estimates('TSLA', freq='quarterly')) print(finnhub_client.company_pretax_income_estimates('TSLA', freq='quarterly')) print(finnhub_client.company_gross_income_estimates...
Finnhub-Stock-API/finnhub-python
https://github.com/Finnhub-Stock-API/finnhub-python
null
null
null
null
996
null
null
apache-2.0
null
null
null
null
null
null
null
setup.py
null
null
null
null
null
null
Python
2026-05-04T02:30:55.029279
# coding: utf-8 from setuptools import setup, find_packages # noqa: H301 NAME = "finnhub-python" VERSION = "2.4.28" REQUIRES = ["requests >= 2.22.0"] with open("README.md", "r") as fh: long_description = fh.read() setup( name=NAME, version=VERSION, description="Finnhub API", author="Finnhub", ...
Finnhub-Stock-API/finnhub-python
https://github.com/Finnhub-Stock-API/finnhub-python
null
null
null
null
996
null
null
apache-2.0
null
null
null
null
null
null
null
finnhub/__init__.py
null
null
null
null
null
null
Python
2026-05-04T02:30:55.068823
from __future__ import absolute_import from finnhub.client import Client from finnhub.exceptions import FinnhubAPIException, FinnhubRequestException
Finnhub-Stock-API/finnhub-python
https://github.com/Finnhub-Stock-API/finnhub-python
null
null
null
null
996
null
null
apache-2.0
null
null
null
null
null
null
null
finnhub/client.py
null
null
null
null
null
null
Python
2026-05-04T02:30:55.069691
import json import requests from finnhub.exceptions import FinnhubAPIException from finnhub.exceptions import FinnhubRequestException class Client: API_URL = "https://api.finnhub.io/api/v1" DEFAULT_TIMEOUT = 10 def __init__(self, api_key, proxies=None): self._session = self._init_session(api_key...
vivisect/vivisect
https://github.com/vivisect/vivisect
null
null
null
null
994
null
null
apache-2.0
null
null
null
null
null
null
null
PE/ordlookup/comctl32.py
null
null
null
null
null
null
Python
2026-05-04T02:30:57.961451
ord_names = { 2:'MenuHelp', 3:'ShowHideMenuCtl', 4:'GetEffectiveClientRect', 5:'DrawStatusTextA', 6:'CreateStatusWindowA', 7:'CreateToolbar', 8:'CreateMappedBitmap', 12:'CreatePropertySheetPage', 13:'MakeDragList', 14:'LBItemFromPt', 15:'DrawInsert', 16:'CreateUpDownContr...
vivisect/vivisect
https://github.com/vivisect/vivisect
null
null
null
null
994
null
null
apache-2.0
null
null
null
null
null
null
null
PE/cofflib.py
null
null
null
null
null
null
Python
2026-05-04T02:30:57.969117
''' Some utilities for dealing with COFF .LIB files ''' import binascii import vstruct from vstruct.defs.pe import * from vstruct.primitives import * IMAGE_ARCHIVE_START_SIZE = 8 IMAGE_ARCHIVE_START = '!<arch>\n' IMAGE_ARCHIVE_END = '`\n' IMAGE_ARCHIVE_PAD ...