Usage¶
This page is for the ongoing work after the first quick start: editing the profile, adding claims, re-signing proofs, rebuilding output, and republishing.
Accepted profile sources¶
Commands that take a source can currently resolve:
- a direct
pypi_profile.tomlpath - a directory containing
pypi_profile.toml - a
pyproject.tomlwith[tool.pypi-profile] - an installed package name when its distribution exposes
pypi_profile.toml
Common maintenance tasks¶
| Task | GUI | CLI |
|---|---|---|
| Review current data | Inspect, Display TOML, Display JSON, Validate Config | inspect, dump, validate |
| Refresh imported data | Import | init --fetch ... --force or init --from-json-resume ... --force |
| Add a new identity site | Add Identity Site | edit [[profiles]] in pypi_profile.toml |
| Generate proof tokens again | Update Proofs | update-proofs |
| Check published proofs | Verify Claims | verify |
| Preview live site | Live Preview | serve |
| Build static site | Build & Preview | build |
Add a new identity site¶
When you add a new [[profiles]] entry:
- add the URL
- sign it
- publish the proof token on that page
- verify it
- rebuild the static site
- republish the package if the TOML changed
CLI example:
pypi-profile update-proofs pypi_profile.toml
pypi-profile verify pypi_profile.toml
pypi-profile build pypi_profile.toml --output dist
Add or edit claims¶
For normal profile edits:
- edit
pypi_profile.toml - run
inspectorvalidate - if you changed
[[profiles]], runupdate-proofs - if you changed public profile content, rebuild the static site
- republish the package so the updated TOML is in the release
Sign again¶
Run update-proofs --force when you need to replace existing stored_proof values:
pypi-profile update-proofs pypi_profile.toml --force
After that:
- replace the old tokens on the external pages
- run
verify - rebuild the static site
- republish the package
Rebuild and republish¶
Any time the committed profile data changes, there are two separate publication surfaces to think about:
- Static site: rebuild with
buildand republish the generated output directory. - Package: rebuild and republish the Python distribution that ships
pypi_profile.toml.
Import fresh data¶
fetch-claims is the read-only comparison command:
pypi-profile fetch-claims pypi_profile.toml
If you want to regenerate the profile from imported sources, use the init-based import flow described in Quick Start - CLI or the Import command in Quick Start - GUI.
Diagnostics and discovery¶
Useful commands for routine checks:
pypi-profile doctor
pypi-profile find-profiles
pypi-profile inspect pypi_profile.toml --no-validate
When the key changes¶
Use Key management for:
key-infokey-listkey-rotatekey-recoverkey-exportkey-import