mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-10-29 05:21:48 +00:00
* Linting * added extra params and file cleanup in yfinance * `yfinance` Fetcher refactored * `cboe` Fetcher refactored, pydocstyle pass and cleanup * `yfinance` Fetcher cleanup and pydocstyle pass * `cboe` Fetcher cleanup * ruff + black * Linting * Fetcher cleanup and typing, bug fixes Co-authored-by: montezdesousa * Fix CPI * Fix CBOE typing * Fix yfinance typing * MyPy improvements * remove pass * property reorder * update get_data_many to return raw data and refactor treasury rates * refactor stocksplits * stockquote * change data one and stock peers * stock ownership * stock news * stock multiples * insider trading * stock eod * share stats * sec fillings * risk premium * revenue business line * revenue geographic * price target * black * treasury rates descriptions * more descriptions * remove The from descriptions * remove The from descriptions * price target consensus * polygon forex pairs * fix `Annotated is not defined` in static files * cboe Fetcher relisted data and pyproject cleanup * major indices eod * yfinance relisted data * major indixes const * key metrics * key executive * institutional ownership * forgot futures curve * income statement * income statement growth * remove unecessary var * black * rename var * change generic var names * rename abstract fetcher inner properties * remove unused provider helpers * add class description * import from ParamSpec regardless of version * specific imports hub service & ruff * remove useless inspect import * update comment * remove mypy comment * fmp Fetcher refactor, pydocstyle pass and cleanup * ruff * query.Dict to query.dict and set dates to 1 year diff * polygon date interval is 1 year * typing * mypy --------- Co-authored-by: Pratyush Shukla <ps4534@nyu.edu> Co-authored-by: Diogo Sousa <montezdesousa@gmail.com>
29 lines
795 B
Python
29 lines
795 B
Python
# flake8: noqa
|
|
from typing import List, Optional, Union
|
|
|
|
from openbb_core.app.static.app_factory import create_app as __create_app
|
|
|
|
sdk = __create_app()
|
|
obb = sdk
|
|
|
|
|
|
def _rebuild_python_interface(
|
|
modules: Optional[Union[str, List[str]]] = None, lint: bool = True
|
|
) -> None:
|
|
"""Rebuild the Python SDK.
|
|
|
|
Parameters
|
|
----------
|
|
modules : Optional[List[str]], optional
|
|
The modules to rebuild, by default None
|
|
For example: "/news" or ["/news", "/crypto"]
|
|
If None, all modules are rebuilt.
|
|
lint : bool, optional
|
|
Whether to lint the code, by default True
|
|
"""
|
|
from openbb_core.app.static.package_builder import (
|
|
PackageBuilder,
|
|
) # pylint: disable=import-outside-toplevel
|
|
|
|
PackageBuilder.build(modules=modules, lint=lint)
|