Coverage for skema/rest/proxies.py: 100%
15 statements
« prev ^ index » next coverage.py v7.5.0, created at 2024-04-30 17:15 +0000
« prev ^ index » next coverage.py v7.5.0, created at 2024-04-30 17:15 +0000
1# -*- coding: utf-8 -*-
2"""
3Service proxies.
4"""
6import os
8# MORAE etc
10SKEMA_GRAPH_DB_PROTO = os.environ.get("SKEMA_GRAPH_DB_PROTO", "bolt://")
11SKEMA_GRAPH_DB_HOST = os.environ.get("SKEMA_GRAPH_DB_HOST", "127.0.0.1")
12SKEMA_GRAPH_DB_PORT = os.environ.get("SKEMA_GRAPH_DB_PORT", "7687")
13SKEMA_RS_ADDESS = os.environ.get("SKEMA_RS_ADDRESS", "http://127.0.0.1:8001")
14SKEMA_OPENAI_KEY = os.environ.get("SKEMA_OPENAI_KEY", "YOU_FORGOT_TO_SET_SKEMA_OPENAI_KEY")
16# MathJAX service
17SKEMA_MATHJAX_PROTOCOL = os.environ.get("SKEMA_MATHJAX_PROTOCOL", "http://")
18SKEMA_MATHJAX_HOST = os.environ.get("SKEMA_MATHJAX_HOST", "127.0.0.1")
19SKEMA_MATHJAX_PORT = str(os.environ.get("SKEMA_MATHJAX_PORT", 8031))
20SKEMA_MATHJAX_ADDRESS = os.environ.get(
21 "SKEMA_MATHJAX_ADDRESS",
22 f"{SKEMA_MATHJAX_PROTOCOL}{SKEMA_MATHJAX_HOST}:{SKEMA_MATHJAX_PORT}",
23)
25# Text Reading services
26MIT_TR_ADDRESS = os.environ.get("MIT_TR_ADDRESS", "http://54.227.237.7")
27SKEMA_TR_ADDRESS = os.environ.get("SKEMA_TR_ADDRESS", "http://hopper.sista.arizona.edu")
28OPENAI_KEY = os.environ.get("OPENAI_KEY", "YOU_FORGOT_TO_SET_OPENAI_KEY")
29COSMOS_ADDRESS = os.environ.get("COSMOS_ADDRESS", "https://xdd.wisc.edu/cosmos_service")