Query Python package signatures and documentation directly from your .venv — no internet required
Project description
p1cli - Package as a CLI
This project aims to introduce the concept of PaaC, Package as a CLI. Query Python package signatures and documentation directly from your .venv — no internet connection required, no extra mcp setup. Built for agents that need accurate, in-place package introspection.
Why?
Agents need good context to succeed. Currently, this is solved with:
- MCP servers - extra setup, token costs, potential drift from actual code
- External docs - may be outdated, requires internet
p1cli takes a different approach: query the actual code in your .venv. What you see is what actually exists — no abstraction layers, no sync issues.
Install
uv pip install -e .
Agent Skill
p1cli is also available as an installable skill for AI agents:
npx skills add p1blue/p1cli@p1cli
This enables agents to use p1cli commands directly.
Quick Usage
# Query a package
uv run p1cli python polars
# Filter with regex
uv run p1cli python polars --regex "^Data"
# List submodules
uv run p1cli python polars --ls
# Query a submodule
uv run p1cli python polars.series
# JSON output (great for agents)
uv run p1cli python polars --json-output
Flags
| Flag | Description |
|---|---|
--ls |
List available submodules |
--signature / --no-signature |
Display function/class signatures (default: on) |
--docstrings / --no-docstrings |
Display docstrings (default: on) |
--regex <pattern> |
Filter by regex |
--json-output |
Output as JSON |
--context |
Show .p1cli context file if present |
License
MIT © 2026 p1blue
Disclaimers
This is mainly vibe coded to quickly try out this and test the idea. So far, it helps me a lot with agent workflows, this is a global intuition that I have. It could be useful to run benchmarks on this.
Also, I'm currently working almost exclusively with python, and I don't have much time to spend for now, so only python is available. Feel free to implement other languages if you want to
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file p1cli-0.1.0.tar.gz.
File metadata
- Download URL: p1cli-0.1.0.tar.gz
- Upload date:
- Size: 8.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
213a268101c85b62289415f99fb52249beb275dd0202445c1fa7d0f47bb8e2db
|
|
| MD5 |
448823f25aaa767c553595b5acf745a0
|
|
| BLAKE2b-256 |
d3c4be8681190abd091a4da9230eab111808038e8c20817a696490ee9156cf77
|
File details
Details for the file p1cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: p1cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 10.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
f601bb31f133a03b69ecda0ea755a7ba985311849a7c0883c421eb9afede415a
|
|
| MD5 |
9b93113660a4e069b3cb96da4f996f2d
|
|
| BLAKE2b-256 |
e36cc0b37b94df35732b8c3b2d2c9a52461e7030e093badcb89c725c42e833d1
|