Skip to main content

Package Query - Find API information for Python packages

Project description

pkgq

PyPI Python uv CI Coverage License Agentic PACKAGE.md

Make your Python package discoverable for AI coding agents in 3 steps.

What is PACKAGE.md?

PACKAGE.md is a informally proposed documentation standard for Python packages optimized for AI agents. Unlike README.md (written for humans), PACKAGE.md provides structured, scannable content that coding agents can quickly understand:

  • Purpose - What the package does in one line
  • Key Components - Classes, functions, and their signatures
  • Common Patterns - Code examples for typical use cases
  • Migration Guides - How to upgrade between versions

When you add PACKAGE.md to your repository root, coding agents using pkgq can instantly understand your package's capabilities.

Quick Start for Package Authors

3 steps to make your package discoverable:

# 0. Add the marketplace (one-time setup)
claude plugin marketplace add christophevg/marketplace

# 1. Get the plugin
claude plugin install pkgq@christophe.vg

# 2. Generate documentation
/pkgq:create

# 3. Commit and push
git add PACKAGE.md && git commit -m "docs: add PACKAGE.md" && git push

Done! Your package is now discoverable by coding agents using the pkgq tool or MCP server.

Add the badge to show your package supports AI agents:

[![PACKAGE.md](https://img.shields.io/badge/pkgq-PACKAGE.md-blueviolet)](https://github.com/christophevg/pkgq#readme)

For Package Users

Installation

pip install pkgq

# For MCP server support
pip install "pkgq[mcp]"

Python Module

from pkgq import find

# Find package documentation
result = find("yoker")
print(result.content)

# Check for updates
result = find("yoker", from_version="1.5.0")

Command Line

% pkgq find yoker --save | head -15
Saved to: /Users/xtof/.cache/pkgq/packages/yoker
yoker 0.4.0 (cached)
Source: github:christophevg/yoker

                              Yoker

A Python agent harness with configurable tools and guardrails - one who yokes
agents together.

Overview

Yoker is a library-first, event-driven agent harness for Python that integrates
with Ollama. It provides a transparent, configurable runtime for AI agents with
structured tool execution, guardrails, and event emission. Unlike CLI-first
agent frameworks, Yoker is designed to be embedded in applications with full
visibility into agent operations.

% pkgq cache --list
Cached packages (3):
  pkgq 0.1.1 (pypi)
  roomz 0.2.0 (github:christophevg/roomz)
  yoker 0.4.0 (github:christophevg/yoker)

MCP Server

pkgq-mcp-server
# Or: uvx --from "pkgq[mcp]" pkgq-mcp-server

Features

Feature Description
Cascade lookup Cache → GitHub PACKAGE.md → PyPI
MCP server Tool for Claude Code agents
Auto-caching Results saved to ~/.cache/pkgq/packages/
Plugin skills /pkgq:create and /pkgq:update

Development

% git clone https://github.com/christophevg/pkgq.git
% cd pkgq
% uv sync --all-extras
% uv run pytest

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

pkgq-0.2.0.tar.gz (150.5 kB view details)

Uploaded Source

Built Distribution

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

pkgq-0.2.0-py3-none-any.whl (9.4 kB view details)

Uploaded Python 3

File details

Details for the file pkgq-0.2.0.tar.gz.

File metadata

  • Download URL: pkgq-0.2.0.tar.gz
  • Upload date:
  • Size: 150.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pkgq-0.2.0.tar.gz
Algorithm Hash digest
SHA256 fa5dcfcac5bad181914ced6a6a70a2578c00ecc92bead04bb38c162b1c43e379
MD5 5d7ba5dad1a911973ac1a1ca878a6cfb
BLAKE2b-256 2a76b7e5b9948d8d8c4ac58e651f1d119eb6d758368d6211b497868e03506839

See more details on using hashes here.

File details

Details for the file pkgq-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: pkgq-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 9.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.13

File hashes

Hashes for pkgq-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 b558cc5bbd8c9047d0538242f31e3939d6d1d78cb8c4f519dff3a0fddfe8af3b
MD5 9405f69ff5c1124e4061904a0d48b72e
BLAKE2b-256 6ffa05fceb8d568853e60e7d920bd6d577ada212b0be3ab7bd129d97d293361b

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