[Integrations](https://spiral.ai/integrations) › [Notion](https://spiral.ai/integrations/notion) › [PyPI file provenance](https://spiral.ai/integrations/notion/pypi-file-provenance)

# How to Use PyPI file provenance in Notion

Returns attestations and publisher identity for a specific distribution file when available. Use it to examine a wheel or source archive's publishing origin before approving that artifact.

|  |  |
| --- | --- |
| Model | PyPI file provenance |
| 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 file provenance in Notion

- Each day, use PyPI file provenance for sampleproject 4.0.0, file sampleproject-4.0.0.tar.gz, and report whether its returned publishing evidence differs from the saved baseline.
- Every Monday at 9am: use PyPI file provenance to look this up and give me the result as a table.
- Pull the latest numbers from PyPI file provenance and tell me what changed since last week.
- Check PyPI file provenance and summarize what you find in three bullet points.
- Pull the newest data from PyPI file provenance and give me the result as a table.

## How to set up PyPI file provenance in Notion

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

### Use the Spiral skill

1. **Send Notion 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. **Allow custom MCP servers**: A workspace owner opens Settings › Connections, then the Manage tab, and turns on Enable custom MCP servers. Where members may install only approved connections, also add Spiral under Approved connections › Add approved connection › Custom MCP server with the URL below.

2. **Add Spiral to a custom agent**: Open the custom agent (or create one), then Settings › Tools & Access › Add connection › Custom MCP server. Paste this URL, name it Spiral, keep OAuth and click Connect.

```text
https://api.spiral.ai/mcp
```

3. **Sign in to Spiral and approve**: Spiral opens: sign in, pick the organization and click Authorize. No API key. Spiral gives the connection its own key; Notion never sees it, and you can remove it under Settings › Connected apps in the console.

4. **Run PyPI file provenance in a workflow step**: Give the step an instruction like the ones below and run it on your trigger or schedule. Spiral finds PyPI file provenance, prices it and runs it each time the step fires.

### 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 file provenance**: 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/provenance",
    "input": {
      "project": "<project>",
      "version": "<version>",
      "filename": "<filename>"
    }
  }'
```

Then paste one of the prompts above: Notion finds PyPI file provenance on Spiral, shows the price and runs it.

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

## PyPI file provenance tools and prices

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

## What can you do with PyPI file provenance in Notion?

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.

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

### Build a publishing portfolio inventory

Start with a public publishing account's project roles, then attach package descriptions, exact-release records, recent activity, and available file provenance to each project.

### Review publishing identity changes

Compare saved file provenance with new artifacts and examine ownership change events. Use publisher project roles and release records to document which packages and versions need review.

### 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 Notion guides](https://spiral.ai/integrations/notion)

## PyPI file provenance in other agents

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

## More Notion guides

- [Promocodes.com top coupons](https://spiral.ai/integrations/notion/promocodes-com-top-coupons)
- [PyPI package changes](https://spiral.ai/integrations/notion/pypi-package-changes)
- [Promocodes.com store search](https://spiral.ai/integrations/notion/promocodes-com-store-search)
- [PyPI package details](https://spiral.ai/integrations/notion/pypi-package-details)
- [Promocodes.com store coupons](https://spiral.ai/integrations/notion/promocodes-com-store-coupons)
- [PyPI package files](https://spiral.ai/integrations/notion/pypi-package-files)

## Questions about PyPI file provenance in Notion

**Can Notion use PyPI file provenance?**

Yes. Add Spiral to Notion as an MCP server, and Notion can find and run PyPI file provenance like any built-in tool.

**How much does PyPI file provenance cost in Notion?**

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

**Do I need an Alexandria account to use PyPI file provenance in Notion?**

No. Spiral runs PyPI file provenance 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 file provenance in Notion?**

About two minutes: allow custom MCP servers, then add Spiral to a custom agent, then sign in to Spiral and approve.

**Does Notion wait while PyPI file provenance runs?**

PyPI file provenance runs in the background. Notion 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.

