{"id":10337,"library":"veracode-api-py","title":"Veracode API Python Library","description":"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.","status":"active","version":"0.9.65","language":"python","source_language":"en","source_url":"https://github.com/veracode/veracode-api-py","tags":["veracode","api","security","devsecops","application-security"],"install":[{"cmd":"pip install veracode-api-py","lang":"bash","label":"Install latest version"}],"dependencies":[],"imports":[{"wrong":"from veracode.applications import Applications","symbol":"Applications","correct":"from veracode_api_py import Applications"}],"quickstart":{"code":"import os\nfrom veracode.applications import Applications\n\n# Ensure Veracode API credentials are set as environment variables\n# VERACODE_API_KEY_ID and VERACODE_API_KEY_SECRET\napi_key_id = os.environ.get('VERACODE_API_KEY_ID', '')\napi_key_secret = os.environ.get('VERACODE_API_KEY_SECRET', '')\n\nif not api_key_id or not api_key_secret:\n    print(\"WARNING: Veracode API credentials not found in environment variables.\")\n    print(\"Please set VERACODE_API_KEY_ID and VERACODE_API_KEY_SECRET.\")\nelse:\n    try:\n        # Initialize the Applications client\n        apps = Applications()\n\n        # Get the first 10 applications\n        all_applications = apps.get_all(size=10)\n\n        if all_applications:\n            print(f\"Found {len(all_applications)} applications:\")\n            for app in all_applications:\n                print(f\"  - {app.get('name')} (ID: {app.get('id')})\")\n        else:\n            print(\"No applications found or accessible.\")\n    except Exception as e:\n        print(f\"An error occurred: {e}\")","lang":"python","description":"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."},"warnings":[{"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.","message":"The 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.","severity":"gotcha","affected_versions":"<1.0.0"},{"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.","message":"Authentication 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`.","severity":"gotcha","affected_versions":"All"},{"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.","message":"The 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.","severity":"gotcha","affected_versions":"All"}],"env_vars":null,"search_vec":"'0.9.65':51 'abstract':40 'api':2,18,25,28,64 'applic':68 'application-secur':67 'authent':32 'bug':57 'call':29 'common':42 'current':48 'devsecop':66 'featur':61 'fix':58 'focus':20 'frequent':54 'function':44 'handl':31 'helper':11 'higher':38 'higher-level':37 'interact':14 'level':39 'librari':4,12,46 'modern':23 'new':60 'offici':8 'pagin':34 'primarili':19 'provid':36 'python':3,10 'receiv':53 'rest':24 'retri':33 'secur':65,69 'simplifi':27 'support':9,62 'updat':55 'veracod':1,17,43,63 'version':50","created_at":"2026-04-17T01:23:36.906443+00:00","updated_at":"2026-04-17T01:23:36.906443+00:00","problems":null,"ecosystem":"pypi","meta_description":null,"install_score":null,"quickstart_score":null,"quickstart_tag":null,"pypi_latest":"0.9.67","cli_name":"","cli_version":null,"type":"library","homepage":"https://www.veracode.com","github":"https://github.com/veracode/veracode-api-py","docs":null,"changelog":null,"pypi":"https://pypi.org/project/veracode-api-py/","npm":null,"openapi_spec":null,"status_page":null,"smithery":null,"categories":["http-networking","auth-security","devops"],"base_url":null,"auth_type":null,"provenance":{"verified_status":"passing","verified_at":"2026-06-30","last_verified":"2026-06-30","next_check":"2026-07-30","install_tag":null}}