-
Notifications
You must be signed in to change notification settings - Fork 95
Embed into another program #138
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
Comments
as can be seen in https://github.com/go-python/gpython/blob/master/main.go#L120, embedding a gpython vm is like: res, err := vm.Run(module.Globals, module.Globals, code, nil) ie: is that too low level an API? |
I actually figured it out: https://github.com/argoproj/argo-workflows/blob/master/util/python/python.go I wrote code to convert Go types into Python types. Is there another way? |
My question is similar. I would like to execute methods of a Python script from my Golang application. |
I'll try to provide a simple example. |
In the coming days I'll PR the main README and add updated docs and snippets for newcomers to more easily get up and running. The changes coming offer a couple new high-level calls that make life very nice to use and embed gpython. |
fixed w/ #159 |
Is it possible to embed this? Like Otto (https://github.com/robertkrimen/otto).
The text was updated successfully, but these errors were encountered: