skillfed

pyTenable

Python library to interface into Tenable's products and applications

pytenable v26.6.1 346.3K downloads/30d#7,356 on PyPI417
Permissive license MIT License Active released

What it is and what it does

pyTenable is a Python wrapper that normalizes access to multiple Tenable vulnerability management and security products under a common interface. Rather than learning each product's distinct REST API, you instantiate a product-specific client and call methods that follow consistent patterns across the library.

The package depends on requests for HTTP communication, marshmallow and pydantic for data validation and serialization, graphql-core for GraphQL support, and several utility libraries including python-dateutil, arrow, semver, defusedxml, and python-box to handle common data transformation tasks. It's designed for developers who need to automate vulnerability scanning, retrieve scan results, manage security policies, or integrate vulnerability data into larger security workflows.

Use it for:

  • Automate vulnerability scans and retrieve results programmatically for reporting or downstream processing.
  • Query for vulnerabilities and compliance data to feed into a centralized security dashboard or SIEM.
  • Build orchestration scripts that manage scan schedules, policies, or asset groups across products.
  • Integrate vulnerability data into CI/CD pipelines to gate deployments based on scan findings.
  • Export and transform vulnerability metadata for custom analysis or compliance audits.

Worth the install?

AI-flagged interpretation of the facts on this page — verify before relying

pyTenable provides a unified Python interface to Tenable's vulnerability management and security products, abstracting away differences between their individual APIs.

Yes. pyTenable is actively maintained, has low install friction, carries no known security vulnerabilities, and is licensed permissively under MIT. It's appropriate for any Python project that needs to integrate with Tenable products. The main consideration is whether your use case fits the products it supports.

Install

pytenable on PyPI

pip

pip install pytenable

uv

uv add pytenable

poetry

poetry add pytenable

Installing pyTenable

Before you install

Low friction install with a pure Python wheel. Actively maintained as of 2026-08-05 with 14 runtime dependencies. Supports current Python versions; requires 3.11 or later.

License in practice

MIT License (permissive) — you can use, modify, and distribute this package freely in commercial and private projects with minimal restrictions.

Quickstart

pip install pytenable

from tenable.io import TenableIO
tio = TenableIO(access_key='YOUR_KEY', secret_key='YOUR_SECRET')
for scan in tio.scans.list():
    print(scan)

Requires Python 3.11 or later. You must obtain valid API credentials (access_key and secret_key) from your Tenable application.

Verify before relying

  • Whether all 14 runtime dependencies are truly required for basic use or if some are optional for specific products.
  • Performance characteristics when handling large result sets from scans or analyses.
  • Which Tenable product versions are supported and whether there are known compatibility gaps.

Package facts

License MIT License (permissive)
Python support supports the current Python release (>=3.11)
Install friction low — pure-Python wheel
Runtime dependencies 14 — requests, python-dateutil, semver, marshmallow, python-box, defusedxml, urllib3, typing-extensions, requests-toolbelt, gql, graphql-core, pydantic, pydantic-extra-types, arrow
Maintenance actively maintained — 65 days since the last release
Last repo commit
First released
Downloads 346,255/month — #7,356 on PyPI (30-day window, as of 2026-08-14)
Known vulnerabilities none known (OSV.dev, checked 2026-08-14)

Evidence: pytenable-26.6.1-py3-none-any.whl

Keywords: tenable, tenable vulnerability management, tenable security center, tenable securitycenter, tenable.io, tenable.sc, tenable.cs, tenable cloud security, tenable container security, tenable.ot, tenable ot security, tenable one, tenable cloud

Development Status :: 5 - Production/StableIntended Audience :: DevelopersLicense :: OSI Approved :: MIT LicenseProgramming Language :: Python :: 3.10Programming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Topic :: Software DevelopmentTopic :: Software Development :: LibrariesTopic :: Software Development :: Libraries :: Application Frameworks

Tags

tenable api client pythonvulnerability management api wrappertenable security integrationtenable.io python clientsecurity scanning orchestrationtenable cloud security apivulnerability data retrieval
vulnerability-managementsecurity-apitenable-integration

More Software Development packages