[Integrations](https://spiral.ai/integrations) › [Instinct](https://spiral.ai/integrations/instinct) › [PyPI storage statistics](https://spiral.ai/integrations/instinct/pypi-storage-statistics)

# How to Use PyPI storage statistics in Instinct

Returns total package storage in bytes and the 100 largest packages by stored size. Use it to assess mirror capacity or compare storage concentration across snapshots.

|  |  |
| --- | --- |
| Model | PyPI storage statistics |
| Available through | Alexandria |
| Category | E-commerce |
| Price | $0.00873 per call. |
| Returns | json |
| Runs | In the background |
| Setup | About 2 minutes, with a Spiral API key |

## Prompts to try with PyPI storage statistics in Instinct

- Each week, use PyPI storage statistics and compare total bytes and the ten largest packages with the previous snapshot.
- Every Monday at 9am: use PyPI storage statistics to look this up and give me the result as a table.
- Pull the latest numbers from PyPI storage statistics and tell me what changed since last week.
- Check PyPI storage statistics and summarize what you find in three bullet points.
- Pull the newest data from PyPI storage statistics and give me the result as a table.

## How to set up PyPI storage statistics in Instinct

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

### Use the Spiral skill

1. **Send Instinct 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 Spiral's MCP server

1. **Create an API key**: In the console, open API keys and create a key for Instinct. Copy it.

2. **Send Instinct this message**: Instinct reads Spiral's skill and asks for your API key.

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

3. **Give Instinct the key**: When Instinct asks for the key, add it where Instinct keeps secrets, never in the chat itself.

### 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 storage statistics**: 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/stats",
    "input": {}
  }'
```

Then paste one of the prompts above: Instinct finds PyPI storage statistics on Spiral, shows the price and runs it.

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

## PyPI storage statistics tools and prices

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

## What can you do with PyPI storage statistics in Instinct?

Produce a recurring PyPI change report that highlights new releases, publishing changes, and storage growth. Compare successive records for a defined package watchlist or public publishing account.

### 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.

### Prepare an ecosystem briefing

Combine newly created projects and release entries with package descriptions. Add a public publisher's portfolio and storage totals to explain publishing activity and repository scale.

### 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.

## Overview

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

## PyPI storage statistics in other agents

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

## More Instinct guides

- [PyPI release details](https://spiral.ai/integrations/instinct/pypi-release-details)
- [RTINGS buying guide picks](https://spiral.ai/integrations/instinct/rtings-buying-guide-picks)
- [PyPI recent releases](https://spiral.ai/integrations/instinct/pypi-recent-releases)
- [RTINGS buying guides](https://spiral.ai/integrations/instinct/rtings-buying-guides)
- [PyPI publisher projects](https://spiral.ai/integrations/instinct/pypi-publisher-projects)
- [RTINGS product review](https://spiral.ai/integrations/instinct/rtings-product-review)

## Questions about PyPI storage statistics in Instinct

**Can Instinct use PyPI storage statistics?**

Yes. Add Spiral to Instinct as an MCP server, and Instinct can find and run PyPI storage statistics like any built-in tool.

**How much does PyPI storage statistics cost in Instinct?**

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

**Do I need an Alexandria account to use PyPI storage statistics in Instinct?**

You need no Alexandria account. Instinct uses one Spiral API key for every tool, and Spiral runs PyPI storage statistics on its own Alexandria account.

**How long does it take to set up PyPI storage statistics in Instinct?**

About two minutes: create an API key, then send Instinct this message, then give Instinct the key.

**Does Instinct wait while PyPI storage statistics runs?**

PyPI storage statistics runs in the background. Instinct 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.

