I'm developing a Rust application, with some feature to be implemeted in Python. I plan to expose some Python function API to users, so that users can write their own Python code with these functions imported. Then they put their code in a directory, and my application can run the script.
I'm not quite clear how to implement this.
1)In what format should I provide my method code to user, should it be in form of DLL or .whl, or just Python scource?
2)If the application run user script with pyo3, how to process my method code called in the script?
Update: To be more forcused.
My application would also run a client side, it would include user written script to accomplish some feature.
No comments:
Post a Comment
Thanks