Skip to content

Small Python library for interacting with devpi servers via web API

License

Notifications You must be signed in to change notification settings

favipcj/devpi-tools

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Small Python library for interacting with devpi servers via web API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%