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.4.tar.gz (9.2 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.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenint-0.9.4.tar.gz
Algorithm Hash digest
SHA256 d7a796958ddd0ad520d87c88cfeb1a1c6f69311bd3edb81543d5f2edeb59b868
MD5 85923f671b052e86a372f3b220a5e016
BLAKE2b-256 b435d4373cef11bc7b2ae3bd74c9689559001798014c5af8123b309675916b8c

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tenint-0.9.4-py3-none-any.whl
Algorithm Hash digest
SHA256 e606995906c830010fca28b439ff53703b1bcec55cd081d77f7dc037efd9a40f
MD5 fc67c969ba8249554d3a92a4c35103a6
BLAKE2b-256 1eee208431416521ea9a348a55bfb0a1a6276624aad079b5f3467811ff554784

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