dartpy icon indicating copy to clipboard operation
dartpy copied to clipboard

How to pass arguments to the python script?

Open shaoyijia opened this issue 4 years ago • 0 comments

Hi, I'm trying to use your API to integrate a piece of python script to my flutter app which is written by Dart. Is it possible to pass arguments to the python script? If so, what should I do?

I noticed that the second example in your README.md pass arguments to the imported function. However, I failed to fully understand it. If my understanding is correct, multiply is a method in multiply.py. But where should I put the multiply.py to make it successfully imported by your API?

Actually, in my need, I hope that users don't need to explicitly download additional python scripts as long as they have some python packages installed on their workstation. So I'm really curious whether I can pass arguments using the inline way.

Thanks for your help!

shaoyijia avatar Aug 09 '21 05:08 shaoyijia