- Notifications
You must be signed in to change notification settings - Fork924
[PySDK] Implementation of Python SDK#633
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:python-sdk
Are you sure you want to change the base?
Uh oh!
There was an error while loading.Please reload this page.
Conversation
codecovbot commentedNov 9, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Codecov Report
@@ Coverage Diff @@## python-sdk #633 +/- ##============================================= Coverage ? 80.02% ============================================= Files ? 131 Lines ? 18950 Branches ? 3996 ============================================= Hits ? 15164 Misses ? 2749 Partials ? 1037 📣 We’re building smart automated test selection to slash your CI/CD build times.Learn more |
q82419 commentedNov 9, 2021
You can find the definition of the |
SAtacker commentedNov 9, 2021
That's better. I'll update it. Thanks. |
juntao commentedNov 10, 2021
@apepkuss Please help review this PR as it develops. Thanks. |
* Suggestions fromWasmEdge#633 (comment)Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
* Suggestions fromWasmEdge#633 (comment)Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
7d0a39c tod7b9d0dCompareSAtacker commentedNov 11, 2021
Currently, the |
apepkuss commentedNov 13, 2021
Hi@SAtacker, I noticed that PySDK uses Boost.Python as the bridge library to implement the C++ to Python conversion. How do you think about another useful library, PyBind11? According to the description from PyBind11 (https://pybind11.readthedocs.io/en/stable/index.html), the main issue of Boost.Python:
In the context of WasmEdge project, PyBind11 could be better than Boost.Python for the following reasons:
The above is my thought for the choice of the bridge library. Please correct me if my description was inappropriate. |
SAtacker commentedNov 13, 2021
Thanks for bringing it up. I should have researched prior to implementation. I definitely agree with your proposal of moving to PyBind11 however I want to clarify that; Currently, I am re-implementing the C++ code using WasmEdge-C-API. Do you recommend it or any other method for example use the existing code which is used to implement the wasmedge CLI tool? |
* Suggestions fromWasmEdge#633 (comment)Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
SAtacker commentedNov 14, 2021
Thanks,@apepkuss I have moved it over to PyBind11. |
SAtacker commentedNov 16, 2021 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
@apepkuss 1. Can we have some use cases or examples of most of the C-API documentations? |
apepkuss commentedNov 22, 2021
Hi@SAtacker, sorry for the late reply, I missed the message notification.
|
SAtacker commentedNov 27, 2021
Thanks for this, will let you know once it is done. |
SAtacker commentedDec 1, 2021
@apepkuss could you please look at#464 (comment) |
apepkuss commentedDec 1, 2021
@SAtacker I'll check it, thanks! |
* Suggestions fromWasmEdge#633 (comment)Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
* Suggestions fromWasmEdge#633 (comment)Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
SAtacker commentedDec 5, 2021
@apepkuss I have tried a workaround for adding a python function as a host function. But when I list the function after adding it to VM Context, it gives a zero and consequently, the rest of the code does not work as expected. |
apepkuss commentedDec 6, 2021
Hi@SAtacker, could you please attach your python demo code here? so that we first get to know how you use the Python APIs, then we'll check the details under the hood. Thanks! |
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
SAtacker commentedNov 9, 2022
Cleaned. |
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
hydai commentedNov 9, 2022
I am going to create a new branch called Could you also add a workflow to build and test the python SDK? If should fail at the current stage, however, we just need it to check the status. |
SAtacker commentedNov 9, 2022
Yes, I already have the testing in place, CI needs to be added. Not sure if it works with the current versions of WasmEdge. |
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
hydai commentedNov 11, 2022
I am going to merge this into the branch Please also notice that:
|
hydai commentedNov 11, 2022
Hi@SAtacker |
SAtacker commentedNov 11, 2022 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks that makes sense.
Yes, I agree. |
SAtacker commentedNov 11, 2022
Right on it. |
Signed-off-by: Shreyas Atre <shreyasatre16@gmail.com>
hydai commentedSep 6, 2023
Hi@SAtacker |
SAtacker commentedSep 6, 2023
It would be better if we convert it to community issue because I don't really have much time outside of my work and academics currently. |
1 similar comment
SAtacker commentedSep 6, 2023
It would be better if we convert it to community issue because I don't really have much time outside of my work and academics currently. |
hydai commentedSep 6, 2023
I think that this PR is based on a pretty old version of WasmEdge. Is it possible to clean it up with minimum components, which only contain limited features but can be compatible with the latest version? And then raise an issue with several sub-tasks for the community. Or we can have a roadmap or plan for the Python SDK and make all changes inside this branch. And we can decide when to get it merged back into the master branch. WDYT? |
SAtacker commentedSep 8, 2023
Yes, i think so. But before I spend more time on this I would like to ask the below question.
Do we really plan to keep this part of the SDK alive? Maintaining it would be a part time job for anybody (and I have gotten way busier than before and the chances of me continuing it are frankly very less for now). The way I implemented it is mostly sane but without any real world use case and insights from you guys, it's not possible to move further. |
hydai commentedSep 8, 2023
The question is this: Do we need the Python binding for WasmEdge?
One possible way is merging this PR into the |
SAtacker commentedSep 10, 2023
Yeah
I agree.
Yes it does, thank you. We should do that. |
Uh oh!
There was an error while loading.Please reload this page.