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.9.1.tar.gz (8.5 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.9.1-py3-none-any.whl (11.9 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenint-0.9.1.tar.gz
Algorithm Hash digest
SHA256 8c3ee7046edc84a82d9834d0c67752cd7bdc3c9a91a2d6eafc827b10ea118597
MD5 f8d009a3254e27067029ba28e6250519
BLAKE2b-256 764ad8eb49909cd3ad01196114947858330afa551297854ba08e2aba795db119

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tenint-0.9.1-py3-none-any.whl
Algorithm Hash digest
SHA256 63334031c9fe7577982506ac4bb8cd41d76808b88b0872f699ca078124cfc462
MD5 efeaa4952ba10ca82e3e848c72a4e8a8
BLAKE2b-256 4b78b63a97673b03828ed221f3dbc62154952c0c72f284ade03227a92f0a335f

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