sudo ./setup.py install
Remember to create the file ~/.config/panw
and add the following section to it (note the lack of spaces and quotes)
[autofocus]
apikey=your-af-api-key-goes-here
# optional parameters below with their default values
ignore_warnings = False # whether or not warning log level is displayed
ssl_verify = True # disable ssl verification (not recommended unless debugging SSL/CA issues)
ssl_cert = None # uses default requests ca bundle by default, can override here by specifying path
If you write a script that isn't being run by your user, you can always manually set the API key via the following
from autofocus import AutoFocusAPI
AutoFocusAPI.api_key = "Your AF API Key Here"
Should add some basic examples here, but most can be found in examples