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

Import Time: pop vs smolagents vs LangChain

Framework Overhead: pop vs LangChain

Dependencies: pop vs smolagents vs LangChain

Developer Experience: lines of code per task

Reproduce: python benchmarks/bench_startup.py && python benchmarks/bench_dx.py && python benchmarks/generate_charts.py

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.2.0.tar.gz (146.7 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.2.0-py3-none-any.whl (43.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pop_framework-1.2.0.tar.gz
Algorithm Hash digest
SHA256 98e7d2c14db217dc561e2d1e949506d55b2f7aa0bdab4075d51e32e013557f13
MD5 4ae5f82e3c072ed8da61284d1d09042c
BLAKE2b-256 ad33a190809bd6c95af88c0350f5328d5c469ab83ac88f77007abefe1aa7e399

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pop_framework-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7533340b0f6329d40bfc142342b1b436189262470f33af266746a175375ea4e2
MD5 1f797a943347f025225f8a76537f0983
BLAKE2b-256 457016979103c73217afec3564bc03b309a80628ee2db260c9603827c3c318a1

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