All Products
Search
Document Center

Alibaba Cloud DevOps:PyPI artifact management

Last Updated:Jun 17, 2026

You can push, pull, view, disable, and delete artifacts in a PyPI private repository.

Prerequisites

To manage artifacts in a PyPI private repository, you must first create a PyPI repository. For more information, see Create a repository.

Use a PyPI repository

In your PyPI repository, click User Guide and follow the instructions to configure pushing and pulling.

The Manual Upload and Download guide contains Push and Pull tabs. The Push tab includes a Set push credentials section with a configuration template for the ~/.pypirc file, covering the [distutils] section and a repository-specific section for your URL, username, and password. It also shows how to use the twine upload command. You can push an artifact either by using the configuration file or by specifying the --repository-url, -u, and -p parameters inline.

View and manage PyPI artifacts

On the repository home page, click Artifacts to view all artifacts. You can also search for artifacts by name.

Artifact version details

Click an artifact name to view its details. The latest version is displayed by default. You can switch versions as needed.

The details panel includes the Artifact Information, File Information, and Metadata tabs, showing the total number of versions, total downloads, storage size, and artifact tags. You can also Delete This Version or Disable Artifact from this panel.

Disable artifact version

On the artifact details page, click Disable Artifact to disable the current version.

When the dialog box appears, enter a reason for disabling and click OK.

Note

Disabling applies only to a specific version, not the entire artifact. For example, if you disable sampleproject 3.0.0 on the version details page, sampleproject 3.0.0 becomes unavailable for download. However, other versions, such as sampleproject 4.0.0, remain available.

Manage artifact metadata

On the artifact details page, click the Metadata tab. Metadata you add applies only to the selected version.

In the Custom Metadata section, enter a key-value pair and click Add Metadata.

Delete artifact version

On the artifact details page, click Delete This Version. Deleted versions can be restored from the artifact recycle bin.