Welcome to pyTenable's documentation!
=====================================
.. image:: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ftenable%2FpyTenable%2Fbadge&label=build
:target: https://github.com/tenable/pyTenable/actions
.. image:: https://img.shields.io/pypi/v/pytenable.svg
:target: https://pypi.org/project/pyTenable/
.. image:: https://img.shields.io/badge/python-3.7%203.8%203.9%203.10%203.11-blue
:target: https://pypi.org/project/pyTenable/
.. image:: https://img.shields.io/pypi/dm/pytenable
:target: https://github.com/tenable/pytenable
.. image:: https://img.shields.io/github/license/tenable/pyTenable.svg
:target: https://github.com/tenable/pytenable
.. image:: https://sonarcloud.io/api/project_badges/measure?project=tenable_pyTenable&metric=alert_status
:target: https://sonarcloud.io/project/overview?id=tenable_pyTenable
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:
.. code-block:: bash
pip install pytenable
If you're looking for bleeding-edge, then feel free to install directly from the
github repository like so:
.. code-block:: bash
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:
.. code-block:: python
from tenable.io import TenableIO
tio = TenableIO('TIO_ACCESS_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:
.. code-block:: python
from tenable.sc import TenableSC
sc = TenableSC('SECURITYCENTER_NETWORK_ADDRESS')
sc.login('SC_USERNAME', 'SC_PASSWORD')
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 <https://pytenable.readthedocs.io/>`_
Logging
-------
Enabling logging for pyTenable is a simple matter of enabling debug logs through
the python logging package. An easy example is detailed here:
.. code-block:: python
import logging
logging.basicConfig(level=logging.DEBUG)
License
-------
The project is licensed under the MIT license.
Raw data
{
"_id": null,
"home_page": null,
"name": "pyTenable",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"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",
"author": "Tenable, Inc.",
"author_email": "Steve McGrath <smcgrath@tenable.com>",
"download_url": "https://files.pythonhosted.org/packages/8a/3d/09e561c0814a343b63a255c312c064c8114ff39d773fcc75a6049ba6d621/pytenable-1.5.3.tar.gz",
"platform": null,
"description": "Welcome to pyTenable's documentation!\n=====================================\n\n.. image:: https://img.shields.io/endpoint.svg?url=https%3A%2F%2Factions-badge.atrox.dev%2Ftenable%2FpyTenable%2Fbadge&label=build\n :target: https://github.com/tenable/pyTenable/actions\n.. image:: https://img.shields.io/pypi/v/pytenable.svg\n :target: https://pypi.org/project/pyTenable/\n.. image:: https://img.shields.io/badge/python-3.7%203.8%203.9%203.10%203.11-blue\n :target: https://pypi.org/project/pyTenable/\n.. image:: https://img.shields.io/pypi/dm/pytenable\n :target: https://github.com/tenable/pytenable\n.. image:: https://img.shields.io/github/license/tenable/pyTenable.svg\n :target: https://github.com/tenable/pytenable\n.. image:: https://sonarcloud.io/api/project_badges/measure?project=tenable_pyTenable&metric=alert_status\n :target: https://sonarcloud.io/project/overview?id=tenable_pyTenable\n\npyTenable is intended to be a pythonic interface into the Tenable application\nAPIs. Further by providing a common interface and a common structure between\nall of the various applications, we can ease the transition from the vastly\ndifferent APIs between some of the products.\n\n- Issue Tracker: https://github.com/tenable/pyTenable/issues\n- Github Repository: https://github.com/tenable/pyTenable\n\nInstallation\n------------\n\nTo install the most recent published version to pypi, its simply a matter of\ninstalling via pip:\n\n.. code-block:: bash\n\n pip install pytenable\n\nIf you're looking for bleeding-edge, then feel free to install directly from the\ngithub repository like so:\n\n.. code-block:: bash\n\n pip install git+git://github.com/tenable/pytenable.git#egg=pytenable\n\nGetting Started\n---------------\n\nLets assume that we want to get the list of scans that have been run on our\nTenable.io application. Performing this action is as simple as the following:\n\n.. code-block:: python\n\n from tenable.io import TenableIO\n tio = TenableIO('TIO_ACCESS_KEY', 'TIO_SECRET_KEY')\n for scan in tio.scans.list():\n print('{status}: {id}/{uuid} - {name}'.format(**scan))\n\nGetting started with Tenable.sc is equally as easy:\n\n.. code-block:: python\n\n from tenable.sc import TenableSC\n sc = TenableSC('SECURITYCENTER_NETWORK_ADDRESS')\n sc.login('SC_USERNAME', 'SC_PASSWORD')\n for vuln in sc.analysis.vulns():\n print('{ip}:{pluginID}:{pluginName}'.format(**vuln))\n\nFor more detailed information on whats available, please refer to the\n`pyTenable Documentation <https://pytenable.readthedocs.io/>`_\n\nLogging\n-------\n\nEnabling logging for pyTenable is a simple matter of enabling debug logs through\nthe python logging package. An easy example is detailed here:\n\n.. code-block:: python\n\n import logging\n logging.basicConfig(level=logging.DEBUG)\n\nLicense\n-------\n\nThe project is licensed under the MIT license.\n",
"bugtrack_url": null,
"license": "MIT License",
"summary": "Python library to interface into Tenable's products and applications",
"version": "1.5.3",
"project_urls": {
"Changelog": "https://github.com/tenable/pytenable/blob/master/CHANGELOG.md",
"Homepage": "https://pytenable.readthedocs.io",
"Issues": "https://github.com/tenable/pytenable/issues",
"Repository": "https://github.com/tenable/pytenable"
},
"split_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"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "44c3a7bc5dc0b9bcd68da47e90cf83d560fbf0a8c9bb1c6e614623266f35f2bc",
"md5": "823c67a4ced9cb9da36d382359b45265",
"sha256": "f85c11564d66eac6ae310f4bb0bccb94f9b0425e6cbaee55b18882b3eaa9a6df"
},
"downloads": -1,
"filename": "pyTenable-1.5.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "823c67a4ced9cb9da36d382359b45265",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 354909,
"upload_time": "2024-09-24T13:54:05",
"upload_time_iso_8601": "2024-09-24T13:54:05.624313Z",
"url": "https://files.pythonhosted.org/packages/44/c3/a7bc5dc0b9bcd68da47e90cf83d560fbf0a8c9bb1c6e614623266f35f2bc/pyTenable-1.5.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "8a3d09e561c0814a343b63a255c312c064c8114ff39d773fcc75a6049ba6d621",
"md5": "10fdae7ce015be698336264c9b38baf7",
"sha256": "b47b046510dc8a9e98965355c95939d973a8d913fe969ecf9a555d71deb24dc1"
},
"downloads": -1,
"filename": "pytenable-1.5.3.tar.gz",
"has_sig": false,
"md5_digest": "10fdae7ce015be698336264c9b38baf7",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 245497,
"upload_time": "2024-09-24T13:54:07",
"upload_time_iso_8601": "2024-09-24T13:54:07.230633Z",
"url": "https://files.pythonhosted.org/packages/8a/3d/09e561c0814a343b63a255c312c064c8114ff39d773fcc75a6049ba6d621/pytenable-1.5.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-09-24 13:54:07",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "tenable",
"github_project": "pytenable",
"travis_ci": false,
"coveralls": true,
"github_actions": true,
"lcname": "pytenable"
}