mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-13 12:51:49 +00:00
Merge branch 'feature/login' of github.com:OpenBB-finance/OpenBBTerminal into feature/login
This commit is contained in:
@@ -1,9 +1,9 @@
|
||||
"""Check reserved command arguments in Controllers"""
|
||||
import os
|
||||
import sys
|
||||
import glob
|
||||
import os
|
||||
import re
|
||||
from typing import Optional, Any
|
||||
import sys
|
||||
from typing import Any, Optional
|
||||
|
||||
RESERVED_ARGS = {
|
||||
"f": "file",
|
||||
|
||||
@@ -63,7 +63,7 @@ setup_args = dict(
|
||||
)
|
||||
|
||||
try:
|
||||
from jupyter_packaging import wrap_installers, npm_builder, get_data_files
|
||||
from jupyter_packaging import get_data_files, npm_builder, wrap_installers
|
||||
|
||||
post_develop = npm_builder(
|
||||
build_cmd="install:extension", source_dir="src", build_dir=lab_path
|
||||
|
||||
@@ -63,7 +63,7 @@ setup_args = dict(
|
||||
)
|
||||
|
||||
try:
|
||||
from jupyter_packaging import wrap_installers, npm_builder, get_data_files
|
||||
from jupyter_packaging import get_data_files, npm_builder, wrap_installers
|
||||
|
||||
post_develop = npm_builder(
|
||||
build_cmd="install:extension", source_dir="src", build_dir=lab_path
|
||||
|
||||
@@ -61,7 +61,7 @@ setup_args = dict(
|
||||
)
|
||||
|
||||
try:
|
||||
from jupyter_packaging import wrap_installers, npm_builder, get_data_files
|
||||
from jupyter_packaging import get_data_files, npm_builder, wrap_installers
|
||||
|
||||
post_develop = npm_builder(
|
||||
build_cmd="install:extension", source_dir="src", build_dir=lab_path
|
||||
|
||||
@@ -1,26 +1,22 @@
|
||||
import argparse
|
||||
import json
|
||||
import logging
|
||||
from typing import List, Dict
|
||||
from pathlib import Path
|
||||
from typing import Dict, List
|
||||
|
||||
from prompt_toolkit.completion import NestedCompleter
|
||||
from openbb_terminal.featflags_controller import FeatureFlagsController
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.core.config.paths import USER_ROUTINES_DIRECTORY
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.account.account_model import get_diff
|
||||
from openbb_terminal.core.config.paths import USER_ROUTINES_DIRECTORY
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.featflags_controller import FeatureFlagsController
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
from openbb_terminal.session import hub_model as Hub
|
||||
from openbb_terminal.session import local_model as Local
|
||||
from openbb_terminal.session.user import User
|
||||
from openbb_terminal.account.account_model import get_diff
|
||||
|
||||
# from openbb_terminal.session.user import User
|
||||
|
||||
# from openbb_terminal.session import hub_model as Hub
|
||||
# from openbb_terminal.session import local_model as Local
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -32,8 +28,6 @@ class AccountController(BaseController):
|
||||
"sync",
|
||||
"pull",
|
||||
"clear",
|
||||
# "upload",
|
||||
# "download",
|
||||
]
|
||||
|
||||
PATH = "/account/"
|
||||
@@ -54,9 +48,6 @@ class AccountController(BaseController):
|
||||
if session and obbff.USE_PROMPT_TOOLKIT:
|
||||
choices: dict = {c: {} for c in self.controller_choices}
|
||||
choices["sync"] = {"--on": {}, "--off": {}}
|
||||
# choices["upload"]["--file"] = self.ROUTINE_CHOICES
|
||||
# choices["upload"]["-f"] = choices["upload"]["--file"]
|
||||
|
||||
self.completer = NestedCompleter.from_nested_dict(choices)
|
||||
|
||||
def print_help(self):
|
||||
@@ -67,9 +58,6 @@ class AccountController(BaseController):
|
||||
mt.add_cmd("sync")
|
||||
mt.add_cmd("pull")
|
||||
mt.add_cmd("clear")
|
||||
# mt.add_info("_routines_")
|
||||
# mt.add_cmd("upload")
|
||||
# mt.add_cmd("download")
|
||||
console.print(text=mt.menu_text, menu="Account")
|
||||
|
||||
@log_start_end(log=logger)
|
||||
@@ -142,7 +130,7 @@ class AccountController(BaseController):
|
||||
else:
|
||||
console.print("\n[info]Aborted.[/info]")
|
||||
else:
|
||||
console.print("\n[info]No changes to apply.[/info]")
|
||||
console.print("[info]No changes to apply.[/info]")
|
||||
|
||||
def call_clear(self, other_args: List[str]):
|
||||
"""Clear data"""
|
||||
@@ -163,43 +151,3 @@ class AccountController(BaseController):
|
||||
Hub.clear_user_configs(auth_header=User.get_auth_header())
|
||||
else:
|
||||
console.print("\n[info]Aborted.[/info]")
|
||||
|
||||
# @log_start_end(log=logger)
|
||||
# def call_upload(self, other_args: List[str]):
|
||||
# """Upload"""
|
||||
# parser = argparse.ArgumentParser(
|
||||
# add_help=False,
|
||||
# formatter_class=argparse.ArgumentDefaultsHelpFormatter,
|
||||
# prog="load",
|
||||
# description="Load your portfolio transactions.",
|
||||
# )
|
||||
# parser.add_argument(
|
||||
# "-f",
|
||||
# "--file",
|
||||
# type=str,
|
||||
# dest="file",
|
||||
# required="-h" not in other_args,
|
||||
# help="The file to be loaded",
|
||||
# choices={c: {} for c in self.ROUTINE_FILES},
|
||||
# metavar="FILE",
|
||||
# )
|
||||
# parser.add_argument(
|
||||
# "-n",
|
||||
# "--name",
|
||||
# type=str,
|
||||
# dest="name",
|
||||
# required="-h" not in other_args,
|
||||
# help="The name of the routine",
|
||||
# )
|
||||
# if other_args and "-" not in other_args[0][0]:
|
||||
# other_args.insert(0, "-f")
|
||||
# ns_parser = self.parse_known_args_and_warn(parser, other_args)
|
||||
# if ns_parser:
|
||||
# routine = Local.get_routine(ns_parser.file)
|
||||
# if routine:
|
||||
# Hub.upload_routine(ns_parser.name, routine)
|
||||
|
||||
# @log_start_end(log=logger)
|
||||
# def call_download(self, _):
|
||||
# """Download"""
|
||||
# Hub.download_routine()
|
||||
|
||||
@@ -1,11 +1,12 @@
|
||||
from pathlib import Path
|
||||
from typing import Dict, Any
|
||||
from typing import Any, Dict
|
||||
|
||||
from openbb_terminal import config_plot as cfg_plot
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.base_helpers import strtobool
|
||||
from openbb_terminal.core.config import paths
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal import config_plot as cfg_plot
|
||||
from openbb_terminal.base_helpers import strtobool
|
||||
|
||||
|
||||
def get_diff(configs: dict) -> dict:
|
||||
@@ -100,9 +101,10 @@ def get_diff_keys(keys: dict) -> dict:
|
||||
diff = {}
|
||||
if keys:
|
||||
for k, v in sorted(keys.items()):
|
||||
old, new = get_var_diff(cfg, k, v)
|
||||
if new is not None:
|
||||
diff[k] = (old, new)
|
||||
if hasattr(cfg, k):
|
||||
old, new = get_var_diff(cfg, k, v)
|
||||
if new is not None:
|
||||
diff[k] = (old, new)
|
||||
|
||||
return diff
|
||||
|
||||
|
||||
@@ -5,17 +5,16 @@ import argparse
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.alternative import hackernews_view
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_ONLY_RAW_DATA_ALLOWED,
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.alternative import hackernews_view
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
# pylint:disable=import-outside-toplevel
|
||||
|
||||
@@ -7,10 +7,10 @@ import pathlib
|
||||
from typing import List
|
||||
|
||||
import pandas as pd
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.alternative.covid import covid_view
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_BOTH_RAW_DATA_AND_FIGURES,
|
||||
@@ -19,7 +19,7 @@ from openbb_terminal.helper_funcs import (
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,24 +3,23 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.alternative.covid import covid_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
@@ -3,9 +3,11 @@ __docformat__ = "numpy"
|
||||
|
||||
|
||||
import logging
|
||||
|
||||
import pandas as pd
|
||||
from openbb_terminal.helper_funcs import request
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,15 +3,16 @@ __docformat__ = "numpy"
|
||||
# pylint: disable=C0201,W1401
|
||||
|
||||
import logging
|
||||
from typing import Any, Dict, Optional
|
||||
import math
|
||||
from datetime import datetime
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.helper_funcs import get_user_agent, request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,22 +3,23 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
from matplotlib import pyplot as plt
|
||||
from matplotlib import ticker
|
||||
from openbb_terminal.config_terminal import theme
|
||||
|
||||
from openbb_terminal.alternative.oss import github_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
lambda_long_number_format_with_type_check,
|
||||
)
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.alternative.oss import github_model
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
lambda_long_number_format_with_type_check,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -5,21 +5,19 @@ import argparse
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.alternative.oss import github_view
|
||||
from openbb_terminal.alternative.oss import runa_view, runa_model
|
||||
from openbb_terminal.alternative.oss import github_view, runa_model, runa_view
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_BOTH_RAW_DATA_AND_FIGURES,
|
||||
EXPORT_ONLY_RAW_DATA_ALLOWED,
|
||||
valid_repo,
|
||||
parse_and_split_input,
|
||||
valid_repo,
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,21 +1,22 @@
|
||||
"""Rekt view"""
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
from matplotlib import pyplot as plt
|
||||
from matplotlib import ticker
|
||||
|
||||
from openbb_terminal.alternative.oss import runa_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
plot_autoscale,
|
||||
lambda_long_number_format,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
)
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
""" UK Land Registry Model """
|
||||
__docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import io
|
||||
import logging
|
||||
|
||||
import pandas as pd
|
||||
from SPARQLWrapper.Wrapper import CSV, SPARQLWrapper
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import os
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.alternative.realestate import landRegistry_model
|
||||
from openbb_terminal.helper_funcs import print_rich_table, export_data
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data, print_rich_table
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -6,18 +6,17 @@ import logging
|
||||
from datetime import datetime, timedelta
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.alternative.realestate import landRegistry_view
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_ONLY_RAW_DATA_ALLOWED,
|
||||
check_positive,
|
||||
)
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.alternative.realestate import landRegistry_view
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
# This is for helpers that do NOT import any OpenBB Modules
|
||||
from typing import Callable, Any, Literal
|
||||
import os
|
||||
from typing import Any, Callable, Literal
|
||||
|
||||
from rich.console import Console
|
||||
|
||||
|
||||
@@ -4,9 +4,9 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
|
||||
import pandas as pd
|
||||
from openbb_terminal.helper_funcs import request
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,25 +3,24 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal import rich_config
|
||||
from openbb_terminal.common.behavioural_analysis import finbrain_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal import rich_config
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,9 +5,9 @@ import logging
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -7,10 +7,9 @@ import os
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.common.behavioural_analysis import finnhub_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,20 +3,20 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
import pandas as pd
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.common.behavioural_analysis import google_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Reddit Helpers"""
|
||||
__docformat__ = "numpy"
|
||||
|
||||
from typing import List
|
||||
import re
|
||||
from typing import List
|
||||
|
||||
import praw
|
||||
|
||||
|
||||
@@ -3,9 +3,9 @@ __docformat__ = "numpy"
|
||||
# pylint:disable=too-many-lines
|
||||
|
||||
import logging
|
||||
import warnings
|
||||
from datetime import datetime, timedelta
|
||||
from typing import List, Tuple
|
||||
import warnings
|
||||
|
||||
import finviz
|
||||
import pandas as pd
|
||||
|
||||
@@ -14,15 +14,14 @@ import praw
|
||||
import seaborn as sns
|
||||
|
||||
from openbb_terminal.common.behavioural_analysis import reddit_model
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
"""Twitter Model"""
|
||||
__docformat__ = "numpy"
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
@@ -3,7 +3,7 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
@@ -11,14 +11,14 @@ import pandas as pd
|
||||
from dateutil import parser as dparse
|
||||
|
||||
import openbb_terminal.config_plot as cfg_plot
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.behavioural_analysis import twitter_model
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
plot_autoscale,
|
||||
get_closing_price,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@@ -3,12 +3,12 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
from pathlib import Path
|
||||
from typing import Dict, Any, Optional
|
||||
from typing import Any, Dict, Optional
|
||||
|
||||
import pandas as pd
|
||||
import statsmodels.api as sm
|
||||
from pandas import errors
|
||||
from linearmodels.datasets import wage_panel
|
||||
from pandas import errors
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
@@ -4,9 +4,11 @@ __docformat__ = "numpy"
|
||||
import os
|
||||
from typing import List
|
||||
from urllib.parse import quote
|
||||
|
||||
import certifi
|
||||
import feedparser
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import os
|
||||
|
||||
from openbb_terminal.common import feedparser_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.common import feedparser_model
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -2,14 +2,15 @@
|
||||
__docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Any, List, Optional, Tuple
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,17 +1,15 @@
|
||||
""" News View """
|
||||
__docformat__ = "numpy"
|
||||
|
||||
import os
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.common import newsapi_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data
|
||||
from openbb_terminal.helper_funcs import print_rich_table
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data, print_rich_table
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -4,13 +4,14 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import warnings
|
||||
from typing import Tuple, Union
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import statsmodels.api as sm
|
||||
from scipy import stats
|
||||
from statsmodels.tools.sm_exceptions import MissingDataError
|
||||
from statsmodels.tsa.seasonal import DecomposeResult, seasonal_decompose
|
||||
from statsmodels.tsa.stattools import adfuller, kpss
|
||||
from scipy import stats
|
||||
import numpy as np
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
|
||||
|
||||
@@ -8,32 +8,32 @@ import logging
|
||||
import os
|
||||
import warnings
|
||||
from datetime import datetime
|
||||
from typing import Any, Optional, List
|
||||
from typing import Any, List, Optional
|
||||
|
||||
import matplotlib
|
||||
import matplotlib.dates as mdates
|
||||
import matplotlib.patches as mpatches
|
||||
import matplotlib.pyplot as plt
|
||||
import matplotlib.dates as mdates
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
import seaborn as sns
|
||||
import statsmodels.api as sm
|
||||
from scipy import stats
|
||||
from detecta import detect_cusum
|
||||
from statsmodels.graphics.gofplots import qqplot
|
||||
from pandas.plotting import register_matplotlib_converters
|
||||
from scipy import stats
|
||||
from statsmodels.graphics.gofplots import qqplot
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.quantitative_analysis import qa_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
reindex_dates,
|
||||
lambda_long_number_format,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@@ -3,20 +3,20 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.quantitative_analysis import rolling_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
reindex_dates,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -6,9 +6,9 @@ from typing import Any, Tuple
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,24 +3,26 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, Union, List
|
||||
from typing import List, Optional, Union
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.technical_analysis import custom_indicators_model
|
||||
from openbb_terminal.common.technical_analysis import (
|
||||
custom_indicators_model,
|
||||
ta_helpers,
|
||||
)
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_intraday,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
reindex_dates,
|
||||
is_intraday,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -9,8 +9,8 @@ import pandas as pd
|
||||
import pandas_ta as ta
|
||||
from sklearn.linear_model import LinearRegression
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -3,27 +3,26 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import mplfinance as mpf
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from pandas.plotting import register_matplotlib_converters
|
||||
import mplfinance as mpf
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.technical_analysis import momentum_model
|
||||
from openbb_terminal.common.technical_analysis import momentum_model, ta_helpers
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
plot_autoscale,
|
||||
reindex_dates,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
reindex_dates,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -10,16 +10,16 @@ import mplfinance as mpf
|
||||
import pandas as pd
|
||||
from pandas.plotting import register_matplotlib_converters
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.technical_analysis import overlap_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format_y_axis,
|
||||
plot_autoscale,
|
||||
reindex_dates,
|
||||
lambda_long_number_format_y_axis,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
from typing import Optional
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import logging
|
||||
import pandas as pd
|
||||
import pandas_ta as ta
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,23 +3,22 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
from pandas.plotting import register_matplotlib_converters
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.technical_analysis import trend_indicators_model
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers, trend_indicators_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
reindex_dates,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import logging
|
||||
import pandas as pd
|
||||
import pandas_ta as ta
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,22 +3,21 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.technical_analysis import volatility_model
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers, volatility_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
reindex_dates,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -6,8 +6,8 @@ import logging
|
||||
import pandas as pd
|
||||
import pandas_ta as ta
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -3,23 +3,22 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.common.technical_analysis import volume_model
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers, volume_model
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
reindex_dates,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.common.technical_analysis import ta_helpers
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@ from os import environ
|
||||
from types import MethodType
|
||||
from typing import Callable, List
|
||||
from unittest.mock import patch
|
||||
|
||||
from openbb_terminal.helper_funcs import check_file_type_saved, check_positive
|
||||
from openbb_terminal.rich_config import get_ordered_list_sources
|
||||
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
# IMPORTATION STANDARD
|
||||
from pathlib import Path
|
||||
import os
|
||||
from pathlib import Path
|
||||
|
||||
from dotenv import load_dotenv
|
||||
|
||||
|
||||
|
||||
@@ -2,16 +2,16 @@
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.core.config.paths import (
|
||||
SETTINGS_DIRECTORY,
|
||||
USER_DATA_DIRECTORY,
|
||||
USER_ENV_FILE,
|
||||
REPOSITORY_ENV_FILE,
|
||||
SETTINGS_DIRECTORY,
|
||||
USER_CUSTOM_IMPORTS_DIRECTORY,
|
||||
USER_DATA_DIRECTORY,
|
||||
USER_DATA_SOURCES_DEFAULT_FILE,
|
||||
USER_ENV_FILE,
|
||||
USER_EXPORTS_DIRECTORY,
|
||||
USER_PORTFOLIO_DATA_DIRECTORY,
|
||||
USER_PRESETS_DIRECTORY,
|
||||
USER_ROUTINES_DIRECTORY,
|
||||
USER_DATA_SOURCES_DEFAULT_FILE,
|
||||
)
|
||||
|
||||
# pylint: disable=W0603
|
||||
|
||||
@@ -19,7 +19,7 @@ from openbb_terminal.core.config.paths import (
|
||||
MISCELLANEOUS_DIRECTORY,
|
||||
REPOSITORY_DIRECTORY,
|
||||
)
|
||||
from openbb_terminal.helper_funcs import check_positive
|
||||
from openbb_terminal.helper_funcs import check_non_negative
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.terminal_controller import (
|
||||
insert_start_slash,
|
||||
@@ -379,7 +379,7 @@ def run_test_files(
|
||||
|
||||
start = time.time()
|
||||
|
||||
if verbose and not subprocesses:
|
||||
if subprocesses == 0:
|
||||
console.print(
|
||||
f"* Running {n} script(s) sequentially...\n",
|
||||
style="bold",
|
||||
@@ -633,7 +633,7 @@ def parse_args_and_run():
|
||||
help="The number of subprocesses to use to run the tests."
|
||||
" Default is the minimum between number of collected scripts and CPUs.",
|
||||
dest="subprocesses",
|
||||
type=check_positive,
|
||||
type=check_non_negative,
|
||||
default=None,
|
||||
)
|
||||
parser.add_argument(
|
||||
@@ -661,12 +661,13 @@ def parse_args_and_run():
|
||||
|
||||
special_args_dict = {x: getattr(ns_parser, x) for x in special_arguments_values}
|
||||
|
||||
if ns_parser.verbose and ns_parser.subprocesses:
|
||||
console.print(
|
||||
"WARNING: verbose mode and multiprocessing are not compatible. "
|
||||
"The output of the scripts is mixed up. Consider running without --subproc.\n",
|
||||
style="yellow",
|
||||
)
|
||||
if ns_parser.verbose:
|
||||
if ns_parser.subprocesses is None or ns_parser.subprocesses > 0:
|
||||
console.print(
|
||||
"WARNING: verbose mode and multiprocessing are not compatible. "
|
||||
"The output of the scripts is mixed up. Consider running with --subproc 0.\n",
|
||||
style="yellow",
|
||||
)
|
||||
|
||||
if ns_parser.list_:
|
||||
return display_available_scripts(ns_parser.path, ns_parser.skip)
|
||||
@@ -688,10 +689,11 @@ def main():
|
||||
if "--test" in sys.argv:
|
||||
sys.argv.remove("--test")
|
||||
|
||||
os.environ["OPENBB_ENABLE_QUICK_EXIT"] = "False"
|
||||
os.environ["OPENBB_LOG_COLLECT"] = "False"
|
||||
os.environ["OPENBB_USE_ION"] = "False"
|
||||
os.environ["OPENBB_USE_ION"] = "True"
|
||||
os.environ["OPENBB_USE_PROMPT_TOOLKIT"] = "False"
|
||||
os.environ["DEBUG_MODE"] = "true"
|
||||
os.environ["DEBUG_MODE"] = "True"
|
||||
|
||||
parse_args_and_run()
|
||||
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
from typing import Any, Optional, List
|
||||
from typing import Any, List, Optional
|
||||
|
||||
import openbb_terminal.config_terminal as cfg
|
||||
|
||||
from openbb_terminal.core.library.metadata import Metadata
|
||||
from openbb_terminal.core.library.trail_map import TrailMap
|
||||
from openbb_terminal.core.library.operation import Operation
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.core.library.metadata import Metadata
|
||||
from openbb_terminal.core.library.operation import Operation
|
||||
from openbb_terminal.core.library.trail_map import TrailMap
|
||||
|
||||
# pylint: disable=import-outside-toplevel
|
||||
|
||||
@@ -159,10 +158,10 @@ class BreadcrumbLogger:
|
||||
|
||||
@staticmethod
|
||||
def __initialize_logging() -> None:
|
||||
from openbb_terminal.loggers import setup_logging # pylint: disable=C0415
|
||||
from openbb_terminal.core.log.generation.settings_logger import ( # pylint: disable=C0415
|
||||
log_all_settings,
|
||||
)
|
||||
from openbb_terminal.loggers import setup_logging # pylint: disable=C0415
|
||||
|
||||
cfg.LOGGING_SUB_APP = "sdk"
|
||||
setup_logging()
|
||||
|
||||
@@ -1,9 +1,8 @@
|
||||
import json
|
||||
from importlib import import_module
|
||||
from logging import getLogger, Logger
|
||||
from typing import Any, Callable, Dict, List, Optional
|
||||
|
||||
from inspect import signature
|
||||
from logging import Logger, getLogger
|
||||
from typing import Any, Callable, Dict, List, Optional
|
||||
|
||||
import openbb_terminal.config_terminal as cfg
|
||||
from openbb_terminal.core.library.metadata import Metadata
|
||||
|
||||
@@ -8,7 +8,6 @@ from openbb_terminal.base_helpers import load_env_vars, strtobool
|
||||
from openbb_terminal.core.config.paths import MISCELLANEOUS_DIRECTORY, USER_ENV_FILE
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
DISABLE_FORECASTING_WARNING = load_env_vars(
|
||||
"OPENBB_DISABLE_FORECASTING_WARNING", strtobool, False
|
||||
)
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
# IMPORTATION STANDARD
|
||||
from copy import deepcopy
|
||||
from threading import Thread
|
||||
from queue import SimpleQueue
|
||||
from pathlib import Path
|
||||
from queue import SimpleQueue
|
||||
from threading import Thread
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.feature_flags import LOG_COLLECTION
|
||||
from openbb_terminal.core.log.collection.s3_sender import send_to_s3
|
||||
from openbb_terminal.core.log.constants import (
|
||||
ARCHIVES_FOLDER_NAME,
|
||||
S3_FOLDER_SUFFIX,
|
||||
TMP_FOLDER_NAME,
|
||||
)
|
||||
from openbb_terminal.core.log.collection.s3_sender import send_to_s3
|
||||
from openbb_terminal.core.log.generation.settings import Settings
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.feature_flags import LOG_COLLECTION
|
||||
|
||||
# DO NOT USE THE FILE LOGGER IN THIS MODULE
|
||||
|
||||
|
||||
|
||||
@@ -2,8 +2,6 @@
|
||||
import logging
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.core.log.generation.path_tracking_file_handler import (
|
||||
PathTrackingFileHandler,
|
||||
|
||||
@@ -1,14 +1,12 @@
|
||||
# IMPORTATION STANDARD
|
||||
import logging
|
||||
|
||||
from openbb_terminal.core.log.generation import settings_logger, user_logger
|
||||
from openbb_terminal.core.log.generation.common import do_rollover
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.loggers import setup_logging
|
||||
from openbb_terminal.core.log.generation import settings_logger
|
||||
from openbb_terminal.core.log.generation import user_logger
|
||||
from openbb_terminal.core.log.generation.common import do_rollover
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
import os
|
||||
import uuid
|
||||
from pathlib import Path
|
||||
|
||||
from openbb_terminal.core.config.paths import USER_DATA_DIRECTORY
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
@@ -3,7 +3,6 @@ from datetime import datetime
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
|
||||
@@ -3,7 +3,6 @@ import logging
|
||||
import re
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.core.config.paths import HOME_DIRECTORY
|
||||
from openbb_terminal.core.log.generation.settings import AppSettings
|
||||
|
||||
@@ -4,19 +4,18 @@ from logging.handlers import TimedRotatingFileHandler
|
||||
from pathlib import Path
|
||||
from typing import Callable
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.core.log.constants import ARCHIVES_FOLDER_NAME, TMP_FOLDER_NAME
|
||||
from openbb_terminal.core.log.collection.log_sender import LogSender
|
||||
from openbb_terminal.core.log.collection.logging_clock import LoggingClock, Precision
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.core.log.constants import ARCHIVES_FOLDER_NAME, TMP_FOLDER_NAME
|
||||
from openbb_terminal.core.log.generation.directories import get_log_dir, get_log_sub_dir
|
||||
from openbb_terminal.core.log.generation.expired_files import (
|
||||
get_expired_file_list,
|
||||
get_timestamp_from_x_days,
|
||||
remove_file_list,
|
||||
)
|
||||
|
||||
from openbb_terminal.core.log.generation.settings import Settings
|
||||
|
||||
|
||||
|
||||
@@ -1,18 +1,15 @@
|
||||
# IMPORTATION STANDARD
|
||||
import platform
|
||||
import json
|
||||
import logging
|
||||
import platform
|
||||
from types import FunctionType, ModuleType
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
import openbb_terminal.feature_flags as obbff
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.terminal_helper import is_packaged_application
|
||||
from openbb_terminal.core.log.generation.common import do_rollover
|
||||
|
||||
from openbb_terminal.terminal_helper import is_packaged_application
|
||||
|
||||
SENSITIVE_WORDS = [
|
||||
"API",
|
||||
|
||||
@@ -2,12 +2,11 @@
|
||||
import json
|
||||
import logging
|
||||
|
||||
from openbb_terminal.core.log.generation.common import do_rollover
|
||||
|
||||
# IMPORTATION THIRDPARTY
|
||||
|
||||
|
||||
# IMPORTATION INTERNAL
|
||||
from openbb_terminal.session.user import User
|
||||
from openbb_terminal.core.log.generation.common import do_rollover
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
from inspect import getmembers, isfunction
|
||||
from typing import List, Callable, Tuple
|
||||
from datetime import datetime
|
||||
import importlib.util
|
||||
from pathlib import Path
|
||||
import os
|
||||
from datetime import datetime
|
||||
from inspect import getmembers, isfunction
|
||||
from pathlib import Path
|
||||
from typing import Callable, List, Tuple
|
||||
|
||||
import pandas as pd
|
||||
|
||||
try:
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
__docformat__ = "numpy"
|
||||
|
||||
from typing import Any, Optional
|
||||
|
||||
import requests
|
||||
from requests.adapters import HTTPAdapter
|
||||
|
||||
|
||||
@@ -6,21 +6,21 @@ import argparse
|
||||
import logging
|
||||
import os
|
||||
from typing import List
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal.cryptocurrency import cryptocurrency_helpers, pyth_model, pyth_view
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.cryptocurrency import cryptocurrency_helpers, pyth_model, pyth_view
|
||||
from openbb_terminal.cryptocurrency.crypto_views import find
|
||||
from openbb_terminal.cryptocurrency.cryptocurrency_helpers import (
|
||||
display_all_coins,
|
||||
plot_chart,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.crypto_views import find
|
||||
from openbb_terminal.cryptocurrency.due_diligence import (
|
||||
binance_view,
|
||||
coinpaprika_view,
|
||||
finbrain_crypto_view,
|
||||
pycoingecko_view,
|
||||
)
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_BOTH_RAW_DATA_AND_FIGURES,
|
||||
@@ -30,7 +30,7 @@ from openbb_terminal.helper_funcs import (
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import CryptoBaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
# pylint: disable=import-outside-toplevel
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
import difflib
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.rich_config import console
|
||||
@@ -106,12 +107,12 @@ def _find_CoinPaprika(key: str, query: str, limit: int) -> pd.DataFrame:
|
||||
|
||||
def _find_Binance(key: str, query: str, limit: int) -> pd.DataFrame:
|
||||
# pylint: disable=C0415
|
||||
from openbb_terminal.cryptocurrency.discovery.pycoingecko_model import (
|
||||
get_coin_list,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.cryptocurrency_helpers import (
|
||||
load_binance_map,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.discovery.pycoingecko_model import (
|
||||
get_coin_list,
|
||||
)
|
||||
|
||||
# TODO: Fix it in future. Determine if user looks for symbol like ETH or ethereum
|
||||
if len(query) > 5:
|
||||
@@ -132,12 +133,12 @@ def _find_Binance(key: str, query: str, limit: int) -> pd.DataFrame:
|
||||
|
||||
def _find_Coinbase(key: str, query: str, limit: int) -> pd.DataFrame:
|
||||
# pylint: disable=C0415
|
||||
from openbb_terminal.cryptocurrency.discovery.pycoingecko_model import (
|
||||
get_coin_list,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.cryptocurrency_helpers import (
|
||||
load_coinbase_map,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.discovery.pycoingecko_model import (
|
||||
get_coin_list,
|
||||
)
|
||||
|
||||
if len(query) > 5:
|
||||
key = "id"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import os
|
||||
|
||||
from openbb_terminal.helper_funcs import print_rich_table, export_data
|
||||
from openbb_terminal.cryptocurrency import crypto_models
|
||||
from openbb_terminal.helper_funcs import export_data, print_rich_table
|
||||
|
||||
|
||||
def find(
|
||||
|
||||
@@ -4,9 +4,9 @@
|
||||
import difflib
|
||||
import json
|
||||
import logging
|
||||
from typing import Union, Optional, List
|
||||
import os
|
||||
from datetime import datetime, timedelta
|
||||
from typing import List, Optional, Union
|
||||
|
||||
import ccxt
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
@@ -3,9 +3,11 @@ __docformat__ = "numpy"
|
||||
|
||||
import math
|
||||
import re
|
||||
from typing import Union, Any, Optional
|
||||
import textwrap
|
||||
from typing import Any, Optional, Union
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.helper_funcs import lambda_long_number_format
|
||||
|
||||
|
||||
|
||||
@@ -4,8 +4,9 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
import urllib3
|
||||
import pandas as pd
|
||||
import urllib3
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
get_user_agent,
|
||||
@@ -13,7 +14,6 @@ from openbb_terminal.helper_funcs import (
|
||||
request,
|
||||
)
|
||||
|
||||
|
||||
urllib3.disable_warnings(urllib3.exceptions.InsecureRequestWarning)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -3,9 +3,11 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
from typing import Tuple
|
||||
|
||||
import pandas as pd
|
||||
from openbb_terminal.helper_funcs import request
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -4,20 +4,21 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import os
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.cryptocurrency.defi import cryptosaurio_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
@@ -7,8 +7,6 @@ import argparse
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.cryptocurrency.defi import (
|
||||
coindix_model,
|
||||
@@ -18,11 +16,12 @@ from openbb_terminal.cryptocurrency.defi import (
|
||||
graph_view,
|
||||
llama_model,
|
||||
llama_view,
|
||||
smartstake_view,
|
||||
substack_view,
|
||||
terramoney_fcd_model,
|
||||
terramoney_fcd_view,
|
||||
smartstake_view,
|
||||
)
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_BOTH_RAW_DATA_AND_FIGURES,
|
||||
@@ -32,7 +31,7 @@ from openbb_terminal.helper_funcs import (
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -10,8 +10,8 @@ from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
lambda_very_long_number_formatter,
|
||||
)
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
|
||||
|
||||
@@ -8,12 +8,11 @@ from datetime import datetime
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import lambda_long_number_format
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
lambda_replace_underscores_in_column_names,
|
||||
)
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import lambda_long_number_format, request
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -15,10 +15,10 @@ from openbb_terminal.cryptocurrency.defi import llama_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
"""SmartStake Model"""
|
||||
__docformat__ = "numpy"
|
||||
|
||||
from typing import Union, Dict
|
||||
from typing import Dict, Union
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@check_api_key(["API_SMARTSTAKE_KEY", "API_SMARTSTAKE_TOKEN"])
|
||||
|
||||
@@ -1,24 +1,22 @@
|
||||
"""SentimentInvestor View"""
|
||||
__docformat__ = "numpy"
|
||||
|
||||
import os
|
||||
import logging
|
||||
from typing import Optional, List
|
||||
import os
|
||||
from typing import List, Optional
|
||||
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.cryptocurrency.defi import smartstake_model
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
|
||||
|
||||
# pylint: disable=E1101
|
||||
|
||||
|
||||
@@ -11,8 +11,8 @@ from bs4 import BeautifulSoup
|
||||
from dateutil import parser
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,7 +5,6 @@ import logging
|
||||
import os
|
||||
from typing import List, Optional
|
||||
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
from matplotlib import ticker
|
||||
|
||||
@@ -15,13 +14,12 @@ from openbb_terminal.cryptocurrency.defi import terraengineer_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format,
|
||||
plot_autoscale,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
|
||||
@@ -4,18 +4,18 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import textwrap
|
||||
from datetime import datetime
|
||||
from typing import Any, Tuple, Dict
|
||||
from typing import Any, Dict, Tuple
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
denominate_number,
|
||||
prettify_column_names,
|
||||
lambda_replace_unicode,
|
||||
prettify_column_names,
|
||||
)
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.helper_funcs import request
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -11,17 +11,17 @@ from matplotlib import ticker
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
prettify_column_names,
|
||||
lambda_very_long_number_formatter,
|
||||
prettify_column_names,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.defi import terramoney_fcd_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format,
|
||||
plot_autoscale,
|
||||
print_rich_table,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@@ -7,7 +7,7 @@ import pandas as pd
|
||||
from coinmarketcapapi import CoinMarketCapAPI, CoinMarketCapAPIError
|
||||
|
||||
import openbb_terminal.config_terminal as cfg
|
||||
from openbb_terminal.decorators import log_start_end, check_api_key
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -4,9 +4,8 @@ __docformat__ = "numpy"
|
||||
import logging
|
||||
import os
|
||||
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.cryptocurrency.discovery import coinmarketcap_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data, print_rich_table
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
|
||||
@@ -2,8 +2,8 @@
|
||||
__docformat__ = "numpy"
|
||||
|
||||
# pylint: disable=C0301,E1137
|
||||
from typing import Optional
|
||||
import logging
|
||||
from typing import Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
|
||||
@@ -3,6 +3,7 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
|
||||
import numpy as np
|
||||
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import (
|
||||
|
||||
@@ -6,9 +6,6 @@ import argparse
|
||||
import logging
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.cryptocurrency.discovery import (
|
||||
coinmarketcap_model,
|
||||
@@ -20,6 +17,7 @@ from openbb_terminal.cryptocurrency.discovery import (
|
||||
pycoingecko_model,
|
||||
pycoingecko_view,
|
||||
)
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_ONLY_RAW_DATA_ALLOWED,
|
||||
@@ -27,7 +25,7 @@ from openbb_terminal.helper_funcs import (
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import BaseController
|
||||
from openbb_terminal.rich_config import console, MenuText, get_ordered_list_sources
|
||||
from openbb_terminal.rich_config import MenuText, console, get_ordered_list_sources
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -5,8 +5,10 @@ import json
|
||||
import logging
|
||||
import os
|
||||
from typing import List
|
||||
|
||||
import pandas as pd
|
||||
from pycoingecko import CoinGeckoAPI
|
||||
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
__docfromat__ = "numpy"
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal.cryptocurrency.discovery import (
|
||||
coinmarketcap_model,
|
||||
pycoingecko_model,
|
||||
|
||||
@@ -11,7 +11,7 @@ from binance.client import Client
|
||||
from binance.exceptions import BinanceAPIException
|
||||
|
||||
import openbb_terminal.config_terminal as cfg
|
||||
from openbb_terminal.decorators import log_start_end, check_api_key
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.rich_config import console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -5,8 +5,9 @@ import logging
|
||||
import os
|
||||
from typing import List, Optional
|
||||
|
||||
from matplotlib import pyplot as plt
|
||||
import numpy as np
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
from openbb_terminal.cryptocurrency.cryptocurrency_helpers import plot_order_book
|
||||
from openbb_terminal.cryptocurrency.due_diligence import ccxt_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
|
||||
@@ -3,11 +3,11 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import matplotlib.pyplot as plt
|
||||
import pandas as pd
|
||||
from pandas.plotting import register_matplotlib_converters
|
||||
import matplotlib.pyplot as plt
|
||||
|
||||
from openbb_terminal.cryptocurrency.cryptocurrency_helpers import plot_order_book
|
||||
from openbb_terminal.cryptocurrency.due_diligence import coinbase_model
|
||||
|
||||
@@ -6,20 +6,19 @@ import pandas as pd
|
||||
from matplotlib import pyplot as plt
|
||||
from matplotlib import ticker
|
||||
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal import config_plot as cfgPlot
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.cryptocurrency.due_diligence.coinglass_model import (
|
||||
get_liquidations,
|
||||
get_funding_rate,
|
||||
get_liquidations,
|
||||
get_open_interest_per_exchange,
|
||||
)
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
is_valid_axes_count,
|
||||
lambda_long_number_format,
|
||||
plot_autoscale,
|
||||
is_valid_axes_count,
|
||||
)
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
@@ -3,8 +3,8 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import textwrap
|
||||
from typing import Tuple, Optional
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Optional, Tuple
|
||||
|
||||
import pandas as pd
|
||||
from dateutil import parser
|
||||
|
||||
@@ -5,11 +5,10 @@ import logging
|
||||
import os
|
||||
from typing import Optional
|
||||
|
||||
from openbb_terminal.cryptocurrency.overview import cryptopanic_model
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data, print_rich_table
|
||||
from openbb_terminal.decorators import check_api_key
|
||||
from openbb_terminal.cryptocurrency.dataframe_helpers import prettify_column_names
|
||||
from openbb_terminal.cryptocurrency.overview import cryptopanic_model
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import export_data, print_rich_table
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -7,31 +7,30 @@ import logging
|
||||
from datetime import datetime, timedelta
|
||||
from typing import List
|
||||
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
|
||||
from openbb_terminal.cryptocurrency import cryptocurrency_helpers
|
||||
from openbb_terminal import feature_flags as obbff
|
||||
from openbb_terminal.cryptocurrency.overview import cryptopanic_model
|
||||
from openbb_terminal.cryptocurrency.due_diligence import tokenterminal_model
|
||||
from openbb_terminal.cryptocurrency import cryptocurrency_helpers
|
||||
from openbb_terminal.cryptocurrency.due_diligence import (
|
||||
binance_model,
|
||||
binance_view,
|
||||
ccxt_model,
|
||||
ccxt_view,
|
||||
coinbase_model,
|
||||
coinbase_view,
|
||||
coinglass_model,
|
||||
coinbase_model,
|
||||
coinglass_view,
|
||||
coinpaprika_view,
|
||||
cryptopanic_view,
|
||||
glassnode_model,
|
||||
glassnode_view,
|
||||
pycoingecko_view,
|
||||
messari_model,
|
||||
messari_view,
|
||||
pycoingecko_view,
|
||||
santiment_view,
|
||||
cryptopanic_view,
|
||||
tokenterminal_model,
|
||||
tokenterminal_view,
|
||||
)
|
||||
from openbb_terminal.cryptocurrency.overview import cryptopanic_model
|
||||
from openbb_terminal.custom_prompt_toolkit import NestedCompleter
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.helper_funcs import (
|
||||
EXPORT_BOTH_RAW_DATA_AND_FIGURES,
|
||||
@@ -42,7 +41,7 @@ from openbb_terminal.helper_funcs import (
|
||||
)
|
||||
from openbb_terminal.menu import session
|
||||
from openbb_terminal.parent_classes import CryptoBaseController
|
||||
from openbb_terminal.rich_config import console, MenuText
|
||||
from openbb_terminal.rich_config import MenuText, console
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -3,26 +3,26 @@ __docformat__ = "numpy"
|
||||
|
||||
import logging
|
||||
import os
|
||||
from typing import Optional, List
|
||||
from typing import List, Optional
|
||||
|
||||
import numpy as np
|
||||
import pandas as pd
|
||||
from matplotlib import pyplot as plt
|
||||
|
||||
from openbb_terminal import rich_config
|
||||
from openbb_terminal.common.behavioural_analysis.finbrain_model import get_sentiment
|
||||
from openbb_terminal.common.behavioural_analysis.finbrain_view import (
|
||||
lambda_sentiment_coloring,
|
||||
)
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.config_terminal import theme
|
||||
from openbb_terminal.decorators import log_start_end
|
||||
from openbb_terminal.config_plot import PLOT_DPI
|
||||
from openbb_terminal.helper_funcs import (
|
||||
export_data,
|
||||
plot_autoscale,
|
||||
is_valid_axes_count,
|
||||
plot_autoscale,
|
||||
)
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal import rich_config
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
from datetime import datetime, timedelta
|
||||
import logging
|
||||
import json
|
||||
import logging
|
||||
from datetime import datetime, timedelta
|
||||
from typing import Optional
|
||||
|
||||
import pandas as pd
|
||||
|
||||
from openbb_terminal import config_terminal as cfg
|
||||
from openbb_terminal.decorators import log_start_end, check_api_key
|
||||
from openbb_terminal.decorators import check_api_key, log_start_end
|
||||
from openbb_terminal.helper_funcs import request, str_date_to_timestamp
|
||||
from openbb_terminal.rich_config import console
|
||||
from openbb_terminal.helper_funcs import str_date_to_timestamp, request
|
||||
|
||||
# pylint: disable=unsupported-assignment-operation
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user