Skip to main content

Add your description here

Project description

Tenable Integrations Framework Connector SDK (Tenint)

The goal of the tenint SDK 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.3.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

tenint-0.1.3-py3-none-any.whl (11.3 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenint-0.1.3.tar.gz
Algorithm Hash digest
SHA256 883326d370778e3ab9679c8727476b29f539b61d782a67179107e141bdb0f32e
MD5 ec778632003ab3ea2b59add8a983d1c0
BLAKE2b-256 54ad72014e5fb420292fe2361521875f4f9dfc057c4b3219c25067bdf041d8c5

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tenint-0.1.3-py3-none-any.whl
Algorithm Hash digest
SHA256 b6bece8be808c07a14325be91c2ee0c14d99ea4a2950b290e6928021fb9204f7
MD5 74c0f7d206350e9ba5dffb8d08e9cfb0
BLAKE2b-256 a9173a6d796d0a213f8f462bd55f3d04f6dfd68a0b8d3b5175a3c44f3e0caa99

See more details on using hashes here.

Supported by

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