Feature/add isort linter (#4114)

* Fixed isort

* Fixed issues

* FIxed linters

---------

Co-authored-by: James Maslek <jmaslek11@gmail.com>
This commit is contained in:
Colin Delahunty
2023-02-04 21:24:47 -05:00
committed by GitHub
parent 949ad434da
commit ee34a1f278
509 changed files with 1461 additions and 1456 deletions

View File

@@ -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",

View 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

View 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

View File

@@ -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

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -1,8 +1,8 @@
"""Reddit Helpers"""
__docformat__ = "numpy"
from typing import List
import re
from typing import List
import praw

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -1,5 +1,5 @@
from typing import Optional
import logging
from typing import Optional
import pandas as pd

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -1,6 +1,7 @@
# IMPORTATION STANDARD
from pathlib import Path
import os
from pathlib import Path
from dotenv import load_dotenv

View File

@@ -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

View File

@@ -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()

View File

@@ -1,12 +1,10 @@
import json
from importlib import import_module
from logging import getLogger, Logger
from inspect import signature
from logging import Logger, getLogger
from typing import Any, Callable, Dict, List, Optional
from inspect import signature
import openbb_terminal.config_terminal as cfg
from openbb_terminal.core.library.metadata import Metadata
from openbb_terminal.core.library.trail_map import TrailMap

View File

@@ -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
)

View File

@@ -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

View File

@@ -2,6 +2,7 @@
import os
import uuid
from pathlib import Path
from openbb_terminal.core.config.paths import USER_DATA_DIRECTORY
# IMPORTATION THIRDPARTY

View File

@@ -3,7 +3,6 @@ from datetime import datetime
from pathlib import Path
from typing import List
# IMPORTATION THIRDPARTY
# IMPORTATION INTERNAL

View File

@@ -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

View File

@@ -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

View File

@@ -1,20 +1,17 @@
# 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.path_tracking_file_handler import (
PathTrackingFileHandler,
)
from openbb_terminal.terminal_helper import is_packaged_application
SENSITIVE_WORDS = [
"API",

View File

@@ -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:

View File

@@ -2,6 +2,7 @@
__docformat__ = "numpy"
from typing import Any, Optional
import requests
from requests.adapters import HTTPAdapter

View File

@@ -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

View File

@@ -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"

View File

@@ -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(

View File

@@ -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

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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"])

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -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__)

View File

@@ -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

View File

@@ -2,8 +2,8 @@
__docformat__ = "numpy"
# pylint: disable=C0301,E1137
from typing import Optional
import logging
from typing import Optional
import pandas as pd

View File

@@ -3,6 +3,7 @@ __docformat__ = "numpy"
import logging
import os
import numpy as np
from openbb_terminal.cryptocurrency.dataframe_helpers import (

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -2,6 +2,7 @@
__docfromat__ = "numpy"
import pandas as pd
from openbb_terminal.cryptocurrency.discovery import (
coinmarketcap_model,
pycoingecko_model,

View File

@@ -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__)

View File

@@ -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

View File

@@ -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

View File

@@ -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__)

View File

@@ -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

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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__)

View File

@@ -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

View File

@@ -8,9 +8,8 @@ from matplotlib import pyplot as plt
from matplotlib import ticker
from matplotlib.lines import Line2D
from openbb_terminal.config_terminal import theme
from openbb_terminal.decorators import check_api_key
from openbb_terminal import config_plot as cfgPlot
from openbb_terminal.config_terminal import theme
from openbb_terminal.cryptocurrency.due_diligence.glassnode_model import (
get_active_addresses,
get_exchange_balances,
@@ -18,11 +17,11 @@ from openbb_terminal.cryptocurrency.due_diligence.glassnode_model import (
get_hashrate,
get_non_zero_addresses,
)
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,
plot_autoscale,
is_valid_axes_count,
plot_autoscale,
)
logger = logging.getLogger(__name__)

View File

@@ -7,17 +7,18 @@ import logging
import os
from datetime import datetime, timedelta
from typing import List, Optional
import pandas as pd
import numpy as np
import pandas as pd
from matplotlib import dates as mdates
from matplotlib import pyplot as plt
from matplotlib import ticker
from matplotlib import dates as mdates
from openbb_terminal.config_terminal import theme
from openbb_terminal import feature_flags as obbff
from openbb_terminal.cryptocurrency import cryptocurrency_helpers
from openbb_terminal.decorators import check_api_key
from openbb_terminal import config_plot as cfgPlot
from openbb_terminal import feature_flags as obbff
from openbb_terminal.config_terminal import theme
from openbb_terminal.cryptocurrency import cryptocurrency_helpers
from openbb_terminal.cryptocurrency.dataframe_helpers import prettify_paragraph
from openbb_terminal.cryptocurrency.due_diligence.messari_model import (
get_available_timeseries,
get_fundraising,
@@ -31,16 +32,15 @@ from openbb_terminal.cryptocurrency.due_diligence.messari_model import (
get_team,
get_tokenomics,
)
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,
print_rich_table,
is_valid_axes_count,
)
from openbb_terminal.rich_config import console
from openbb_terminal.cryptocurrency.dataframe_helpers import prettify_paragraph
logger = logging.getLogger(__name__)

View File

@@ -4,7 +4,9 @@ __docformat__ = "numpy"
import logging
import os
from typing import Optional
from pandas.plotting import register_matplotlib_converters
import openbb_terminal.cryptocurrency.due_diligence.pycoingecko_model as gecko
from openbb_terminal.cryptocurrency import cryptocurrency_helpers
from openbb_terminal.cryptocurrency.dataframe_helpers import wrap_text_in_df

View File

@@ -5,10 +5,10 @@ from typing import 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.cryptocurrency.discovery.pycoingecko_model import read_file_data
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__)

View File

@@ -4,20 +4,18 @@ from typing import List, Optional
from matplotlib import pyplot as plt
from openbb_terminal.config_terminal import theme
from openbb_terminal.decorators import check_api_key
from openbb_terminal import config_plot as cfgPlot
from openbb_terminal.config_terminal import theme
from openbb_terminal.cryptocurrency.due_diligence.santiment_model import (
get_github_activity,
)
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,
plot_autoscale,
is_valid_axes_count,
plot_autoscale,
)
logger = logging.getLogger(__name__)

View File

@@ -2,6 +2,7 @@
__docformat__ = "numpy"
import pandas as pd
import openbb_terminal.cryptocurrency.due_diligence.pycoingecko_model as gecko

Some files were not shown because too many files have changed in this diff Show More