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.3.tar.gz
(3.3 kB
view hashes)
Built Distribution
Close
Hashes for devpi_tools-0.5.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 075bb002bca110117806c73f61f9a66e3fea0e6a03ecdee34c47e9f7db3b5473 |
|
MD5 | 5a7c70990d7e46c1ccd8d176e83d84fb |
|
BLAKE2b-256 | c660c5714dbcb5ef212d073aa0b11359cee6cdcd41de6e8e739f3dea24946151 |