-
Notifications
You must be signed in to change notification settings - Fork 42
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client Guidelines vs ImagecollectionClient vs both #61
Comments
I would say that in terms of following the client guidelines, it might make more sense to build a proof of concept for a python client that dynamically 'discovers' the available processes on the backend, and then uses reflection to build an API from that at runtime, including documentation if possible. This is also what is suggested in #40 . That way, we can support more backends. If we want to continue implementing the processes in 2 different ways, we have to:
|
The duplication between the two is indeed cumbersome (just noted that some things between the two are out of sync) There is also another option:
I think this "fluent" api style is pretty common in object oriented languages (the guidelines even recommend "method chaining"). Moreover, from my reading of the guidelines, it doesn't really feel that the |
As a sidenote and related to the comment of @jdries above: I think it might be useful to add annotations/decorations to the "process" related methods in |
Closing this one due to issue cleaning: for the near future, we plan to continue building the client with a focus on usability for Python users. |
Hey, I wanted update the processes of the client to v0.4.1, but at the moment we define processes at two places in the code:
ImagecollectionClient
Processes
I feel like the first one is the one the python developer in this project like the most and the second one is the correct one according to the client guidelines.
So from my point of view we can keep both, but we should define the processes only at one place, so there are three possibilities I can think of:
Define all processes in "ImagecollectionClient" (which is atm more up-to-date regarding existing processes) and use it for "Processes" also (internally).
Define all processes in "Processes" (which is atm more up-to-date regarding to the guidelines, and therefore all possible parameters) and use it for "ImagecollectionClient" also (internally).
Create a new Class, where the Processes are defined and used in both classes.
What do you think?
The text was updated successfully, but these errors were encountered: