Open msiwik-epruf opened 1 year ago
Hi @msiwik-epruf, thanks for the willing jump in and start contribute this is awesome. Regarding the first point - in case no schema is attached to the station only bytearray is allowed, but for the different schema data formats another types allowed. For example if you have a station with JSON schema attached you can send dict.
Regarding the second issue, this is indeed an issue and we will be glad. to see you fixing it and open a PR.
Regarding other things we would like to see on the Python side, are you familiar with Celery?
@idanasulinmemphis Hey,
Regarding the first point - in case no schema is attached to the station only bytearray is allowed, but for the different schema data formats another types allowed. For example if you have a station with JSON schema attached you can send dict.
Maybe here we can have some Union type to show which types are allowed and etc.
Regarding the second issue, this is indeed an issue and we will be glad. to see you fixing it and open a PR.
Ok
Regarding other things we would like to see on the Python side, are you familiar with Celery?
Yeah, but it depends on use case. Currently we use celery with multiple workers/ques for lot's of tasks
*
@msiwik-epruf so we actually want Memphis to be supported for the Celery package users, is it something you can work on?
+1 for type hints.
In a similar vein, I suggest that the library adopt the leading underscore convention for private or protected attributes in specific classes. For instance, attributes like headers.headers
or message.message
might be more intuitively named headers._headers
or message._message
. While it's ideal for everyone to thoroughly read the documentation before using the library, in practice, many developers experiment first and may be misled by their IDE's intellisense. By using a naming convention that more clearly indicates the attribute's intended visibility or scope, we can make the API more intuitive and reduce potential confusion.
I commented here instead of opening an issue as it felt in line with the discussion
Hey guys,
(memphis-py==0.2.7) I just finished deploying docker-compose demo, played with schema, produced and consumed messages.
I would like to contribute and learn project more. Are there any priorities or goals?
First thing i saw when I played with hello example was lacking of types. I see that sometimes bytearray is allowed something Union[bytearray, bytes] and etc, but
Also there is on line 802, but on line 29 we import from google.protobuf.message import Message (name conflict)