averbis / averbis-python-api

Conveniently access the REST API of Averbis products using Python
Apache License 2.0
12 stars 4 forks source link

Move management of processes to document collection level #54

Closed reckart closed 3 years ago

reckart commented 3 years ago

Describe the refactoring action Currently, methods for managing processes are exposed at the level of the project. However, processes are bound tightly to document collections, so it may be better to move the methods there.

Expected benefit Facilitate APi for the user e.g. os that an info such das the document collection name does not need to be specified multiple times:

DavidHuebner commented 3 years ago

As part of the ticket, I want to add a proper String representation of our objects (Client, Pipeline, Process, etc.). Right now, if we call print(Pipeline), we get something like: <averbis.core._rest_client.Pipeline object at 0x7f91657b7400>

Instead, I would like to have the output Pipeline(name="Discharge", project="test"). This can be archieved using the repr method for each class.