Skip to content
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

Share the python Engine #33

Open
NoelJacob opened this issue Nov 27, 2024 · 3 comments
Open

Share the python Engine #33

NoelJacob opened this issue Nov 27, 2024 · 3 comments

Comments

@NoelJacob
Copy link

Is there a way for compiling the freezed and initialised python engine wasm and run arbritary script at runtime? Or run a somehow compiled script at runtime? I am basically looking for a python intrepreter sandboxing option.

@zshipko
Copy link
Contributor

zshipko commented Nov 27, 2024

That is a neat idea! For now, I think you could just run eval/exec from inside a plugin. We've also been discussing ways of supporting something like this using a dynamically linked runtime, but haven't really started on that yet.

@nilslice
Copy link
Member

@zshipko, this would mean the input passed into the plugin.call from the host would actually be the Python code to eval/exec correct?

@zshipko
Copy link
Contributor

zshipko commented Nov 27, 2024

Yeah thanks for clarifying, the Python code would be the input to a plugin function that passes it to eval.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants