Racket has this for C-based APIs. My mind is kind of wondering how this would ever be stable/maintainable to use for Python, but Lua seems possible but I would rather do my scripting in Racket then Lua and use the C APIs directly. https://docs.racket-lang.org/foreign/index.html Looking at Julia (Which has a no "boiler plate" philosophy when using C or Fortan) the function is just called. Interesting to look at for co…
https://github.com/JuliaPy/PyCall.jl/blob/master/src/PyCall....
I guess it is like this: Importing the pycall library is to turn on the python interpreter thread and not interrupt it. Then you can call any python library you want.