library for interacting with devpi servers via web API
Reason this release was yanked:
deprecated
Project description
# devpi-tools
Small Python library for interacting with devpi servers via web API
## Installing
```python
pip install devpi-tools
```
## Usage
```python
from devpi_tools import DevpiClient
client = DevpiClient('http://127.0.0.1:3141')
client.indexes() # list all indexes
index = client.index('/root/pypi') # or fetch a single index
index.projects() # list all projects
project = index.project('devpi-tools') # or fetch a single project/package by name
project.versions() # list of uploaded versions
project.version('1.0.1') # or fetch details on a specific version
```
Another example, finding the latest version of a specific package, in a specific devpi index:
```python
all_versions = c.index('/root/pypi').project('requests').versions()
latest = max(all_versions.keys())
```
Small Python library for interacting with devpi servers via web API
## Installing
```python
pip install devpi-tools
```
## Usage
```python
from devpi_tools import DevpiClient
client = DevpiClient('http://127.0.0.1:3141')
client.indexes() # list all indexes
index = client.index('/root/pypi') # or fetch a single index
index.projects() # list all projects
project = index.project('devpi-tools') # or fetch a single project/package by name
project.versions() # list of uploaded versions
project.version('1.0.1') # or fetch details on a specific version
```
Another example, finding the latest version of a specific package, in a specific devpi index:
```python
all_versions = c.index('/root/pypi').project('requests').versions()
latest = max(all_versions.keys())
```
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.3.tar.gz
(3.8 kB
view hashes)