Skip to main content

Fast, lean AI agents. 5 lines to production.

Project description

pop

Fast, lean AI agents. 5 lines to production.

PyPI License


Coding agents: See SKILLS.md for the complete API guide — tools, agents, multi-agent patterns, streaming, memory, and all imports in one file.


pop is a lightweight Python framework for building AI agents. It supports multiple LLM providers, has 5 core concepts, and gets you from install to a working agent in under 2 minutes.

Why pop?

  • 5 lines to a working agent -- define a tool, create an agent, call run.
  • 8 LLM providers built-in -- OpenAI, Anthropic, Gemini, DeepSeek, Grok, Kimi, MiniMax, GLM. Switch by changing one string.
  • ~2,500 lines of code -- read the entire framework in an afternoon.
  • 2 runtime dependencies -- httpx and pydantic. Import time under 1ms (lazy imports).
  • Zero commercial dependencies -- no forced telemetry, no vendor lock-in.

Install

uv add pop-framework
# or
pip install pop-framework

All 8 providers (OpenAI, Anthropic, Gemini, DeepSeek, Grok, Kimi, MiniMax, GLM) are included — no extras needed.

Quick Start

from pop import Agent, tool

@tool
def search(query: str) -> str:
    """Search the web for current information."""
    return web_search(query)  # your implementation

agent = Agent(model="openai:gpt-4o", tools=[search])
result = agent.run("What happened in AI today?")
print(result.output)

That's it. No StateGraph, no RunnableSequence, no ChannelWrite.

Docs

Guide What it covers
Skills Complete API guide for building agents
Providers Switching LLMs, failover, model adapters
Streaming Real-time events, pattern matching
Workflows Chain, route, parallel, agent, orchestration
Multi-Agent Handoff, pipeline, debate, fan_out
Memory In-memory and markdown-based persistence
Benchmarks Performance numbers, framework comparison

Benchmarks

Metric pop LangChain + LangGraph Delta
Framework overhead ~0.15ms ~45ms ~300x faster
Import time ~0.17ms ~1,200ms ~7,000x faster
Lines of code (avg task) ~12 ~42 71% less
Dependencies 2 20+ 90% fewer

Details: docs/benchmarks.md

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pop_framework-1.1.0.tar.gz (125.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pop_framework-1.1.0-py3-none-any.whl (39.9 kB view details)

Uploaded Python 3

File details

Details for the file pop_framework-1.1.0.tar.gz.

File metadata

  • Download URL: pop_framework-1.1.0.tar.gz
  • Upload date:
  • Size: 125.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.8.17

File hashes

Hashes for pop_framework-1.1.0.tar.gz
Algorithm Hash digest
SHA256 1c356159f54d179e6b66362e1fdbd3a8556cf31482bb20bb8f87e260f6f1b235
MD5 f934fe36917bc124c812c6e8e79e5554
BLAKE2b-256 38528707bd1c2a79f4aeeda2f282fd490c16b1e2d9e54bab66a424cf4a6c1ce0

See more details on using hashes here.

File details

Details for the file pop_framework-1.1.0-py3-none-any.whl.

File metadata

File hashes

Hashes for pop_framework-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1e61c5e469b1315a149a26c26045bd913cf6d8b292218f676cef5e18d9e921a8
MD5 bc5cdee59acb82ba85ad4ccba4f5f475
BLAKE2b-256 981467037aa24278cfd793dd1c58af23d79cb5e6811cf594131397e542ff8ba9

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page