Skip to main content

Python helper library for working with the Veracode APIs. Handles retries, pagination, and other features of the modern Veracode REST APIs.

Project description

Veracode API Python

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.

Setup

Install from pypi:

pip install veracode-api-py

Authenticating from a developer machine

Save Veracode API credentials in ~/.veracode/credentials

[default]
veracode_api_key_id = <YOUR_API_KEY_ID>
veracode_api_key_secret = <YOUR_API_KEY_SECRET>

Authenticating from a pipeline

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>

Authenticating through a proxy

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'

Use in your applications

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.

Docs

For detailed documentation on the available methods, please see the veracode-api-py docs.

Notes

  1. Different API calls require different roles or permissions. Consult the Veracode Docs.
  2. This library does not include a complete set of Veracode API methods. In particular, it only provides a handful of XML API methods.
  3. Contributions are welcome. See the Contributions guidelines.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veracode_api_py-0.9.53.tar.gz (33.3 kB view details)

Uploaded Source

Built Distribution

veracode_api_py-0.9.53-py3-none-any.whl (34.8 kB view details)

Uploaded Python 3

File details

Details for the file veracode_api_py-0.9.53.tar.gz.

File metadata

  • Download URL: veracode_api_py-0.9.53.tar.gz
  • Upload date:
  • Size: 33.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.7

File hashes

Hashes for veracode_api_py-0.9.53.tar.gz
Algorithm Hash digest
SHA256 83a6e3191ca93d77c2de4acc1ebc17d6c1e5042aee79e1ca6491004cd94ebd38
MD5 809ea555634e21330fb7846dd14a3219
BLAKE2b-256 fd229c6aabdfb33245aa56e45ac4212475b36d17d06971dabf7a47692771d0f4

See more details on using hashes here.

File details

Details for the file veracode_api_py-0.9.53-py3-none-any.whl.

File metadata

File hashes

Hashes for veracode_api_py-0.9.53-py3-none-any.whl
Algorithm Hash digest
SHA256 1839bd806b2891c25fdc65cd986e1ad326d0988396eb75af49a1b15ac7b19dae
MD5 c3b229800dbb9100fefb8d45f8e76f62
BLAKE2b-256 d9c3651db46e500e4f3bc648fdbdcebe56b9a0e8a093c14a88ae1e39e3fd1fab

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page