Skip to main content

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:

  1. 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
    
  2. 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:

  1. Create a new directory in the present working directory of the project with the name custom-conf.

  2. 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.

  3. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

paig_server-0.0.1-py3-none-any.whl (3.6 MB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page