Skip to main content

Welcome to pyTenable’s documentation!

https://img.shields.io/pypi/v/pytenable.svg https://img.shields.io/badge/python-3.10%2B-blue https://img.shields.io/readthedocs/pytenable https://img.shields.io/pypi/dm/pytenable https://img.shields.io/github/license/tenable/pyTenable.svg https://sonarcloud.io/api/project_badges/measure?project=tenable_pyTenable&metric=alert_status

pyTenable is intended to be a pythonic interface into the Tenable application APIs. Further by providing a common interface and a common structure between all of the various applications, we can ease the transition from the vastly different APIs between some of the products.

Installation

To install the most recent published version to pypi, its simply a matter of installing via pip:

pip install pytenable

If you’re looking for bleeding-edge, then feel free to install directly from the github repository like so:

pip install git+git://github.com/tenable/pytenable.git#egg=pytenable

Getting Started

Lets assume that we want to get the list of scans that have been run on our Tenable.io application. Performing this action is as simple as the following:

from tenable.io import TenableIO
tio = TenableIO(access_key='TIO_ACCESS_KEY', secret_key='TIO_SECRET_KEY')
for scan in tio.scans.list():
   print('{status}: {id}/{uuid} - {name}'.format(**scan))

Getting started with Tenable.sc is equally as easy:

from tenable.sc import TenableSC
sc = TenableSC(url='https://SC_URL', access_key='AKEY', secret_key='SKEY')
for vuln in sc.analysis.vulns():
   print('{ip}:{pluginID}:{pluginName}'.format(**vuln))

For more detailed information on whats available, please refer to the pyTenable Documentation

Logging

Enabling logging for pyTenable is a simple matter of enabling debug logs through the python logging package. An easy example is detailed here:

import logging
logging.basicConfig(level=logging.DEBUG)

License

The project is licensed under the MIT license.

Metadata

Release files for pyTenable 26.10.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyTenable 26.10.1
File Size Uploaded
pytenable-26.10.1.tar.gz 314.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyTenable 26.10.1
File Interpreter ABI Platform
pytenable-26.10.1-py3-none-any.whl Python 3 none any Details

Total release size: 745.2 kB

Release files / pytenable-26.10.1.tar.gz

Download URL pytenable-26.10.1.tar.gz
Size 314.5 kB
Tags Source
SHA-256 checksum
How to use checksums
65b29ab0ad5b5ccfa43eab2d8418e5ff0389402ad1371fe1b2fa60fb011c281e
BLAKE2b-256 checksum
How to use checksums
86b9498daca1856632827edb10d83ed9c77433cbd00d7dae5b055262652134ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release files / pytenable-26.10.1-py3-none-any.whl

Download URL pytenable-26.10.1-py3-none-any.whl
Size 430.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ec12854fe5991dfbafa0034e2a71fa4e37a6e81eca3b4cc7c8e9cb651cd1cd5f
BLAKE2b-256 checksum
How to use checksums
018ab1aa456b423a0d92ea08cc6d7899e0dc0e2176f5ab0aa067dbe84f67e977
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.13.0 {"installer":{"name":"uv","version":"0.13.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}

Release history Release notifications | RSS feed

This release

26.10.1 This release

2 release files

26.8.1

2 release files

26.6.1

2 release files

26.5.1

2 release files

1.9.1

2 release files

1.9.0

2 release files

1.8.4

2 release files

1.8.3

2 release files

1.8.2

2 release files

1.8.1

2 release files

1.8.0

2 release files

1.7.5

2 release files

1.7.4

2 release files

1.7.3

2 release files

1.7.2

2 release files

1.7.1

2 release files

1.7.0

2 release files

1.6.3

2 release files

1.6.2

2 release files

1.6.1

2 release files

1.6.0

2 release files

1.5.3

2 release files

1.5.2

2 release files

1.5.1

2 release files

1.5.0

2 release files

1.4.22

2 release files

1.4.20

2 release files

1.4.18

2 release files

1.4.17

2 release files

1.4.14

2 release files

1.4.13

2 release files

1.4.11

2 release files

1.4.10

2 release files

1.4.8

2 release files

1.4.7

2 release files

1.4.6

2 release files

1.4.4

1 release file

1.4.3

1 release file

1.4.0

1 release file

1.3.3

1 release file

1.3.2

1 release file

1.2.8

1 release file

1.1.4

1 release file

1.1.0

1 release file

0.3.29

1 release file

0.2.2

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page