Skip to content
This repository has been archived by the owner on Apr 5, 2022. It is now read-only.

infraql/pyinfraql

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

pyinfraql - Python Library for InfraQL

This repository has been archived. The active project is now located at PyStackQL

Platform Support Python Support

Python wrapper for InfraQL

Usage

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')