Python compatibility - CodeArtifact

Python compatibility

CodeArtifact supports PyPI's Legacy APIs, except the simple API. CodeArtifact does not support PyPI's XML-RPC or JSON APIs.

For more information, see the following on the Python Packaging Authority's GitHub repository.

pip command support

The following sections summarize the pip commands that are supported, by CodeArtifact repositories, in addition to specific commands that are not supported.

Supported commands that interact with a repository

This section lists pip commands where the pip client makes one or more requests to the registry it's been configured with. These commands have been verified to function correctly when invoked against a CodeArtifact repository.

Command Description

install

Install packages.

download

Download packages.

CodeArtifact does not implement pip search. If you have configured pip with a CodeArtifact repository, running pip search will search and show packages from PyPI.

Supported client-side commands

These commands don't require any direct interaction with a repository, so CodeArtifact does not need to do anything to support them.

Command Description

uninstall

Uninstall packages.

freeze

Output installed packages in requirements format.

list

List installed packages.

show

Show information about installed packages.

check

Verify installed packages have compatible dependencies.

config

Manage local and global configuration.

wheel

Build wheels from your requirements.

hash

Compute hashes of package archives.

completion

Helps with command completion.

debug

Show information useful for debugging.

help

Show help for commands.