Skip to main content

Python library enumerating the ThreadFix Professional RESTFul API.

Project description

.. image:: https://img.shields.io/pypi/v/threadfixproapi.svg
:target: https://pypi.org/project/threadfixproapi
.. image:: https://img.shields.io/pypi/pyversions/threadfixproapi.svg
.. image:: https://img.shields.io/travis/target/threadfixproapi/master.svg
:target: http://travis-ci.org/target/threadfixproapi

ThreadFix Pro API
**************

A Python module to assist with the `ThreadFix Professional <https://www.threadfix.it/>`__ RESTFul API to administer scan artifacts and overall ThreadFix vulnerability administration.

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

Several quick start options are available:

- Install with pip: ``pip install threadfixproapi``
- Build locally: ``python setup.py install``
- `Download the latest release <https://git.target.com/tts-pse/threadfixproapi/releases/new/>`__.

Example
~~~~~~~

::

# import the package
from threadfixproapi import threadfixpro

# setup threadfix connection information
host = 'https://127.0.0.1:8443/threadfix/'
api_key = 'your_api_key_from_threadfix_professional'

# initialize threadfix pro api module
tfp = threadfixpro.ThreadFixProApi(host, api_key)

# If you need to disable certificate verification.
# tfp = threadfixpro.ThreadFixProApi(host, api_key, verify_ssl=False)

# List your threadfix pro teams
teams = tfp.list_teams()
if teams.success:
print("{}".format(teams.data))

for team in teams.data:
print(team['name']) # Print the name of each team
else:
print("ERROR: {}".format(teams.message))

Supporting information for each method available can be found in the `documentation <https://target.github.io/threadfixapi/>`__.

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

Found something that doesn't seem right or have a feature request? `Please open a new issue <https://git.target.com/tts-pse/threadfixproapi/issues/new>`__.

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

- Copyright 2018 Target Brands, Inc.

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

threadfixproapi-1.0.1.zip (9.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

threadfixproapi-1.0.1-py2.py3-none-any.whl (7.9 kB view details)

Uploaded Python 2Python 3

File details

Details for the file threadfixproapi-1.0.1.zip.

File metadata

  • Download URL: threadfixproapi-1.0.1.zip
  • Upload date:
  • Size: 9.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for threadfixproapi-1.0.1.zip
Algorithm Hash digest
SHA256 f99ed5e1cc21d1242bb19fd30dd8be0aa1a1e0600328f3a68e529ba15e1fa7c8
MD5 2aee4a4aeaf2d5396a435791320f5d4f
BLAKE2b-256 f54f72d94189bc1cc42f0acd41e69b29b028a073966c47419067ca7942461693

See more details on using hashes here.

File details

Details for the file threadfixproapi-1.0.1-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for threadfixproapi-1.0.1-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a94f46a610b120c92d7de37df1de3adb16c0cf04f01f5abcecc6b7a187ca60a5
MD5 6c40dc2d339866d40621cc0fb7faa10d
BLAKE2b-256 f7df6facd1d38d92074aae057f6363a18f140890c5198a8c9b97c1654a92458e

See more details on using hashes here.

Supported by

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