research-virtualfortknox / msb-client-websocket-python

The python client library to connect to the websocket interface of the MSB (Manufacturing Service Bus)
Apache License 2.0
5 stars 4 forks source link

Use python dataclasses instead of msb_client.ComplexDataFormat #16

Open arthurGrigo opened 3 years ago

arthurGrigo commented 3 years ago

Is your feature request related to a problem? Please describe. Allowing the user to use a dataclass as event payload would allow reusability of code and simplification.

Describe the solution you'd like The library should use reflection to parse the dataclasses provided by the user and generate its internal ComplexDataFormat on its own. This would allow a more streamlined usage as in the java client implementation.

Describe alternatives you've considered

Additional context