This repository has been archived. The active project is now located at PyStackQL
Python wrapper for InfraQL
from pyinfraql import InfraQL
iql = InfraQL(keyfilepath='/tmp/infraql-demo.json')
results = iql.execute("SHOW SERVICES IN google")
print(results)if the InfraQL binary is not in the system path you can explicitly specify this using the exe argument of the InfraQL constructor method, for example:
from pyinfraql import InfraQL
iql = InfraQL(exe='/some/other/path/infraql', keyfilepath='/tmp/infraql-demo.json')