averbis / averbis-python-api

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

Enable experimental process-on-process via python api #69

Closed nadre closed 3 years ago

nadre commented 3 years ago

Is your feature request related to a problem? Please describe. The platform 6.0 enables to run a process on the results of a process. I want this project to provide this feature.

Describe the solution you'd like Similar to DocumentCollection:

def create_and_run_process(
        self,
        process_name: str,
        pipeline: Union[str, Pipeline],
    ) -> Process:

A Process should provide:

def create_and_run_process_on_process(
        self,
        process_name: str,
        pipeline: Union[str, Pipeline],
    ) -> Process:

Describe alternatives you've considered use curl

Additional context This is experimental!

nadre commented 3 years ago

After discussing the method name @reckart and @nadre agreed that the methods should have the same name:

doc_collection.create_and_run_process()
process.create_and_run_process()