Skip to content

Upload a package

POST
/api/v4/projects/{id}/packages/pypi

Uploads a PyPI package for a specified project.

id
required
One of:
string

The ID or URL-encoded path of the project

Media type multipart/form-data
object
content
required

The package file to be published (generated by Multipart middleware)

string format: binary
nullable
name
required

Name of the package

string
nullable
Example
my.pypi.package
requires_python

PyPI version required for the package

string
nullable
Example
>=3.7
md5_digest

MD5 checksum of the package

string
nullable
Example
900150983cd24fb0d6963f7d28e17f72
sha256_digest

SHA256 checksum of the package

string
nullable /(?:^[0-9A-Fa-f]{64}$)/
Example
ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad
metadata_version

Metadata version of the package

string
nullable
Example
2.3
author_email

Email address for the package author

string
nullable
Example
cschultz@example.com, snoopy@peanuts.com
description

Description of the package

string
nullable
description_content_type

Type of content for the package description

string
nullable
Example
text/markdown; charset=UTF-8; variant=GFM
summary

Short summary of the package

string
nullable
Example
A module for collecting votes from beagles.
keywords

Keywords listed for the package

string
nullable
Example
dog,puppy,voting,election

Created

Bad Request

Unauthorized

Forbidden

Not Found

Unprocessable Entity