[Integrations](https://spiral.ai/integrations) › [Amp](https://spiral.ai/integrations/amp) › [PyPI package files](https://spiral.ai/integrations/amp/pypi-package-files)

# How to Use PyPI package files in Amp

Lists wheels and source distributions across a package's available releases, including download links and hashes. Use it to compare artifacts across versions or plan a package mirror.

|  |  |
| --- | --- |
| Model | PyPI package files |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, no API key |

## Prompts to try with PyPI package files in Amp

- Use PyPI package files for numpy to build a table of available wheel filenames across releases, grouped by Python and platform tags.
- Use PyPI package files to look this up and give me the result as a table. Save the result in ./assets.
- Pull the latest numbers from PyPI package files and tell me what changed since last week.
- Check PyPI package files and summarize what you find in three bullet points.
- Pull the newest data from PyPI package files and give me the result as a table.

## How to set up PyPI package files in Amp

Pick the way that suits you. Each takes about two minutes.

### Use Spiral's MCP server

1. **Add the server**: No header and no client ID or secret: Amp registers itself with Spiral.

```bash
amp mcp add spiral https://api.spiral.ai/mcp
```

2. **Sign in**: Start `amp`. Amp opens Spiral's sign-in page in your browser: sign in, pick the organization and click Authorize. No API key.

3. **Check it**

```bash
amp mcp doctor
```

### Use the Spiral skill

1. **Send Amp this message**: Your agent reads Spiral's skill and sets itself up.

```
set up https://spiral.ai/SKILL.md
```

2. **Sign in or paste a key**: Approve Spiral in the browser, or give the agent a key from the console.

### Use the Spiral CLI

1. **Install and sign in**: Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

```bash
npx -y spiral-cli@latest init
```

### Call the Spiral API

1. **Create an API key**: In the console, under API keys.

2. **Run PyPI package files**: One request; the result comes back by polling or a webhook.

```bash
curl https://api.spiral.ai/v1/runs \
  -H "Authorization: Bearer $SPIRAL_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{
    "provider": "alexandria",
    "model": "pypi-org/packages/files",
    "input": {
      "project": "<project>"
    }
  }'
```

Then paste one of the prompts above: Amp finds PyPI package files on Spiral, shows the price and runs it.

Setup guide in the docs: https://spiral.ai/docs/quickstarts/amp

## PyPI package files tools and prices

- [PyPI · Files](https://spiral.ai/tools/alexandria/pypi-org/packages/files) (Alexandria): $0.00873 per call.

## Settings you can ask for

| Setting | Allowed values | Default | Description |
| --- | --- | --- | --- |
| limit | 1 to 500 | 100 | Files per page. |
| cursor |  | — | `next_cursor` from the previous page; omit for the first page. |

## What can you do with PyPI package files in Amp?

Build a package review report beside your dependency files using PyPI release metadata, artifact hashes, and publishing evidence. For registry tooling, use change events, publisher project lists, and storage totals to test ingestion and scope.

### Review a dependency upgrade

Compare current package metadata with a proposed release, check available artifacts, inspect their provenance, and use recent release entries to organize the review.

### Plan package mirror capacity

Use PyPI's total storage and largest packages to estimate scale. Inventory files for selected releases and use change events to identify additions and removals that need reconciliation.

### Investigate artifact storage growth

Compare storage snapshots, identify packages appearing among the largest, and inspect their file inventories. Use upload and removal events to investigate changes between snapshots.

### Check a package data pipeline

Validate that ingestion keeps project records, exact releases, and file inventories separate. Check storage units and ranking limits, and confirm provenance stays attached to the correct artifact.

### Prepare an artifact approval record

Record the selected release's files and hashes, attach available publisher attestations, and compare the package's current metadata. Use recent releases to identify the next version requiring review.

## Overview

- [Alexandria](https://spiral.ai/providers/alexandria)
- [All Amp guides](https://spiral.ai/integrations/amp)

## PyPI package files in other agents

- [ChatGPT](https://spiral.ai/integrations/chatgpt/pypi-package-files)
- [Claude](https://spiral.ai/integrations/claude-desktop/pypi-package-files)
- [Claude Code](https://spiral.ai/integrations/claude-code/pypi-package-files)
- [Cline](https://spiral.ai/integrations/cline/pypi-package-files)
- [Codex](https://spiral.ai/integrations/codex/pypi-package-files)
- [Cursor](https://spiral.ai/integrations/cursor/pypi-package-files)
- [Devin](https://spiral.ai/integrations/devin/pypi-package-files)
- [dots](https://spiral.ai/integrations/dots/pypi-package-files)
- [Factory Droid](https://spiral.ai/integrations/factory-droid/pypi-package-files)
- [Gemini](https://spiral.ai/integrations/gemini/pypi-package-files)
- [Gemini CLI](https://spiral.ai/integrations/gemini-cli/pypi-package-files)
- [Google Antigravity](https://spiral.ai/integrations/antigravity/pypi-package-files)
- [goose](https://spiral.ai/integrations/goose/pypi-package-files)
- [Grok](https://spiral.ai/integrations/grok/pypi-package-files)
- [Grok Build](https://spiral.ai/integrations/grok-build/pypi-package-files)
- [Hermes](https://spiral.ai/integrations/hermes/pypi-package-files)
- [Instinct](https://spiral.ai/integrations/instinct/pypi-package-files)
- [Manus](https://spiral.ai/integrations/manus/pypi-package-files)
- [Muse](https://spiral.ai/integrations/muse/pypi-package-files)
- [Muse Code](https://spiral.ai/integrations/muse-code/pypi-package-files)
- [n8n](https://spiral.ai/integrations/n8n/pypi-package-files)
- [Notion](https://spiral.ai/integrations/notion/pypi-package-files)
- [OpenClaw](https://spiral.ai/integrations/openclaw/pypi-package-files)
- [opencode](https://spiral.ai/integrations/opencode/pypi-package-files)
- [Perplexity](https://spiral.ai/integrations/perplexity/pypi-package-files)
- [Raycast](https://spiral.ai/integrations/raycast/pypi-package-files)
- [VS Code](https://spiral.ai/integrations/vscode/pypi-package-files)
- [Windsurf](https://spiral.ai/integrations/windsurf/pypi-package-files)
- [Zapier](https://spiral.ai/integrations/zapier/pypi-package-files)

## More Amp guides

- [PyPI package details](https://spiral.ai/integrations/amp/pypi-package-details)
- [PyPI publisher projects](https://spiral.ai/integrations/amp/pypi-publisher-projects)
- [PyPI package changes](https://spiral.ai/integrations/amp/pypi-package-changes)
- [PyPI recent releases](https://spiral.ai/integrations/amp/pypi-recent-releases)
- [PyPI file provenance](https://spiral.ai/integrations/amp/pypi-file-provenance)
- [PyPI release details](https://spiral.ai/integrations/amp/pypi-release-details)

## Questions about PyPI package files in Amp

**Can Amp use PyPI package files?**

Yes. Add Spiral to Amp as an MCP server, and Amp can find and run PyPI package files like any built-in tool.

**How much does PyPI package files cost in Amp?**

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Amp plan is separate.

**Do I need an Alexandria account to use PyPI package files in Amp?**

No. Spiral runs PyPI package files on its own Alexandria account. You sign in to Spiral once and never paste a key.

**How long does it take to set up PyPI package files in Amp?**

About two minutes: add the server, then sign in, then check it.

**Does Amp wait while PyPI package files runs?**

PyPI package files runs in the background. Amp starts the run, checks on it and gives you the json when it's ready.

**How reliable is PyPI's package metadata?**

PyPI's JSON metadata uses values supplied during upload and may differ from the uploaded files. The first metadata uploaded for a release is retained even when more files are added to that release.

**How quickly do PyPI changes appear?**

PyPI caches API responses, including JSON, RSS, and Index responses through its CDN. Its API documentation does not promise that every upload or change appears immediately.

**How much release history do PyPI feeds contain?**

The upstream implementation returns up to 100 site-wide release updates, 40 newly created projects, or 40 releases for one project. These are entry limits, so the time span depends on publishing activity.

**Does PyPI provenance prove a package is safe?**

A provenance record links an individual file to its publishing or build origin. PyPI explicitly says that an attestation does not establish that the code or build environment is safe.

**Does every PyPI file have provenance?**

No. PyPI documents releases with no attestations, especially older releases or projects without attestations configured, and a release can have attestations for only some files.

