Skip to content
This repository was archived by the owner on Jul 2, 2024. It is now read-only.

Commit 0a43b19

Browse files
committed
init usage section
1 parent 61b70f0 commit 0a43b19

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,19 @@ Small Python library for interacting with devpi servers via web API
66
```python
77
pip install devpi-tools
88
```
9+
10+
## Usage
11+
12+
```python
13+
from devpi_tools import DevpiClient
14+
15+
client = DevpiClient('http://127.0.0.1:3141')
16+
17+
client.indexes # list all indexes
18+
index = client.index('/root/pypi') # or fetch a single index
19+
20+
index.projects # list all projects
21+
project = index.project('devpi-tools') # or fetch a single project/package by name
22+
23+
project.versions #list of uploaded versions
24+
```

0 commit comments

Comments
 (0)