Welcome to pyTenable’s documentation!
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.
Issue Tracker: https://github.com/tenable/pyTenable/issues
Github Repository: https://github.com/tenable/pyTenable
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.6.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pytenable-26.6.1.tar.gz | 309.6 kB | Without provenance | Details for pytenable-26.6.1.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pytenable-26.6.1-py3-none-any.whl | Python 3 | none | any | Details for pytenable-26.6.1-py3-none-any.whl |
Total release size: 733.5 kB
Release files / pytenable-26.6.1.tar.gz
| Download URL | pytenable-26.6.1.tar.gz |
|---|---|
| Size | 309.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
807f5adc52406fd918d4c3a88f66b25400c30fa9a8a945395a05f497cf16df2a
|
|
BLAKE2b-256 checksum How to use checksums |
9bb254b0fbcf7410ee28125cf0fa9f72834c0d16871a8b0928403868f7bc90fa
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / pytenable-26.6.1-py3-none-any.whl
| Download URL | pytenable-26.6.1-py3-none-any.whl |
|---|---|
| Size | 423.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ea2b234c8e7e344aec16708b415a562894c4195b689d2993727652117cabba58
|
|
BLAKE2b-256 checksum How to use checksums |
d1e7567c29a9946e4ffe8c6a124c279ab5dd3e6feeb6637841b0d3ffa331f5ca
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.11.18 {"installer":{"name":"uv","version":"0.11.18","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Security for pyTenable 26.6.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.