Skip to main content

library for interacting with devpi servers via web API

Project description

devpi-tools

pypi

Small Python library for interacting with devpi servers via web API

Installing

pip install devpi-tools

Usage

from devpi_tools import DevpiClient

client = DevpiClient('http://127.0.0.1:3141')

client.indexes() # list all indexes
index = client.index('/root/pypi') # fetch a single index

index.projects() # list all projects
project = index.project('devpi-tools') # fetch a single project/package by name

project.versions() # list of uploaded versions
project.version('1.0.1') # fetch details on a specific version

Another example, finding the latest version of a specific package, in a specific devpi index:

index = client.index('/root/pypi')
v = index.project('requests').latest_version()
print('version: %s' % v.version)
print('uploaded: %s' % v.uploaded)

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

devpi-tools-0.5.3.tar.gz (3.3 kB view hashes)

Uploaded Source

Built Distribution

devpi_tools-0.5.3-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page