|
AYON Bin Bridge Client
0.1.0
|
The best way to understand this tool set is to look at the tests we try to have high test coverage so even when the docs don't show you an example you might find your answer there.
For the rest we will have a quick look at how to use this tool set.
This is an example on how to use a controller with items that depend on each other both by running after each other, but also the second item depends on the output of itemA
so how dose it work ?
When we create a WorkItem it will have an uuid that we can use to make another work item in the same Controller dependent on it.
We also have a connect_func_return option in every WorkItem this is done to ensures itemA has run and can safely be evaluated before getting the needed data for the kwargs in this case
This is a very simple example to show how you could connect a Controller to an ProgressDialog instance.
remember the ProgressDialog will start the work handler for you.
How it works:
When we create a WorkItem, it acquires a unique UUID that can be used to make another work item in the same controller dependent on it.
We also have the connect_func_return option in every WorkItem to ensure that itemA has run and its output can safely be evaluated before getting the needed data for kwargs.
This simple example shows how you could connect a Controller instance to a ProgressDialog instance. Note that ProgressDialog starts the work handler automatically.
Interesting to know: Each item in the work handler can have an individual icon and title.
Setting up a LakeCtl is quite simple. You'll need a URI for the server and the key pair. Currently, we use environment variables to set up the binary. In the future, no binary will be needed as we'll interact with the LakePy packages directly. The LakeCtl wrapper aims to maintain compatibility with the LakePs packages.
For now, be aware that creating multiple LakeCtl instances pointing to different servers might overwrite each other's environments. This issue will be addressed in our first full release.
All function definitions follow a schema. progress_obj is the first portion, which is important for the Work-Handler system. If you only want to use LakeCtl alone, you can simply set it to None.
Interesting to know might be. Every item in the work handler can have an individual icon and title.
Setting up a LakeCtl is Pretty simple you will need a URI to the server and the Key pair. Currently we use EnvVaraibles to setup the Binary. In the future no binary will be needed and we will interact with the Lake Py packages. The LakeCtl wrapper is designed to be compatible with the Lake Ps Packages, so we intend to make it backwards Compatible.
For the time being there is a chance that if you create Multiple LakeCtl instance that point to different servers you might overwrite the environments of the others. This will be fixed in the first Full Release but for now you might have to look out for it.
All our Functions Definitions follow a Schema.
progress_obj is the first portion its important for the Work-Hanlder system if you just want to use the LakeCtl alone you can Simply set it to None.
after that you will have the portions needed for the LakeCtl in most cases we name the variables after LakeCtl command line tool naming.