This question is about calling a Mathematica package (.m file) from Python using the "Wolfram Client Library for Python" (https://github.com/WolframResearch/WolframClientForPython).
To be concrete, consider the following Mathematica package:
BeginPackage("basicPackage`") AddTwo::usage = "AddTwo(a, b) returns a+b"; Begin("Private`") AddTwo(a_, b_) := a + b; End() EndPackage()
Goal: Call AddTwo from Python using the Wolfram client library for Python. If it is not currently supported, add this functionality to the library.
Library documentation can be found at: https://reference.wolfram.com/language/WolframClientForPython/index.html.
A similar question, asked before the release of the Wolfram client library for Python, is as follows:
How to run a Mathematica (.m) package from python?