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-1.0.2.tar.gz (9.3 kB view details)

Uploaded Source

Built Distribution

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

tenint-1.0.2-py3-none-any.whl (13.0 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for tenint-1.0.2.tar.gz
Algorithm Hash digest
SHA256 97289a2e2a06b799659ce058a2f8fe64845d4df7e12bb660766e1bf9889d9cb7
MD5 4e80c8ac11ecf093c390e7eb0b3c56b7
BLAKE2b-256 e3f68b91a2b0789dba5a82863493ae64a111c50cd073b47c151101e510016b19

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for tenint-1.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 fb41a28bf2c367744f99959528485e503128d543f8582a33d0a175b0ceee65a5
MD5 1f951d85abb962a1d8058b5a6da19cb1
BLAKE2b-256 54dffaeb200e6215419284489c32c9964f3d1291c4d57c50d88a43e4d9cfcb9b

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