Beispiel #1
0
 def get_guardrails_obj():
     """Function to create guardrails class object"""
     import os
     ini_path = os.path.abspath(
         os.path.join(os.path.dirname(__file__), os.pardir))
     ini_path = os.path.join(ini_path, "test_resource", "guardrail.ini")
     return Guardails(ini_path)
"""Koninklijke Philips N.V., 2019 - 2020. All rights reserved."""

import sys
from guardrails.guardrails import Guardails
from guardrails.guardrails import create_parser

if __name__ == '__main__':
    ARGS = create_parser(sys.argv[1:])
    GUARD_OBJ = Guardails(ARGS.path)
    GUARD_OBJ.orchestrate_guardrails()