Skip to main content

Python wrapper for Tenable SecurityCenter API

A powerful wrapper around the SecurityCenter API. Manages authentication, building requests, and interpreting responses. Supports the full, unpublished API, above the limited API officially documented. The “module::action” pattern of the API is represented as dotted access to attributes and methods on the client.

Install:

$ pip install SecurityCenter

Use:

>>> from securitycenter import Client
>>> client = Client('https://localhost:443', 'user', 'password', 'cert_file.crt')
>>> scan_results = client.scan_result.init()

Many actions return more than the specifically requested data. For example, scanResult::init returns information including users and scanners as well. Many methods are configured to extract the most common value (in the example, the scan results). If a method extracts a value by default, pass _key=None to return the full response instead.

>>> response = client.scan_result.init(_key=None)
>>> response.keys()  # all keys returned by method

Some actions return chunks of results. The library standardizes how paginated requests are made to always use page and page_size arguments, and the results become a special pagination object that can iterate over subsequent pages.

>>> p3 = client.scan_result.get_page(page=3, page_size=10)  # 3rd page, where each page has 10 items
>>> p3  # list of items on current page
>>> p4 = p1.next_page()  # make request for next page
>>> pages = list(p1.iter_pages())  # all pages
>>> items = list(p1.iter_items())  # all items

Metadata

Release files for SecurityCenter 1.0.5

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

Source distribution (sdist)

Source distribution for SecurityCenter 1.0.5
File Size Uploaded Provenance Actions
SecurityCenter-1.0.5.tar.gz 12.0 kB Without provenance Details for SecurityCenter-1.0.5.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for SecurityCenter 1.0.5
File Interpreter ABI Platform Actions
SecurityCenter-1.0.5-py2.py3-none-any.whl Python 2, Python 3 none any Details for SecurityCenter-1.0.5-py2.py3-none-any.whl

Total release size: 28.3 kB

Release files / SecurityCenter-1.0.5.tar.gz

Download URL SecurityCenter-1.0.5.tar.gz
Size 12.0 kB
Tags Source
SHA-256 checksum
How to use checksums
a081c11935a96f9633bfa02879975503b8f3e7b8f145329be83860d78ad1ba7e
BLAKE2b-256 checksum
How to use checksums
9686da6961f937006d97455b4aac86b8ef6f64ee57c448f2e7553ba845db63a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release files / SecurityCenter-1.0.5-py2.py3-none-any.whl

Download URL SecurityCenter-1.0.5-py2.py3-none-any.whl
Size 16.2 kB
Tags Python 2 Python 3
SHA-256 checksum
How to use checksums
c6cd6d04bd5c2e4344921841c3a13e93c83b23276e534a414855bd58bc332065
BLAKE2b-256 checksum
How to use checksums
af84883046e53d804b2a92e4b788662ca4ccdb873a203c0c755143a2820c2fc7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for SecurityCenter 1.0.5

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.

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