fortifyapi


Namefortifyapi JSON
Version 3.1.14 PyPI version JSON
download
home_pagehttps://github.com/fortifyadmin/fortifyapi
SummaryPython library for Fortify Software Security Center (SSC) RESTFul API
upload_time2023-11-21 22:29:18
maintainer
docs_urlNone
authorBrandon Spruth, Matthew Gill
requires_python
licenseMIT
keywords fortify api security software microfocus ssc sast
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/pypi/v/fortifyapi.svg
.. image:: https://img.shields.io/pypi/pyversions/fortifyapi.svg
.. image:: https://img.shields.io/circleci/build/github/fortifyadmin/fortifyapi/master?logo=CircleCI

Fortify API
***********

Fortify API is a Python RESTFul API client module for Fortify's `Software Security Center <https://www.microfocus.com/en-us/products/software-security-assurance-sdlc/overview/>`_

Quick Start
~~~~~~~~~~~

Several quick start options are available:

- Build locally: ``pip install wheel setuptools && python setup.py build`` 
- Install with pip (recommended): ``pip install fortifyapi``
- `Download the latest release <https://pypi.org/project/fortifyapi/>`__.

Example
~~~~~~~

.. code:: python

   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)
       return response.data['data']['token']
    
   # 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 = response.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__':
        list()

Bugs and Feature Requests
~~~~~~~~~~~~~~~~~~~~~~~~~

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

Copyright and License
~~~~~~~~~~~~~~~~~~~~~
.. image:: https://img.shields.io/github/license/fortifyadmin/fortifyapi.svg?style=flat-square


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/fortifyadmin/fortifyapi",
    "name": "fortifyapi",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "",
    "maintainer_email": "",
    "keywords": "fortify,api,security,software,microfocus,ssc,sast",
    "author": "Brandon Spruth, Matthew Gill",
    "author_email": "brandon@spruth.co, mgill@c0ffee.me",
    "download_url": "https://files.pythonhosted.org/packages/5e/f6/9e4054d69a9208db27f6272762d1a37c0635b37ebdcafe7eaae68eea5ae4/fortifyapi-3.1.14.tar.gz",
    "platform": null,
    "description": ".. image:: https://img.shields.io/pypi/v/fortifyapi.svg\n.. image:: https://img.shields.io/pypi/pyversions/fortifyapi.svg\n.. image:: https://img.shields.io/circleci/build/github/fortifyadmin/fortifyapi/master?logo=CircleCI\n\nFortify API\n***********\n\nFortify API is a Python RESTFul API client module for Fortify's `Software Security Center <https://www.microfocus.com/en-us/products/software-security-assurance-sdlc/overview/>`_\n\nQuick Start\n~~~~~~~~~~~\n\nSeveral quick start options are available:\n\n- Build locally: ``pip install wheel setuptools && python setup.py build`` \n- Install with pip (recommended): ``pip install fortifyapi``\n- `Download the latest release <https://pypi.org/project/fortifyapi/>`__.\n\nExample\n~~~~~~~\n\n.. code:: python\n\n   from os import environ\n   from locale import LC_ALL, setlocale\n   from fortifyapi.fortify import FortifyApi\n    \n   # Set encoding\n   environ[\"PYTHONIOENCODING\"] = \"utf-8\"\n   myLocale = setlocale(category=LC_ALL, locale=\"en_GB.UTF-8\")\n    \n   # Set vars for connection\n   url = 'https://some-fortify-host/ssc'\n   user = 'Fortify SSC User'\n   password = 'Fortify SSC Password'\n   description = 'fortifyapi test client'\n    \n   # Authenticate and retrieve token\n   def token():\n       api = FortifyApi(host=url, username=user, password=password, verify_ssl=False)\n       response = api.get_token(description=description)\n       return response.data['data']['token']\n    \n   # Re-use token in all requests\n   def api():\n       api = FortifyApi(host=url, token=token(), verify_ssl=False)\n       return api\n    \n   # List ID, Project/application Version\n   def list():\n       response = api().get_all_project_versions()\n       data = response.data['data']\n       for version in data:\n           print(\"{0:8} {1:30} {2:30}\".format(version['id'], version['project']['name'], version['name']).encode(\n               'utf-8', errors='ignore').decode())\n    \n   if __name__ == '__main__':\n        list()\n\nBugs and Feature Requests\n~~~~~~~~~~~~~~~~~~~~~~~~~\n\nFound something that doesn't seem right or have a feature request? Please open a new issue.\n\nCopyright and License\n~~~~~~~~~~~~~~~~~~~~~\n.. image:: https://img.shields.io/github/license/fortifyadmin/fortifyapi.svg?style=flat-square\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Python library for Fortify Software Security Center (SSC) RESTFul API",
    "version": "3.1.14",
    "project_urls": {
        "Download": "https://github.com/fortifyadmin/fortifyapi/tarball/3.1.14",
        "Homepage": "https://github.com/fortifyadmin/fortifyapi"
    },
    "split_keywords": [
        "fortify",
        "api",
        "security",
        "software",
        "microfocus",
        "ssc",
        "sast"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "7dd581cb1a59833f1ffd29f52567610dfa283f129f4ff67f6d62976acb635b8a",
                "md5": "579f38a92bc866967bb1bb661c445f5b",
                "sha256": "eb47fd38a99d00aee41da6cbe49c77deb9b534247a35172d4f63bddf9352f93e"
            },
            "downloads": -1,
            "filename": "fortifyapi-3.1.14-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "579f38a92bc866967bb1bb661c445f5b",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 22611,
            "upload_time": "2023-11-21T22:29:16",
            "upload_time_iso_8601": "2023-11-21T22:29:16.208092Z",
            "url": "https://files.pythonhosted.org/packages/7d/d5/81cb1a59833f1ffd29f52567610dfa283f129f4ff67f6d62976acb635b8a/fortifyapi-3.1.14-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "5ef69e4054d69a9208db27f6272762d1a37c0635b37ebdcafe7eaae68eea5ae4",
                "md5": "4e424e5812b2a9fec9137d3a081e41ff",
                "sha256": "3d7c39408a1456d2151beb09ea2832df729eb5e1b474a80171fe8075f69dc1e6"
            },
            "downloads": -1,
            "filename": "fortifyapi-3.1.14.tar.gz",
            "has_sig": false,
            "md5_digest": "4e424e5812b2a9fec9137d3a081e41ff",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 28457,
            "upload_time": "2023-11-21T22:29:18",
            "upload_time_iso_8601": "2023-11-21T22:29:18.193209Z",
            "url": "https://files.pythonhosted.org/packages/5e/f6/9e4054d69a9208db27f6272762d1a37c0635b37ebdcafe7eaae68eea5ae4/fortifyapi-3.1.14.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-21 22:29:18",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "fortifyadmin",
    "github_project": "fortifyapi",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "circle": true,
    "requirements": [],
    "lcname": "fortifyapi"
}
        
Elapsed time: 0.15155s