mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-07 18:01:10 +00:00
* update package builder * sort childpath * rewrite docstrings * black & ruff * add futures to interface * typo * rename funcs * rename vars * rename vars * typo * wrong descripton news * rebuild python interface func fix * fix package builder tests * update docstring tests
28 lines
794 B
Python
28 lines
794 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 ( # pylint: disable=import-outside-toplevel
|
|
PackageBuilder,
|
|
)
|
|
|
|
PackageBuilder.build(modules=modules, lint=lint)
|