Skip to main content

Unofficial Package for BitSight's API

Project description

Unofficial Library for using the BitSight API

This library makes it easy to perform some of the most common BitSight tasks via the BitSight API, while accounting for common responses and pagination.

Official BitSight API Documentation:

Setup:

pip install bitsight

Optional:

Set your BitSight API Token as an environment variable named BST_API_KEY. Otherwise, you will be prompted to enter your api token.

Example Usage:

import bitsight

Search for a company

companies = bitsight.Companies()
search_results = companies.get_company_search('example.com')

Subscribe to a company

guid = search_results[0]['guid']
subscriptions = bitsight.Subscriptions()
subscribe_result = subscriptions.post_subscribe(guid, bitsight.LicenseType.continuous_monitoring)

Get findings for a company

findings = companies.get_findings(guid)

Get risk vectors and rating history

company_details = companies.get_company_details(guid)

Download a company report

reports = bitsight.Reports()
report_successful = reports.post_download_company_report(guid, file_path='example_report.pdf')

Request a company

company_requests = bitsight.CompanyRequests()
company_request_response = company_requests.post_request_company('example.com')

Request a fast ratings report for a company

rua = bitsight.RapidUnderwriting()
fast_ratings_report = rua.post_request_rua(domain='example.com', company_name='Example', industry=bitsight.Industries.technology)

Get all companies in your portfolio

portfolio = bitsight.Portfolio()
portfolio_companies = portfolio.get_portfolio()

Get the latest alerts for your portfolio

alerts = bitsight.Alerts()
latest_alerts = alerts.get_latest_alerts()

Make any request

session_manager = bitsight.BitSight()
industries = session_manager.get(bitsight.Endpoints.V1.industries)

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

bitsight-0.2.4.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

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

bitsight-0.2.4-py3-none-any.whl (14.8 kB view details)

Uploaded Python 3

File details

Details for the file bitsight-0.2.4.tar.gz.

File metadata

  • Download URL: bitsight-0.2.4.tar.gz
  • Upload date:
  • Size: 12.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for bitsight-0.2.4.tar.gz
Algorithm Hash digest
SHA256 7d146bbb72b9c01914e0889dae770b55da40590b7d948804057eca937be4f2fc
MD5 f44c59324b1ff43690483da5467411ac
BLAKE2b-256 7aae1eaeeff85a2f164993760b66fd3daf6edb0539db7c0c47c8f61ad39b9473

See more details on using hashes here.

File details

Details for the file bitsight-0.2.4-py3-none-any.whl.

File metadata

  • Download URL: bitsight-0.2.4-py3-none-any.whl
  • Upload date:
  • Size: 14.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.7

File hashes

Hashes for bitsight-0.2.4-py3-none-any.whl
Algorithm Hash digest
SHA256 fd9dc63e67decdbfb11c4e43e9c9fa91ab8735581436885334a5b03e538d585f
MD5 6a4acc993d768f8a5b285a4a6b4b52af
BLAKE2b-256 407249b8b32ed98cd01e6fb523512d93a30512b90c7193acc09e6f9ff44b62ab

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