Python 2.7+ is a prerequisite for using the ThreatConnect Python SDK. Typically, Python comes pre-installed on Linux/OS X/Unix systems, so additional steps to install Python are usually not required. To ensure you have python installed and to check the version, type python--version into the command line/command prompt.

The ThreatConnect Python SDK can be installed using python pip as shown below:

pip install threatconnect

Note

If you get a Permissiondenied error, you may have to install the threatconnect package with escalated privileges: sudopipinstallthreatconnect.

Warning

If you are using Python 2, you will also need to install the enum34 package using: pipinstallenum34.

For the sake of brevity, the configuration code above will be summarized with ... in all of code snippets in this documentation. In other words, any time you see ... in a code snippet, it can be replaced with the code above.