library for interacting with devpi servers via web API
Project description
devpi-tools
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
Release history Release notifications | RSS feed
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.1.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for devpi_tools-0.5.1-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 64a8c10f34e4fc22c7c0e071cd4a70a13f25a83278f92be0c53b7477ba3b1ac0 |
|
MD5 | 29b3cfd0862dd348599d1170316f7a8e |
|
BLAKE2b-256 | 7f19deaf99b020285e79578e79dd4ca7171860c9a741c50677276cda1c6bb778 |