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.2.tar.gz (12.3 kB view details)

Uploaded Source

Built Distribution

bitsight-0.2.2-py3-none-any.whl (14.6 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for bitsight-0.2.2.tar.gz
Algorithm Hash digest
SHA256 06a40c30f5dca0e22b2c38cadffe2e050e042c367b048a1e65e3c6dd1e37837a
MD5 fae4075c658d551a4db2ff9bb308becc
BLAKE2b-256 3accd31ae6c09dd5a11a15436012e7c44295666b87e983af5da523e177fe6ba2

See more details on using hashes here.

File details

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

File metadata

  • Download URL: bitsight-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 14.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for bitsight-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 0a45a3a8ae4404b75c242ebc7decdd0e6e810024265104b1bc35fc64a73e94df
MD5 74dca107ba532dd989095e99b6e3319d
BLAKE2b-256 984c8de9feca1646e8102223e2e62b8475f02b484941ec20444fb8a2fd616220

See more details on using hashes here.

Supported by

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