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.1.1.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.1.1-py3-none-any.whl (2.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: tenable_was-0.1.1.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.1.1.tar.gz
Algorithm Hash digest
SHA256 e5008608582aea738c58735f74b124a74dfda87ca88e2a2e5185b4ca25359813
MD5 bba0c87e569aec9da3cbb094c4e6b927
BLAKE2b-256 910ee535c1b09bb37ace49d86faf8f52ebc3869e7e0f464f7033a07d20a2d55e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for tenable_was-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63014d3c7ba4dc3174d68e542cb5a61100cc4e1fb83ab3591d0fc4c888833e10
MD5 455670d1a578c5c0e69f8c5dc6daa14b
BLAKE2b-256 0448082b648dc436c6c5dd496e0d69ff8fcba1eca0969570855bf6c5a709e255

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