API Evangelist API Evangelist
API Learnings
Toolbox
API Evangelist LLC

PyPI Upload API

The PyPI Upload API is the endpoint used by tools like twine and build frontends to publish Python package distributions to the Python Package Index. Served at upload.pypi.org, it emulates the legacy PyPI upload interface and accepts source distributions and wheel files along with their metadata. The API also supports attaching PEP 740 digital attestations to uploads, which PyPI will verify before accepting. Authentication is handled via API tokens or Trusted Publishing workflows using OpenID Connect.

Documentation

Specifications

OpenAPI

pypi-upload-api-openapi.yml Raw ↑