Using auto-generated SiLA Client classesΒΆ
When generating a Python package using the Code Generator, the generated package will contain a class Client
,
which is a subclass of SilaClient
.
These classes differ from the generic SilaClient
in the following ways:
They can only be connected to a SiLA Server implementing at least the features of the generated package
- When receiving a
DefinedExecutionError
from the SiLA Server, it will be raised as an instance of the generatedDefinedExecutionError
subclass Example:
SiLAService.GetFeatureDefinition
will raise an instance ofUnimplementedFeature
- When receiving a
They provide PEP 484 type hints so you can use tools like mypy to perform static type checking on your client-side code