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

Set up API Keys

Before using, set your Tenable access keys:

import tenable_was

tenable_was.accessKey = "YOUR_ACCESS_KEY"
tenable_was.secretKey = "YOUR_SECRET_KEY"

Search Configurations

Retrieve configurations excluding specific folders:

from tenable_was import search_configs

search_configs(limit=10)

Search Scans

Find completed scans for a specific configuration:

from tenable_was import search_scans

search_scans(config_id="your-config-id", limit=10)

Export Scan Reports

Generate and download a scan report:

from tenable_was import export_scan

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

Requirements

  • Python 3.11+
  • Requests 2.32.3+

Author

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.2.0.tar.gz (10.5 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.2.0-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenable_was-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7b608ed44fc3f536a5267f3986f3675362892a046b83b22a9569b30cd1a42de7
MD5 1dd74528c12c350a68c44b69f7d9cc25
BLAKE2b-256 0c3258293f97668851232112a578ca1fc2b4d018a9d4a5d7ed878041a2ab2e72

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tenable_was-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 90bd3a16176163c2720eadf3e3b21295b00df01cf7fb511b11efe0e7532c4f8a
MD5 194d8238fb05b91b57654dca610a9d19
BLAKE2b-256 6d6163bd3a6ce9f8da45d09b694c14244a76df2d0628120f1492ffeca8787715

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