Skip to main content

ThreadFix API

A Python API wrapper to facilitate interactions with ThreadFix.

This package implements all API functionality available within ThreadFix 2.2.2 (Apr 30).

Quick Start

Several quick start options are available:

  • Install with pip (recommended): pip install threadfix_api

  • Download the latest release

  • Clone the repository: git clone https://github.com/aparsons/threadfix_api.git

Example

# import the package
from threadfix_api import threadfix

# setup threadfix connection information
host = 'http://localhost:8080/threadfix/'
api_key = 'your_api_key_from_threadfix'

# instantiate the threadfix api wrapper
tf = threadfix.ThreadFixAPI(host, api_key)

# If you need to disable certificate verification, set verify_ssl to False.
# tf = threadfix.ThreadFixAPI(host, api_key, verify_ssl=False)

# You can also specify a local cert to use as client side certificate, as a
# single file (containing the private key and the certificate) or as a tuple
# of both file's path.
# cert=('/path/server.crt', '/path/key')
# tf = threadfix.ThreadFixAPI(host, api_key, cert=cert)

# rock and roll
teams = tf.list_teams()
if teams.success:
    print(teams.data)  # Decoded JSON object

    for team in teams.data:
        print(team['name'])  # Print the name of each team
else:
    print('Uh Oh! ' + teams.message)

Supporting information for each method available can be found in the documentation.

Bugs and Feature Requests

Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue.

Metadata

Release files for threadfix_api 1.1.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for threadfix_api 1.1.1
File Size Uploaded Provenance Actions
threadfix_api-1.1.1.zip 14.7 kB Without provenance Details for threadfix_api-1.1.1.zip

Built distribution (wheel)

Table of built distributions (wheels) for threadfix_api 1.1.1
File Interpreter ABI Platform Actions
threadfix_api-1.1.1-py3-none-any.whl Python 3 none any Details for threadfix_api-1.1.1-py3-none-any.whl

Total release size: 23.3 kB

Release files / threadfix_api-1.1.1.zip

Download URL threadfix_api-1.1.1.zip
Size 14.7 kB
Tags Source
SHA-256 checksum
How to use checksums
7ddac66031178cbe483ce93dcd14e017c59f243618d3f05d6980425d7d677047
BLAKE2b-256 checksum
How to use checksums
ac8292038be5318ba55de475c86e9879c42ae47b8fc29575df8add83a037ce7f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / threadfix_api-1.1.1-py3-none-any.whl

Download URL threadfix_api-1.1.1-py3-none-any.whl
Size 8.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
0516470787d5d0d0ee4c769d0754d9da553d9f3cbdfb451de01f4d06343059f9
BLAKE2b-256 checksum
How to use checksums
f11c0336308c036d2ffc215144e1b7a81de2d2c5edef8891b91d8a3aabc83801
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for threadfix_api 1.1.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.1.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page