PAIG Server
Project description
PAIG
PAIG offers tools designed to enhance the security and compliance of your AI applications. Whether you're using chatbots internally, incorporating AI services into your products, or utilizing automated tools to process tasks like customer support tickets or feedback, PAIG ensures that you maintain the highest standards of security and adherence to compliance. It's tailored for businesses that value a robust yet straight forward approach to AI application governance
Contents
Installation
PAIG is a python library which can be installed using pip.
pip install paig-server
python -m spacy download en_core_web_lg
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:paig run
To get the help for the command and see all available [OPTIONS], you can run the following command:
paig --help
Example:
paig run --port 4545 --host 0.0.0.0
-
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.from paig import launcher # Start the PIAG session = launcher.launch_app() # To get active sessions active_session = launcher.get_active_session() print(active_session) # To view the PIAG in the browser/Iframe print(active_session.url) # To view the PIAG in the Iframe active_session.view() # To stop the PIAG launcher.close_app()
Optional Configuration
PAIG provides overlay 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
database: url: "sqlite+aiosqlite:///db/database.db" security: basic_auth: secret: "<your_secret>"
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file paig_server-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: paig_server-0.0.3-py3-none-any.whl
- Upload date:
- Size: 3.6 MB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.15
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 43e4916c020b6252c97b437ca75774881c86f5698f15879902897b08050c4e7a |
|
MD5 | eb2dd775b6f988d76576a2c44b8212a7 |
|
BLAKE2b-256 | d4482d76ba8b45f96bb547d616cd502cd112fee6da473c58dbbc2618686f0498 |