-
Notifications
You must be signed in to change notification settings - Fork 16
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
More pythonic HTTP task parameter #88
Comments
@zhongjiajie sir i tried to transform your given snippet of code in more pythonic manner you can see below, if you still want some changes then please tell me , also provide your valuable feedback as well as i am new to to open source community. `from typing import List, Dict class Http:
http_params = [ ] http = Http(name="http", url="http://www.google.com", http_method="GET", http_params=http_params)` **Changes i made: **
Thank You. |
hi @HarshitNagpal29 , we already have some utils function for parameter which you can see in
and you can see when we add this, we can use param as dict type task = Task(
input_params={"key1": value1}
output_params={"key2": value2}
) so maybe we can change http code like http = Http(
name="http",
url="http://www.google.com",
http_method="GET",
- http_params=[
- {"prop": "abc", "httpParametersType": "PARAMETER", "value": "def"}
- ],
+. http_params={"abc": "def"}
) BTW, we have some test case dolphinscheduler-sdk-python/tests/core/test_local_parameter.py Lines 97 to 116 in 68d2670
|
And do you interested in this issue, I can assign you if you interested @HarshitNagpal29 |
@zhongjiajie ok sir assign me i will try to solve it and make pull request |
I had assigned to you for this issue, looking forward your contribution |
sir i have created a pull requested which is waiting for approval |
@zhongjiajie sir i have made all the changes which you told me please review it once and if there is still some issue then you can tell me again , thank you for your patience. |
currently like this
should be more pythonic
The text was updated successfully, but these errors were encountered: