The ThreatConnect ™ TcEx App Framework provides the parser property which returns and instance of argparser.ArgParser. This argparser instance is an extension of the Python argparser method with predefined arguments specifically for ThreatConnect Exchange Apps. Once all custom arguments are added args can be access with the args property.

Argument in the API argument section are provided for authorization to the ThreatConnect API. If the tc_token argument is passed it has priority over the HMAC arguments. The TcEx Framework automatically handles all these arguments and makes them available via the args property.

Note

The api_access_id and api_secret_key arguments have to be configured in the Install JSON configuration file and configured in each job to be passed to the app. The tc_token will automatically be passed for Apps running in the ThreatConnect Exchange Platform.

The ThreatConnect batch API endpoint requires a few arguments for setting the batch job. These arguments have sane default values and are not often required to be added to the install.json configuration file. These default values can also be overridden with methods provided in the TcExJob module.

The ThreatConnect Platform passes all apps a set of standard arguments. Some of these arguments are depended on App settings and others on System settings. The TcEx Framework automatically handles all these arguments and makes them available via the args property.