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

Python bindings #29

Open
dilawar opened this issue Jun 3, 2021 · 0 comments
Open

Python bindings #29

dilawar opened this issue Jun 3, 2021 · 0 comments

Comments

@dilawar
Copy link

dilawar commented Jun 3, 2021

https://github.com/dilawar/nfsim/tree/python has primitive python bindings. One can build a python module that has high-level interface to the simulator.

[dilawars@chutki build (python)]$ python3 -c "import nfsim; print(dir(nfsim))"
['System', '__author__', '__builtins__', '__cached__', '__doc__', '__email__', '__file__', '__loader__', '__name__', '__package__', '__path__', '__spec__', '_nfsim', 'initSystemFromFlags', 'printHelp', 'printLogo', 'runAgentCell', 'runFromArgs', 'runRNFscript']

One can use the python module to run the model directly.

$ python -m nfsim -xml /path/to/xml

If community is interested, we can take it forward.

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

1 participant