devpi-client

7.2.1 · active · verified Thu Apr 16

devpi-client is a command-line tool for managing devpi-server instances, facilitating Python packaging workflows. It enables users to upload, test, and install packages from devpi indexes. As of version 7.2.1, it continues to support essential package management operations and is actively maintained with regular releases, typically used in conjunction with a running devpi-server.

Common errors

Warnings

Install

Quickstart

This quickstart demonstrates basic `devpi-client` operations: pointing to a server, creating a user and index, logging in, and preparing for package uploads. Replace placeholder values for actual usage. Note that `devpi-client` is primarily a command-line tool and direct Python `import` statements for general use are not common.

# Assuming devpi-server is running at http://localhost:3141
# Set the devpi client to use the server and create a user
export DEVPI_SERVER_URL="http://localhost:3141"
export DEVPI_USER="myuser"
export DEVPI_PASSWORD="mypassword"

# Point client to the server
devpi use $DEVPI_SERVER_URL

# Create a user (if not exists)
devpi user -c $DEVPI_USER password=$DEVPI_PASSWORD

# Login to the created user
devpi login $DEVPI_USER --password $DEVPI_PASSWORD

# Create a new index for uploads
devpi index $DEVPI_USER/dev

# Switch to using the new index
devpi use $DEVPI_SERVER_URL/$DEVPI_USER/dev

# Example: Upload a dummy package (requires a setup.py or pyproject.toml in the current directory)
# Assuming you have a `dist/mypackage-1.0.0.whl` and `dist/mypackage-1.0.0.tar.gz`
# devpi upload --from-dir dist/

view raw JSON →