Very simple library to contol BMF controller (read-only atm).
Just import and use the built-in context manager bmfsession
. Session login and logout is taken care implicitly, so no need to worry.
usage example:
from bmf.api import bmfsession, get
with bmfsession(CONTROLLER_ADDR, USER, PASSWORD) as s:
print(get(s, "/core/switch"))
easy as that.
Jupyter example:
Project depends on Python 3 and the requests
library.
Packaging is not implemented. git clone
and import.
- srozb - srozb
This project is licensed under the MIT License - see the LICENSE.md file for details