Registry / http-networking / veracode-api-py

veracode-api-py

JSON →
library0.9.67pypypi✓ verified 84d ago

This is an officially supported Python helper library for interacting with the Veracode APIs, primarily focusing on the modern REST APIs. It simplifies API calls by handling authentication, retries, pagination, and provides higher-level abstractions for common Veracode functions. The library is currently at version `0.9.65` and receives frequent updates for bug fixes and new feature support.

pip install veracode-api-py
INSTALL
IMPORT
SIG · VERACODE-API-PY
V
veracode-api-py
http-networkingpythonv0.9.67
Install
6.0s avg
Import
Disk
39MB
Pass rate
10/ 10
Env Coverage10 / 10
glibc
3.93.13
musl
3.93.13
Install & Compatibility
Where this runs
tested against v0.9.67 · pip install
no network on importno background threads
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
py 3.103.910 runs
installs and imports cleanly · install 0.0s · import 0.000s · 36.9MB
glibc
py 3.103.910 runs
installs and imports cleanly · install 6.0s · import 0.000s · 38MB
39MB installed
● package 39MB
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

Applications
from veracode_api_py import Applications
from veracode.applications import Applications

This example demonstrates how to initialize the `Applications` client and retrieve a list of your Veracode applications. It expects your Veracode API Key ID and Secret to be set as environment variables `VERACODE_API_KEY_ID` and `VERACODE_API_KEY_SECRET` respectively. It includes a basic check for these variables.

import os from veracode.applications import Applications # Ensure Veracode API credentials are set as environment variables # VERACODE_API_KEY_ID and VERACODE_API_KEY_SECRET api_key_id = os.environ.get('VERACODE_API_KEY_ID', '') api_key_secret = os.environ.get('VERACODE_API_KEY_SECRET', '') if not api_key_id or not api_key_secret: print("WARNING: Veracode API credentials not found in environment variables.") print("Please set VERACODE_API_KEY_ID and VERACODE_API_KEY_SECRET.") else: try: # Initialize the Applications client apps = Applications() # Get the first 10 applications all_applications = apps.get_all(size=10) if all_applications: print(f"Found {len(all_applications)} applications:") for app in all_applications: print(f" - {app.get('name')} (ID: {app.get('id')})") else: print("No applications found or accessible.") except Exception as e: print(f"An error occurred: {e}")
Debug
Known issues
gotchaThe library is currently in `0.9.x` release series. While efforts are made to maintain stability, minor versions *could* introduce breaking changes or significant API adjustments before reaching a stable `1.0.0` release. Always review changelogs when upgrading.
fix
Review the GitHub changelog or release notes before upgrading minor versions. Pin your dependency to `veracode-api-py~=0.9.x` to avoid unexpected breaking changes.
affects: <1.0.0
gotchaAuthentication relies on environment variables (`VERACODE_API_KEY_ID`, `VERACODE_API_KEY_SECRET`) or a configuration file (`~/.veracode/credentials`). Incorrectly set or missing credentials will result in `AuthenticationError`.
fix
Ensure `VERACODE_API_KEY_ID` and `VERACODE_API_KEY_SECRET` environment variables are correctly set, or configure a valid `~/.veracode/credentials` file as per the `requests-veracode` documentation.
affects: All
gotchaThe library automatically handles API pagination and retries. However, for large datasets, be mindful of the performance implications and potential rate limiting from the Veracode API itself, even with retries.
fix
For very large API responses, consider using filters or `size` parameters in your API calls to retrieve data in smaller chunks if direct fetching of 'all' items is too slow or hits limits. Implement local caching where appropriate.
affects: All
Upgrade
Version history
0.9.67latest on PyPI · released Jun 2, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
39 hits · last 30 days
node
34
OpenAI (training)
1
Resources
veracode-api-py — pip install veracode-api-py · libregistry