Skip to main content

Python client for Tenable Web Application Scanning (WAS) API

Project description

tenable-was

A Python client library for interacting with Tenable's Web Application Scanning (WAS) APIs, simplifying tasks like searching configurations, scans, and exporting scan reports.

Installation

Install via pip:

pip install tenable-was

Usage

Initialize the Client

Create a client instance with your Tenable API keys:

from tenable_was import TenableClient

client = TenableClient(
    access_key="YOUR_ACCESS_KEY",
    secret_key="YOUR_SECRET_KEY",
    base_url="https://fedcloud.tenable.com"  # Optional, this is the default
)

Search Configurations

Retrieve scan configurations:

configs = client.search_configs(limit=10)
print(configs)

Search Scans

Find completed scans for a specific configuration:

scans = client.search_scans(config_id="your-config-id", limit=10)
print(scans)

Export Scan Reports

Generate and download a scan report:

report = client.export_scan(scan_id="your-scan-id")
print(report)

You can also specify the content type:

# Get report in JSON (default)
json_report = client.export_scan(scan_id="your-scan-id", content_type="application/json")

# Or get report in other formats
pdf_report = client.export_scan(scan_id="your-scan-id", content_type="application/pdf")

Requirements

  • Python 3.11+
  • Requests 2.32.3+

Authors

Building and Publishing

Building with uv

uv build

Publishing with uv

uv publish --token YOUR_PYPI_TOKEN_HERE

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

tenable_was-0.3.0.tar.gz (11.3 kB view details)

Uploaded Source

Built Distribution

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

tenable_was-0.3.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file tenable_was-0.3.0.tar.gz.

File metadata

  • Download URL: tenable_was-0.3.0.tar.gz
  • Upload date:
  • Size: 11.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.6.4

File hashes

Hashes for tenable_was-0.3.0.tar.gz
Algorithm Hash digest
SHA256 e1efba98ff80e34408001cbb9e3b4dfe8c16e7e7425dc14ebc1af8cd1458e85f
MD5 35d75bfc7737e9b9165478a9230df7d1
BLAKE2b-256 628202c52ee92cd0205eb49991ff51249e405c9ff5619b0b4bb8f103dce0c93b

See more details on using hashes here.

File details

Details for the file tenable_was-0.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tenable_was-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7b991f5861989d1c6a85fc7703ef4c5692e9c99d56a8b0092e6369bae9bc9ede
MD5 3eec9eb29ee4ab665b29bc7de7cc30b4
BLAKE2b-256 55a6438e2fefcf0b7a834945adeca09d6a19af9522f421561968ca56764228d1

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