This project has been archived by its maintainers, and is no longer receiving any updates.
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"}"
Metadata
Release files for tenint 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| tenint-1.0.4.tar.gz | 9.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| tenint-1.0.4-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 23.5 kB
Release files / tenint-1.0.4.tar.gz
| Download URL | tenint-1.0.4.tar.gz |
|---|---|
| Size | 9.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
908f3136351e797c88eb599e67648a5c9dc25d30d1399d72099341b4cda708d7
|
|
BLAKE2b-256 checksum How to use checksums |
ea8ead6a1ea543602ff6e0b6de10812b8441d761866359b713f11069685375d3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.20
|
Release files / tenint-1.0.4-py3-none-any.whl
| Download URL | tenint-1.0.4-py3-none-any.whl |
|---|---|
| Size | 13.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
af0c6b52603ecdd19b9352130916ee24ca826544a084e8c6c4563187d3d2bb2f
|
|
BLAKE2b-256 checksum How to use checksums |
019c7afefaeff470cc41fb65405de7e6b7ce218fce2cb0923fa3a18a64f19f97
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.8.20
|