Python library for working with AINB files
Requires at least Python 3.10
pip install ainbOptionally install graphing components with:
pip install ainb[graph]Graphing requires installation of Graphviz (make sure to add it to your system path)
import ainb
import ainb.graph
# load an AINB file and save it as JSON
script = ainb.AINB.from_file("AWonderfullyNamedFile.root.ainb")
script.save_json("output_directory")
# graph a file
ainb.graph.graph_all_commands(script, output_format="png", dpi=120.0)# load an AINB file and save it as JSON
ainb AWonderfullyNamedFile.root.ainb
# graph a file
ainb-graph -f png --dpi 120 --all-commands AWonderfullyNamedFile.root.ainbTODO
To build from source:
pip install -e .This software is licensed under GPLv2.