Skip to main content
Python Software Foundation 20th Year Anniversary Fundraiser  Donate today!

Python library for Fortify Software Security Center (SSC) RESTFul API

Project description

Fortify API

Fortify API is a Python RESTFul API client module for Fortify’s Software Security Center

Quick Start

Several quick start options are available:

  • Build locally: pip install wheel setuptools && python build
  • Install with pip (recommended): pip install fortifyapi
  • Download the latest release.


from os import environ
from locale import LC_ALL, setlocale
from fortifyapi.fortify import FortifyApi

 # Set encoding
 environ["PYTHONIOENCODING"] = "utf-8"
 myLocale = setlocale(category=LC_ALL, locale="en_GB.UTF-8")

 # Set vars for connection
 url = 'https://some-fortify-host/ssc'
 user = 'Fortify SSC User'
 password = 'Fortify SSC Password'
 description = 'fortifyapi test client'

 # Authenticate and retrieve token
 def token():
     api = FortifyApi(host=url, username=user, password=password, verify_ssl=False)
     response = api.get_token(description=description)

 # Re-use token in all requests
 def api():
     api = FortifyApi(host=url, token=token(), verify_ssl=False)
     return api

 # List ID, Project/application Version
 def list():
     response = api().get_all_project_versions()
     data =['data']
     for version in data:
         print("{0:8} {1:30} {2:30}".format(version['id'], version['project']['name'], version['name']).encode(
             'utf-8', errors='ignore').decode())

 if __name__ == '__main__':

Bugs and Feature Requests

Found something that doesn’t seem right or have a feature request? Please open a new issue.

Project details

Download files

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

Files for fortifyapi, version 2.3
Filename, size File type Python version Upload date Hashes
Filename, size fortifyapi-2.3-py3-none-any.whl (12.0 kB) File type Wheel Python version py3 Upload date Hashes View
Filename, size fortifyapi-2.3.tar.gz (14.3 kB) File type Source Python version None Upload date Hashes View

Supported by

AWS AWS Cloud computing Datadog Datadog Monitoring DigiCert DigiCert EV certificate Facebook / Instagram Facebook / Instagram PSF Sponsor Fastly Fastly CDN Google Google Object Storage and Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Salesforce Salesforce PSF Sponsor Sentry Sentry Error logging StatusPage StatusPage Status page