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.
  • 7 LLM providers built-in -- OpenAI, Anthropic, Gemini, DeepSeek, 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 7 providers (OpenAI, Anthropic, Gemini, DeepSeek, 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.0.0.tar.gz (119.8 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.0.0-py3-none-any.whl (39.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pop_framework-1.0.0.tar.gz
Algorithm Hash digest
SHA256 f7f2c2d00cfa3176e811f98957af0acf93e5a42dc4f258c29d39af941c7ba397
MD5 139827b373bd2e44f1271226b73a69ec
BLAKE2b-256 cb1d834854569b9c1be6176a01637c2a97f09871f7d7a803fb9988c94c2da464

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for pop_framework-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 771ce2bbcc9ab2bf381f651530f6625b25bb6f0e2833d002f78777d6c36035ee
MD5 59e22f972bfceea14a360dff256731f3
BLAKE2b-256 92557723f9e714bbbe8a2ad7ea0f53b2c521dc2b0436512ecafb4dd47bcc078f

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