https://github.com/cqse/teamscale-client-python
A simple client to access Teamscale's REST API written in Python
https://github.com/cqse/teamscale-client-python
api python rest teamscale
Last synced: 5 months ago
JSON representation
A simple client to access Teamscale's REST API written in Python
- Host: GitHub
- URL: https://github.com/cqse/teamscale-client-python
- Owner: cqse
- License: apache-2.0
- Created: 2016-01-08T14:44:25.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2024-05-21T23:14:47.000Z (12 months ago)
- Last Synced: 2024-05-22T00:26:20.183Z (12 months ago)
- Topics: api, python, rest, teamscale
- Language: Python
- Size: 1.07 MB
- Stars: 7
- Watchers: 15
- Forks: 9
- Open Issues: 12
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# teamscale-client-python [](https://badge.fury.io/py/teamscale-client) [](https://demo.teamscale.com/activity.html#/teamscale-client-python)
A simple client to access Teamscale's REST API written in PythonFind the documentation here:
http://cqse.github.io/teamscale-client-python> [!CAUTION]
> The Teamscale Python Client is **deprecated** since February 2024.
> If you need to interact with [Teamscale's REST API](https://docs.teamscale.com/reference/rest-api/) using Python (or any other programming language), we recommend that you generate an appropriate client from the OpenAPI specification accessible within Teamscale (_?_ > _API Reference_ > _OpenAPI specification_).
> This approach offers two benefits:
> You get full access to Teamscale's extensive REST API and you are not restricted to Python but can use a programming language of your choice.# Installation
We recommend to use at least Python 3.7 for running the Teamscale Python Client.
Install from [PyPi](https://pypi.org/project/teamscale-client/):
pip install teamscale-clientAlternatively, you can install from source by cloning the repository and executing:
pip install .
# Setup & Usage
Copy the file `examples/.teamscale-client.config` into your home directory and update it to reflect your setup.
This way, you can easily create the `TeamscaleClient` from the configuration
file via a `TeamscaleClientConfig`.To get an overview on common usage scenarios, please have a look
at the `examples` folder of this repository.# Development
To install all required dependencies for running tests and developing
the client, create a new environment and execute:pip install -r requirements.txt
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:python setup.py test
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/).