Installation and Usage
Installation ¶
PAIG is a python library which can be installed using pip.
Usage ¶
PAIG can be used in following ways:
-
Run as a service:
You can simply run the PAIG 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 PAIG 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 PAIG as a service by running following command:
Optional Configuration ¶
PAIG provides overlay configuration. PAIG 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: