How to Use PyPI storage statistics in Claude Code
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.
Prompts to try with PyPI storage statistics in Claude Code
Copy an example into Claude Code, or ask in your own words.
Use PyPI storage statistics to look this up and give me the result as a table. Save the result in ./assets.
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.
Check PyPI storage statistics every morning and tell me only when something changed.
How to set up PyPI storage statistics in Claude Code
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
This adds Spiral to the current project. Add --scope user to use it in every project.
claude mcp add --transport http spiral https://api.spiral.ai/mcp
- Sign in
Start claude, type /mcp, choose spiral and Authenticate. Sign in to Spiral in the browser and click Authorize. No API key.
Use the Spiral skill
- Send Claude Code this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run PyPI storage statistics
One request; the result comes back by polling or a webhook.
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: Claude Code finds PyPI storage statistics on Spiral, shows the price and runs it.
PyPI storage statistics providers and prices
Spiral runs PyPI storage statistics through Alexandria. Open a card for today's price, with every fee included.
What can you do with PyPI storage statistics in Claude Code?
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.
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.
More on PyPI storage statistics and Claude Code
Overview
PyPI storage statistics in other agents
Questions about PyPI storage statistics in Claude Code
Can Claude Code use PyPI storage statistics?
Yes. Add Spiral to Claude Code as an MCP server, and Claude Code can find and run PyPI storage statistics like any built-in tool.
How much does PyPI storage statistics cost in Claude Code?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Claude Code plan is separate.
Do I need an Alexandria account to use PyPI storage statistics in Claude Code?
No. Spiral runs PyPI storage statistics 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 storage statistics in Claude Code?
About two minutes: add the hosted server, then sign in.
Does Claude Code wait while PyPI storage statistics runs?
PyPI storage statistics runs in the background. Claude Code 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.
Start using PyPI storage statistics in Claude Code
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Claude Code:
set up https://spiral.ai/SKILL.md


