Files
OpenBB/openbb_sdk/openbb/__init__.py
montezdesousa 4435e1cbe7 Feature/gen docstring (#5326)
* 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
2023-08-16 11:47:44 +01:00

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)