|
1 | 1 | # teamscale-client-python [](https://travis-ci.org/cqse/teamscale-client-python) [](https://badge.fury.io/py/teamscale-client) [](https://demo.teamscale.com/activity.html#/teamscale-client-python) |
2 | 2 | A simple client to access Teamscale's REST API written in Python |
3 | 3 |
|
4 | | -Find the documentation here: |
| 4 | +Find the documentation here: |
5 | 5 | http://cqse.github.io/teamscale-client-python |
6 | 6 |
|
| 7 | + |
7 | 8 | # Installation |
8 | | -Install via: |
| 9 | + |
| 10 | +We recommend to use at least Python 3.7 for running the Teamscale Python Client. |
| 11 | +Install from [PyPi](https://pypi.org/project/teamscale-client/): |
9 | 12 |
|
10 | 13 | pip install teamscale-client |
| 14 | + |
| 15 | +Alternatively, you can install from source by cloning the repository and executing: |
| 16 | + |
| 17 | + pip install . |
11 | 18 |
|
12 | | -# Setup |
13 | | -Copy the file `examples/.teamscale-client.config` into your home directory and update it to reflect your setup. |
| 19 | +# Setup & Usage |
| 20 | +Copy the file `examples/.teamscale-client.config` into your home directory and update it to reflect your setup. |
| 21 | +This way, you can easily create the `TeamscaleClient` from the configuration |
| 22 | +file via a `TeamscaleClientConfig`. |
| 23 | + |
| 24 | +To get an overview on common usage scenarios, please have a look |
| 25 | +at the `examples` folder of this repository. |
14 | 26 |
|
15 | 27 | # Development |
16 | | -We are happy to add additional service calls to the client. Please make sure you include a test, if you add a service call. To run them use: |
| 28 | + |
| 29 | +To install all required dependencies for running tests and developing |
| 30 | +the client, create a new environment and execute: |
| 31 | + |
| 32 | + pip install -r requirements.txt |
| 33 | + |
| 34 | +We are happy to add additional service calls to the client. |
| 35 | +Please make sure you include a test, if you add a service call. |
| 36 | +To run them use: |
17 | 37 |
|
18 | 38 | python setup.py test |
19 | 39 |
|
20 | | -Tests are written using the [responses library](https://pypi.org/project/responses/), to mock the requests passed to the server using the [requests api](http://docs.python-requests.org/en/master/). |
| 40 | +Tests are written using the [responses library](https://pypi.org/project/responses/), |
| 41 | +to mock the requests passed to the server using the [requests api](http://docs.python-requests.org/en/master/). |
0 commit comments