diff options
84 files changed, 1199 insertions, 4462 deletions
diff --git a/.dockerignore b/.dockerignore deleted file mode 100644 index 6f700b65fbf..00000000000 --- a/.dockerignore +++ /dev/null @@ -1,11 +0,0 @@ -.git -.* -.dockerignore -.gitignore -docker-compose.yaml -Dockerfile* -.vscode -.idea -__pycache__ -.python-version -logs/ diff --git a/.github/workflows/linting.yml b/.github/workflows/linting.yml index 2f068019a35..2abf2e5455f 100644 --- a/.github/workflows/linting.yml +++ b/.github/workflows/linting.yml @@ -95,5 +95,3 @@ jobs: - name: json-yaml-validate id: json-yaml-validate uses: GrantBirki/json-yaml-validate@v2.0.0 - with: - exclude_file: json_validate_exclude.txt diff --git a/.readthedocs.yaml b/.readthedocs.yaml deleted file mode 100644 index 3dacb80bae9..00000000000 --- a/.readthedocs.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# .readthedocs.yaml -# Read the Docs configuration file -# See https://docs.readthedocs.io/en/stable/config-file/v2.html for details ---- -# Required -version: 2 - -# Build documentation in the docs/ directory with Sphinx -sphinx: - configuration: docs/conf.py - -# Optionally build your docs in additional formats such as PDF -# formats: -# - pdf - -# Optionally set the version of Python and requirements to build your docs -python: - version: 3.7 - install: - - requirements: requirements-full.txt diff --git a/MANIFEST.in b/MANIFEST.in deleted file mode 100644 index a9fc50aa947..00000000000 --- a/MANIFEST.in +++ /dev/null @@ -1 +0,0 @@ -include openbb_terminal/.env
\ No newline at end of file diff --git a/json_validate_exclude.txt b/json_validate_exclude.txt deleted file mode 100644 index da93f0e08ad..00000000000 --- a/json_validate_exclude.txt +++ /dev/null @@ -1,3 +0,0 @@ -tests/ -openbb_terminal/miscellaneous/gpt_index/index_0.4.json -.devcontainer/devcontainer.json
\ No newline at end of file diff --git a/openbb_platform/providers/yfinance/openbb_yfinance/__init__.py b/openbb_platform/providers/yfinance/openbb_yfinance/__init__.py index ad777281871..2e1fc8ce7e8 100644 --- a/openbb_platform/providers/yfinance/openbb_yfinance/__init__.py +++ b/openbb_platform/providers/yfinance/openbb_yfinance/__init__.py @@ -27,9 +27,6 @@ from openbb_yfinance.models.index_historical import ( from openbb_yfinance.models.key_executives import YFinanceKeyExecutivesFetcher from openbb_yfinance.models.key_metrics import YFinanceKeyMetricsFetcher from openbb_yfinance.models.losers import YFLosersFetcher -from openbb_yfinance.models.market_indices import ( - YFinanceMarketIndicesFetcher, -) from openbb_yfinance.models.price_target_consensus import ( YFinancePriceTargetConsensusFetcher, ) diff --git a/CONTRIBUTING.md b/openbb_terminal/CONTRIBUTING.md index d76ef13106a..49314e4a8e4 100644 --- a/CONTRIBUTING.md +++ b/openbb_terminal/CONTRIBUTING.md @@ -109,7 +109,7 @@ import logging import pandas as pd -from openbb_terminal.core.session.current_user import get_current_user +from src.current_user import get_current_user from openbb_terminal.decorators import check_api_key, log_start_end from openbb_terminal.helpers import request @@ -1643,7 +1643,7 @@ Here is an example of **accessing** a setting: ```python -from openbb_terminal.core.session.current_system import get_current_system +from src.current_system import get_current_system system = get_current_system() system = get_current_system() @@ -1657,7 +1657,7 @@ And here is an example of **changing** a setting: ```python -from openbb_terminal.core.session.current_system import get_current_system +from src.current_system import get_current_system set_system_variable("TEST_MODE", True) diff --git a/openbb_terminal/README.md b/openbb_terminal/README.md new file mode 100644 index 00000000000..28bcbff336d --- /dev/null +++ b/openbb_terminal/README.md @@ -0,0 +1,3 @@ +# OpenBB CLI + +Work in progress. diff --git a/openbb_terminal/__init__.py b/openbb_terminal/__init__.py deleted file mode 100644 index 782b10b6d96..00000000000 --- a/openbb_terminal/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""OpenBB Platform CLI initialization.""" diff --git a/openbb_terminal/cli.py b/openbb_terminal/cli.py deleted file mode 100644 index 866df07cab1..00000000000 --- a/openbb_terminal/cli.py +++ /dev/null @@ -1,20 +0,0 @@ -"""OpenBB Terminal CLI entry point.""" - -import sys - -import openbb_terminal.core.config.config_terminal as cfg -from openbb_terminal.core.session import launcher - - -def main(): - """Use the main entry point for the OpenBB Terminal CLI.""" - cfg.setup_config_terminal() - - dev = "--dev" in sys.argv[1:] - debug = "--debug" in sys.argv[1:] - - launcher.launch_terminal(dev=dev, debug=debug) - - -if __name__ == "__main__": - main() diff --git a/openbb_terminal/core/__init__.py b/openbb_terminal/core/__init__.py deleted file mode 100644 index 324a0b1455e..00000000000 --- a/openbb_terminal/core/__init__.py +++ /dev/null @@ -1 +0,0 @@ -"""Core init.""" diff --git a/openbb_terminal/core/config/paths.py b/openbb_terminal/core/config/paths.py deleted file mode 100644 index 8a4c6553599..00000000000 --- a/openbb_terminal/core/config/paths.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Paths for the package.""" - -from pathlib import Path - -# Installation related paths -HOME_DIRECTORY = Path.home() -REPOSITORY_DIRECTORY = Path(__file__).parent.parent.parent.parent -PACKAGE_DIRECTORY = Path(__file__).parent.parent.parent -MISCELLANEOUS_DIRECTORY = PACKAGE_DIRECTORY / "miscellaneous" - -SETTINGS_DIRECTORY = HOME_DIRECTORY / ".openbb_terminal" -HIST_FILE_PATH = SETTINGS_DIRECTORY / ".openbb_terminal.his" - -# i18n_dict_location -I18N_DICT_LOCATION = MISCELLANEOUS_DIRECTORY / "i18n" - -# styles -STYLES_DIRECTORY_REPO = MISCELLANEOUS_DIRECTORY / "styles" - -# env -REPOSITORY_ENV_FILE = REPOSITORY_DIRECTORY / ".env" -PACKAGE_ENV_FILE = PACKAGE_DIRECTORY / ".env" -SETTINGS_ENV_FILE = SETTINGS_DIRECTORY / ".env" diff --git a/openbb_terminal/core/controllers/intro.json b/openbb_terminal/core/controllers/intro.json deleted file mode 100644 index 8b3c70f323d..00000000000 --- a/openbb_terminal/core/controllers/intro.json +++ /dev/null @@ -1,155 +0,0 @@ -{ - "prompts": [ - { - "header": "Welcome to the OpenBB Terminal.", - "content": [ - "\nThe following walkthrough will guide you towards making the most out of the OpenBB Terminal.\n\n", - "Press [param]Enter[/param] to continue or [param]'q'[/param] followed by [param]Enter[/param] to exit." - ] - }, - { - "header": "#1 - Commands vs menu.", - "content": [ - "\nMenus are a collection of 'commands' and 'sub-menus'.\n", - "You can identify them through their distinct color and a '>' at the beginning of the line\n\n", - "For instance:\n", - "[menu]> stocks access historical pricing data, options, sector [/menu]", - "[menu]and industry, and overall due diligence [/menu]\n\n", - "Commands are expected to return data either as a chart or table.\n", - "You can identify them through their distinct color\n\n", - "For instance:\n", - "[cmds] news display news articles based on term and data sources [/cmds]" - ] - }, - { - "header": "#2 - Using commands", - "content": [ - "\nCommands throughout the terminal can have additional arguments.\n\n", - "Let's say that in the current menu, you want to have more information about the command [param]'news'[/param]. \n\n", - "You can either see the available arguments in the terminal, using: [param]news -h[/param]\n\n", |