Installation and Usage
Installation ¶
Trust3 is a python library which can be installed using pip.
Usage ¶
Trust3 can be used in following ways:
-
Run as a service:
You can simply run the Trust3 as a service by running following command:Bash To get the help for the command and see all available [OPTIONS], you can run the following command:
Bash Example:
Bash -
Run as an Embedded Service:
You can run Trust3 in background by importing the library in your Python code. Please run the help command to see all available options you can pass while calling the launch_app method.You can simply run the Trust3 as a service by running following command:
Trust3 Server Background Mode ¶
Trust3 can be run in the background mode by setting the background flag to true.
- To Start the Trust3 in the background mode: Note: Please use help command to see all available options you can pass on command line.
Bash Bash - To Stop the Trust3 Server:
Bash - To Check the status of the Trust3 Server:
Bash
Optional Configuration ¶
Trust3 provides overlay configuration. Trust3 will use the default configuration provided in the default_config.yaml file. This default configuration can be overridden by the user-provided custom configuration. You can provide the custom configuration in the following ways:
- Create a new directory in the present working directory of the project with the name custom-conf.
- Create a new custom configuration file named
<env>_config.yaml
(e.g. dev_config.yaml) in the custom-conf folder which will override default_config.yaml. -
In a custom configuration file, the user should provide new configuration key values or override the existing configuration.
Example:custom-conf/dev_config.yaml
Note - If you want to create new secret, please follow the steps mentioned in How to create new password secretYAML
How to create new password secret¶
To create a new password secret, please run below python code: