Skip to main content

Add your description here

Project description

Tenable Integrations Framework Connector Library (Tenint)

The goal of the tenint library is to provide a simple and reliable way to build the common framework needed to build the connector so that the framework can load & run the connector code.

Currently the code connector code is in a working state, however the commandline interface is still being actively developed. Currently supported with the tenint command is the following commands:

# To initialize a project with an example connector.py & pyproject.toml file.
tenint init 

# To build the connector image for local launching within docker
tenint build

Basics of a connector

Connectors require at a minimum a Settings object, the Connector object loaded and pointed to you're main handler, and the app launcher in order to load the interface.

At the absolute minimum, you would need the following:

from tenint import Connector, Settings


class AppSettings(Settings):
	value: str


connector = Connector(settings=AppSettings)


@connector.job
def run_me(config: AppSettings):
	print(f"Hello World!  Launched with {config.value}")


if __name__ == '__main__':
	connector.app()

Settings

The Settings class is a pydantic model that you can setup with the settings that you wish to expose to the user within the TIF interface. It will use the model to generate a JSONSchema defintion that is used to paint that page.

Running you code locally (no docker)

To run the code above, there are two commands exposed, config and run

python connector.py config

python connector.py run -j "{"value": "some string"}"

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

tenint-0.1.0.tar.gz (6.6 kB view details)

Uploaded Source

Built Distribution

tenint-0.1.0-py3-none-any.whl (8.2 kB view details)

Uploaded Python 3

File details

Details for the file tenint-0.1.0.tar.gz.

File metadata

  • Download URL: tenint-0.1.0.tar.gz
  • Upload date:
  • Size: 6.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for tenint-0.1.0.tar.gz
Algorithm Hash digest
SHA256 cab93e555f9cc0aa46e9b5d0eaf81cc70760590ea1e3117940396aa027c2c5c8
MD5 397f2b875050c008dd0cb62c469c8aa4
BLAKE2b-256 1f1dc426eae7d2d143268823ff55724bc596767b730c38f36b3de490f183a9a9

See more details on using hashes here.

File details

Details for the file tenint-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: tenint-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 8.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.5

File hashes

Hashes for tenint-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 888387f594d825dacad8b02f8f399d897219350d6ee9a79aeb6176d7c0ec3a9c
MD5 399045c780b4c8d8a3fd475c5e0226f2
BLAKE2b-256 36fb31e475d90f77805b911c56dba18bea615b790b28152001b6a52021ade1a8

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page