Back to Skills

pypi-package-info

verified

Get detailed metadata for Python packages from PyPI including versions, release information, dependencies, and project URLs. Use when the user asks for package information, Python package details, release history, or PyPI metadata.

View on GitHub

Marketplace

mearman

Mearman/marketplace

Plugin

pypi-json

Repository

Mearman/marketplace
2stars

plugins/pypi-json/skills/pypi-package-info/SKILL.md

Last Verified

January 23, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/Mearman/marketplace/blob/main/plugins/pypi-json/skills/pypi-package-info/SKILL.md -a claude-code --skill pypi-package-info

Installation paths:

Claude
.claude/skills/pypi-package-info/
Powered by add-skill CLI

Instructions

# PyPI Package Information

Retrieve comprehensive metadata for Python packages from the Python Package Index (PyPI).

## Usage

```bash
npx tsx scripts/info.ts <package-name> [options]
```

### Arguments

| Argument | Required | Description |
|----------|----------|-------------|
| `package-name` | Yes | The exact package name (case-insensitive) |

### Options

| Option | Description |
|--------|-------------|
| `--no-cache` | Bypass cache and fetch fresh data from PyPI |
| `--releases` | Show detailed release history and file information |
| `--files` | Show distribution files for the latest release |

### Output

```
django
==================================================
Latest Version: 5.0.1
License: BSD
Author: Django Software Foundation

Summary:
A high-level Python web framework that encourages rapid development and clean,
pragmatic design.

Project URLs:
  Documentation: https://docs.djangoproject.com/
  Repository: https://github.com/django/django
  Bug Tracker: https://code.djangoproject.com/

Python Requirement: >=3.10

Dependencies (latest):
  - asgiref >=3.6.0,<4
  - sqlparse >=0.2.2
```

Run from the pypi-json plugin directory: `~/.claude/plugins/cache/pypi-json/`

## API Query

### Request Format

```
GET https://pypi.org/pypi/{package}/json
```

### Parameters

| Parameter | Required | Description |
|-----------|----------|-------------|
| `package` | Yes | The exact package name (case-insensitive on PyPI) |
| `format` | No | Always use `json` for structured data |

### Response Codes

| Status | Meaning |
|--------|---------|
| `200 OK` | Package found and metadata returned |
| `404 Not Found` | Package does not exist on PyPI |

## Package Metadata

The API returns comprehensive package information structured in these main sections:

### Core Package Information
- **`info`** - Package metadata object
  - `name` - Package name
  - `version` - Latest version number
  - `summary` - Short description
  - `description` - Full description
  - `license`

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
5110 chars