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 --background true
    
  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()
    

PAIG Server Background Mode

PAIG can be run in the background mode by setting the background flag to true.

  1. To Start the PAIG in the background mode:
paig run --background true

Note: Please use help command to see all available options you can pass on command line.

paig --help
  1. To Stop the PAIG Server:
paig stop
  1. To Check the status of the PAIG Server:
paig status

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

If you're not sure about the file name format, learn more about wheel file names.

paig_server-0.0.4-py3-none-any.whl (3.6 MB view details)

Uploaded Python 3

File details

Details for the file paig_server-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: paig_server-0.0.4-py3-none-any.whl
  • Upload date:
  • Size: 3.6 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.16

File hashes

Hashes for paig_server-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 0e284505e1db14382ff0da7a1b3a136135bc0bf3451ef2138bcc6675fd4e5762
MD5 1b73648f410c820e7f2fd716b6302ccc
BLAKE2b-256 2dfcee85527035da4832b0f236a2d81603aee61d4c9ce086d633a752244535e1

See more details on using hashes here.

Supported by

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