OpenBB / cli /openbb_cli /config /constants.py
CatPtain's picture
Upload 70 files
b93364a verified
"""Constants module."""
from pathlib import Path
# Paths
HOME_DIRECTORY = Path.home()
REPOSITORY_DIRECTORY = Path(__file__).parent.parent.parent.parent
SRC_DIRECTORY = Path(__file__).parent.parent
SETTINGS_DIRECTORY = HOME_DIRECTORY / ".openbb_platform"
ASSETS_DIRECTORY = SRC_DIRECTORY / "assets"
STYLES_DIRECTORY = ASSETS_DIRECTORY / "styles"
ENV_FILE_SETTINGS = SETTINGS_DIRECTORY / ".cli.env"
HIST_FILE_PROMPT = SETTINGS_DIRECTORY / ".cli.his"
DEFAULT_ROUTINES_URL = "https://openbb-cms.directus.app/items/Routines"
TIMEOUT = 30
CONNECTION_ERROR_MSG = "[red]Connection error.[/red]"
CONNECTION_TIMEOUT_MSG = "[red]Connection timeout.[/red]"
SCRIPT_TAGS = [
"stocks",
"crypto",
"etf",
"economy",
"forex",
"fixed income",
"alternative",
"funds",
"bonds",
"macro",
"mutual funds",
"equities",
"options",
"dark pool",
"shorts",
"insider",
"behavioral analysis",
"fundamental analysis",
"technical analysis",
"quantitative analysis",
"forecasting",
"government",
"comparison",
"nft",
"on chain",
"off chain",
"screener",
"report",
"overview",
"rates",
"econometrics",
"portfolio",
"real estate",
]
AVAILABLE_FLAIRS = {
":openbb": "(๐Ÿฆ‹)",
":bug": "(๐Ÿ›)",
":rocket": "(๐Ÿš€)",
":diamond": "(๐Ÿ’Ž)",
":stars": "(โœจ)",
":baseball": "(โšพ)",
":boat": "(โ›ต)",
":phone": "(โ˜Ž)",
":mercury": "(โ˜ฟ)",
":hidden": "",
":sun": "(โ˜ผ)",
":moon": "(๐ŸŒ•)",
":nuke": "(โ˜ข)",
":hazard": "(โ˜ฃ)",
":tunder": "(โ˜ˆ)",
":king": "(โ™”)",
":queen": "(โ™•)",
":knight": "(โ™˜)",
":recycle": "(โ™ป)",
":scales": "(โš–)",
":ball": "(โšฝ)",
":golf": "(โ›ณ)",
":peace": "(โ˜ฎ)",
":yy": "(โ˜ฏ)",
}