Python helper library for working with the Veracode APIs. Handles retries, pagination, and other features of the modern Veracode REST APIs.
Not an official Veracode product. Heavily based on original work by CTCampbell.
Install from pypi:
pip install veracode-api-py
Save Veracode API credentials in ~/.veracode/credentials
[default]
veracode_api_key_id = <YOUR_API_KEY_ID>
veracode_api_key_secret = <YOUR_API_KEY_SECRET>
Set Veracode API credentials as environment variables.
export VERACODE_API_KEY_ID=<YOUR_API_KEY_ID>
export VERACODE_API_KEY_SECRET=<YOUR_API_KEY_SECRET>
To use this library (or a script based on it) with a proxy server, set environment variables with the address of the proxy:
export HTTP_PROXY='http://10.10.10.10:8000'
export HTTPS_PROXY='http://10.10.10.10:1212'
Import VeracodeAPI or one of the individual API classes into your code and call the methods. Most methods return JSON or XML depending on the underlying API.
You can find sample scripts for some APIs in the Samples folder.
For detailed documentation on the available methods, please see the veracode-api-py docs.