diff --git a/openbb_platform/CONTRIBUTING.md b/openbb_platform/CONTRIBUTING.md index 3618344478a..52e976450ab 100644 --- a/openbb_platform/CONTRIBUTING.md +++ b/openbb_platform/CONTRIBUTING.md @@ -483,14 +483,14 @@ You can expect the following endpoint structure when using a `Fetcher` to serve ```python @router.command(model="Example") -def model_example( +async def model_example( # create an async endpoint cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Example Data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) ``` Let's break it down: diff --git a/openbb_platform/core/README.md b/openbb_platform/core/README.md index 383e82c567e..86e7d340700 100644 --- a/openbb_platform/core/README.md +++ b/openbb_platform/core/README.md @@ -117,7 +117,7 @@ from openbb_core.app.router import Router router = Router(prefix="/router_name") @router.command -def some_command( +async def some_command( # create an async function some_param: some_param_type, ) -> OBBject[Item]: pass @@ -129,14 +129,14 @@ This is an example how we do it for `equity.price.historical` which only depends ```python @router.command(model="EquityHistorical") -def historical( +async def historical( # create an async function cc: CommandContext, # user settings inside provider_choices: ProviderChoices, # available providers standard_params: StandardParams, # symbol, start_date, etc. extra_params: ExtraParams, # provider specific parameters ) -> OBBject[BaseModel]: """Load equity data for a specific ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) ``` ### Entrypoint diff --git a/openbb_platform/core/openbb_core/api/router/commands.py b/openbb_platform/core/openbb_core/api/router/commands.py index 0f90733d5d7..99a1f28f0b7 100644 --- a/openbb_platform/core/openbb_core/api/router/commands.py +++ b/openbb_platform/core/openbb_core/api/router/commands.py @@ -151,7 +151,7 @@ def build_api_wrapper( func.__annotations__ = new_annotations_map @wraps(wrapped=func) - def wrapper(*args: Tuple[Any], **kwargs: Dict[str, Any]): + async def wrapper(*args: Tuple[Any], **kwargs: Dict[str, Any]): user_settings: UserSettings = UserSettings.model_validate( kwargs.pop( "__authenticated_user_settings", @@ -159,7 +159,7 @@ def build_api_wrapper( ) ) execute = partial(command_runner.run, path, user_settings) - output: OBBject = execute(*args, **kwargs) + output: OBBject = await execute(*args, **kwargs) output = validate_output(output) return output diff --git a/openbb_platform/core/openbb_core/app/command_runner.py b/openbb_platform/core/openbb_core/app/command_runner.py index 3912fe7eca6..ae95313b5aa 100644 --- a/openbb_platform/core/openbb_core/app/command_runner.py +++ b/openbb_platform/core/openbb_core/app/command_runner.py @@ -23,6 +23,7 @@ from openbb_core.app.router import CommandMap from openbb_core.app.service.system_service import SystemService from openbb_core.app.service.user_service import UserService from openbb_core.env import Env +from openbb_core.provider.utils.helpers import maybe_coroutine, run_async class ExecutionContext: @@ -230,7 +231,7 @@ class ParametersBuilder: class StaticCommandRunner: @classmethod - def _command(cls, func: Callable, kwargs: Dict[str, Any]) -> OBBject: + async def _command(cls, func: Callable, kwargs: Dict[str, Any]) -> OBBject: """Run a command and return the output""" context_manager: Union[warnings.catch_warnings, ContextManager[None]] = ( warnings.catch_warnings(record=True) @@ -239,7 +240,7 @@ class StaticCommandRunner: ) with context_manager as warning_list: - obbject = func(**kwargs) + obbject = await maybe_coroutine(func, **kwargs) obbject.provider = getattr( kwargs.get("provider_choices", None), "provider", None @@ -272,7 +273,7 @@ class StaticCommandRunner: ) @classmethod - def _execute_func( + async def _execute_func( cls, route: str, args: Tuple[Any], @@ -306,7 +307,7 @@ class StaticCommandRunner: kwargs.pop("chart", None) try: - obbject = cls._command( + obbject = await cls._command( func=func, kwargs=kwargs, ) @@ -338,7 +339,7 @@ class StaticCommandRunner: return obbject @classmethod - def run( + async def run( cls, execution_context: ExecutionContext, /, @@ -352,7 +353,7 @@ class StaticCommandRunner: route = execution_context.route if func := command_map.get_command(route=route): - obbject = cls._execute_func( + obbject = await cls._execute_func( route=route, args=args, # type: ignore execution_context=execution_context, @@ -413,7 +414,7 @@ class CommandRunner: def user_settings(self, user_settings: UserSettings) -> None: self._user_settings = user_settings - def run( + async def run( self, route: str, user_settings: Optional[UserSettings] = None, @@ -431,8 +432,15 @@ class CommandRunner: user_settings=self._user_settings, ) - return StaticCommandRunner.run( - execution_context, - *args, - **kwargs, - ) + return await StaticCommandRunner.run(execution_context, *args, **kwargs) + + def sync_run( + self, + route: str, + user_settings: Optional[UserSettings] = None, + /, + *args, + **kwargs, + ) -> OBBject: + """Run a command and return the OBBject as output.""" + return run_async(self.run, route, user_settings, *args, **kwargs) diff --git a/openbb_platform/core/openbb_core/app/model/obbject.py b/openbb_platform/core/openbb_core/app/model/obbject.py index 2df7c842a44..e66adb35dbd 100644 --- a/openbb_platform/core/openbb_core/app/model/obbject.py +++ b/openbb_platform/core/openbb_core/app/model/obbject.py @@ -22,11 +22,12 @@ from openbb_core.app.model.abstract.tagged import Tagged from openbb_core.app.model.abstract.warning import Warning_ from openbb_core.app.model.charts.chart import Chart from openbb_core.app.provider_interface import ProviderInterface +from openbb_core.app.query import Query from openbb_core.app.utils import basemodel_to_df if TYPE_CHECKING: try: - from polars import DataFrame as PolarsDataFrame + from polars import DataFrame as PolarsDataFrame # type: ignore except ImportError: PolarsDataFrame = None @@ -184,7 +185,7 @@ class OBBject(Tagged, Generic[T]): def to_polars(self) -> "PolarsDataFrame": """Convert results field to polars dataframe.""" try: - from polars import from_pandas # pylint: disable=import-outside-toplevel + from polars import from_pandas # type: ignore # pylint: disable=import-outside-toplevel except ImportError as exc: raise ImportError( "Please install polars: `pip install polars pyarrow` to use this method." @@ -271,3 +272,20 @@ class OBBject(Tagged, Generic[T]): "Please compute the chart first by using the `chart=True` argument." ) self.chart.fig.show() + + @classmethod + async def from_query(cls, query: Query) -> "OBBject": + """Create OBBject from query. + + Parameters + ---------- + query : Query + Initialized query object. + + Returns + ------- + OBBject[ResultsType] + OBBject with results. + """ + + return cls(results=await query.execute()) diff --git a/openbb_platform/core/openbb_core/app/provider_interface.py b/openbb_platform/core/openbb_core/app/provider_interface.py index 239ab129312..59ce12edb4f 100644 --- a/openbb_platform/core/openbb_core/app/provider_interface.py +++ b/openbb_platform/core/openbb_core/app/provider_interface.py @@ -184,7 +184,7 @@ class ProviderInterface(metaclass=SingletonMeta): if SequenceMatcher(None, curr_detail, inc_detail).ratio() > 0.8: new_desc = f"{curr_detail} (provider: {formatted_prov})" else: - new_desc = f"{current_desc}; {incoming_desc}" + new_desc = f"{current_desc};\n {incoming_desc}" merged_default = F( # type: ignore default=current.default.default, diff --git a/openbb_platform/core/openbb_core/app/query.py b/openbb_platform/core/openbb_core/app/query.py index 67caf9b08eb..3f2cfc878d0 100644 --- a/openbb_platform/core/openbb_core/app/query.py +++ b/openbb_platform/core/openbb_core/app/query.py @@ -59,7 +59,7 @@ class Query: return filtered - def execute(self) -> Any: + async def execute(self) -> Any: """Execute the query.""" standard_dict = asdict(self.standard_params) extra_dict = ( @@ -69,7 +69,7 @@ class Query: ) query_executor = self.provider_interface.create_executor() - return query_executor.execute( + return await query_executor.execute( provider_name=self.provider, model_name=self.name, params={**standard_dict, **extra_dict}, diff --git a/openbb_platform/core/openbb_core/app/router.py b/openbb_platform/core/openbb_core/app/router.py index d7237e99233..0a65a26a764 100644 --- a/openbb_platform/core/openbb_core/app/router.py +++ b/openbb_platform/core/openbb_core/app/router.py @@ -1,7 +1,7 @@ import traceback import warnings from functools import lru_cache, partial -from inspect import Parameter, Signature, isclass, signature +from inspect import Parameter, Signature, isclass, iscoroutinefunction, signature from typing import ( Any, Callable, @@ -161,7 +161,23 @@ class CommandValidator: ) @classmethod - def check(cls, func: Callable): + def check(cls, func: Callable, model: str = ""): + if model and not iscoroutinefunction(func): + raise TypeError( + f"Invalid function: {func.__module__}.{func.__name__}\n" + "Model is specified but function is not async.\n" + "\n\n" + '\033[92m@router.command(model="WorldNews")\n' + "async def world(\n" + " cc: CommandContext,\n" + " provider_choices: ProviderChoices,\n" + " standard_params: StandardParams,\n" + " extra_params: ExtraParams,\n" + ") -> OBBject[BaseModel]:\n" + ' """World News. Global news data."""\n' + " return await OBBject.from_query(Query(**locals()))\033[0m" + ) + cls.check_return(func=func) cls.check_parameters(func=func) @@ -206,7 +222,7 @@ class Router: func = SignatureInspector.complete_signature(func, model) if func: - CommandValidator.check(func=func) + CommandValidator.check(func=func, model=model) kwargs["operation_id"] = kwargs.get( "operation_id", SignatureInspector.get_operation_id(func) @@ -403,8 +419,8 @@ class SignatureInspector: def get_operation_id(func: Callable) -> str: """Get operation id""" operation_id = [ - t.replace("_router", "") - for t in func.__module__.split(".")[1:] + [func.__name__] + t.replace("_router", "").replace("openbb_", "") + for t in func.__module__.split(".") + [func.__name__] ] cleaned_id = "_".join({c: "" for c in operation_id if c}.keys()) return cleaned_id @@ -550,6 +566,9 @@ class RouterLoader: router.include_router(router=entry, prefix=f"/{entry_point.name}") except Exception as e: traceback.print_exception(type(e), e, e.__traceback__) - raise LoadingError(f"Invalid extension '{entry_point.name}'") from e + raise LoadingError( + f"Error loading extension: {entry_point.name}\n" + f"\033[91m{e}\033[0m" + ) return router diff --git a/openbb_platform/core/openbb_core/app/static/container.py b/openbb_platform/core/openbb_core/app/static/container.py index c69bbba1305..f5619183c95 100644 --- a/openbb_platform/core/openbb_core/app/static/container.py +++ b/openbb_platform/core/openbb_core/app/static/container.py @@ -16,7 +16,7 @@ class Container: def _run(self, *args, **kwargs) -> Union[OBBject, pd.DataFrame, dict]: """Run a command in the container.""" - obbject = self._command_runner.run(*args, **kwargs) + obbject = self._command_runner.sync_run(*args, **kwargs) output_type = self._command_runner.user_settings.preferences.output_type if output_type == "OBBject": return obbject diff --git a/openbb_platform/core/openbb_core/provider/abstract/data.py b/openbb_platform/core/openbb_core/provider/abstract/data.py index ab2b7270aef..073945903ab 100644 --- a/openbb_platform/core/openbb_core/provider/abstract/data.py +++ b/openbb_platform/core/openbb_core/provider/abstract/data.py @@ -2,8 +2,13 @@ from typing import Dict -from pydantic import BaseModel, ConfigDict, alias_generators, model_validator -from pydantic.functional_validators import BeforeValidator +from pydantic import ( + BaseModel, + BeforeValidator, + ConfigDict, + alias_generators, + model_validator, +) from typing_extensions import Annotated @@ -15,7 +20,7 @@ def check_int(v: int) -> int: raise TypeError("value must be an int") from exc -StrictInt = Annotated[int, BeforeValidator(check_int)] +ForceInt = Annotated[int, BeforeValidator(check_int)] class Data(BaseModel): @@ -32,9 +37,9 @@ class Data(BaseModel): Key Features: - Dynamic field support: Can dynamically handle fields that are not pre-defined in the model, - allowing for great flexibility in dealing with different data shapes. + allowing for great flexibility in dealing with different data shapes. - Alias handling: Utilizes an aliasing mechanism to maintain compatibility with different naming - conventions across various data formats. + conventions across various data formats. Usage: The `Data` class can be instantiated with keyword arguments corresponding to the fields of the diff --git a/openbb_platform/core/openbb_core/provider/abstract/fetcher.py b/openbb_platform/core/openbb_core/provider/abstract/fetcher.py index 804da39ee47..2a7c39e9393 100644 --- a/openbb_platform/core/openbb_core/provider/abstract/fetcher.py +++ b/openbb_platform/core/openbb_core/provider/abstract/fetcher.py @@ -2,12 +2,21 @@ # ruff: noqa: S101 # pylint: disable=E1101 -from typing import Any, Dict, Generic, Optional, TypeVar, get_args, get_origin +from typing import ( + Any, + Dict, + Generic, + Optional, + TypeVar, + get_args, + get_origin, +) from pandas import DataFrame from openbb_core.provider.abstract.data import Data from openbb_core.provider.abstract.query_params import QueryParams +from openbb_core.provider.utils.helpers import maybe_coroutine, run_async Q = TypeVar("Q", bound=QueryParams) D = TypeVar("D", bound=Data) @@ -48,7 +57,7 @@ class Fetcher(Generic[Q, R]): raise NotImplementedError @classmethod - def fetch_data( + async def fetch_data( cls, params: Dict[str, Any], credentials: Optional[Dict[str, str]] = None, @@ -56,7 +65,9 @@ class Fetcher(Generic[Q, R]): ) -> R: """Fetch data from a provider.""" query = cls.transform_query(params=params) - data = cls.extract_data(query=query, credentials=credentials, **kwargs) + data = await maybe_coroutine( + cls.extract_data, query=query, credentials=credentials, **kwargs + ) return cls.transform_data(query=query, data=data, **kwargs) @classproperty @@ -108,7 +119,9 @@ class Fetcher(Generic[Q, R]): If any of the tests fail. """ query = cls.transform_query(params=params) - data = cls.extract_data(query=query, credentials=credentials, **kwargs) + data = run_async( + cls.extract_data, query=query, credentials=credentials, **kwargs + ) transformed_data = cls.transform_data(query=query, data=data, **kwargs) # Class Assertions diff --git a/openbb_platform/core/openbb_core/provider/query_executor.py b/openbb_platform/core/openbb_core/provider/query_executor.py index 4c7b557aa22..34b6cd6aebe 100644 --- a/openbb_platform/core/openbb_core/provider/query_executor.py +++ b/openbb_platform/core/openbb_core/provider/query_executor.py @@ -59,7 +59,7 @@ class QueryExecutor: return filtered_credentials - def execute( + async def execute( self, provider_name: str, model_name: str, @@ -93,6 +93,6 @@ class QueryExecutor: ) try: - return fetcher.fetch_data(params, filtered_credentials, **kwargs) + return await fetcher.fetch_data(params, filtered_credentials, **kwargs) except Exception as e: raise ProviderError(e) from e diff --git a/openbb_platform/core/openbb_core/provider/standard_models/analyst_estimates.py b/openbb_platform/core/openbb_core/provider/standard_models/analyst_estimates.py index a2276aa190c..cd42699cc8c 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/analyst_estimates.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/analyst_estimates.py @@ -6,7 +6,7 @@ from typing import List, Literal, Set, Union from pydantic import Field, field_validator -from openbb_core.provider.abstract.data import Data, StrictInt +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import ( DATA_DESCRIPTIONS, @@ -36,38 +36,38 @@ class AnalystEstimatesData(Data): symbol: str = Field(description=DATA_DESCRIPTIONS.get("symbol", "")) date: dateType = Field(description=DATA_DESCRIPTIONS.get("date", "")) - estimated_revenue_low: StrictInt = Field(description="Estimated revenue low.") - estimated_revenue_high: StrictInt = Field(description="Estimated revenue high.") - estimated_revenue_avg: StrictInt = Field(description="Estimated revenue average.") - estimated_ebitda_low: StrictInt = Field(description="Estimated EBITDA low.") - estimated_ebitda_high: StrictInt = Field(description="Estimated EBITDA high.") - estimated_ebitda_avg: StrictInt = Field(description="Estimated EBITDA average.") - estimated_ebit_low: StrictInt = Field(description="Estimated EBIT low.") - estimated_ebit_high: StrictInt = Field(description="Estimated EBIT high.") - estimated_ebit_avg: StrictInt = Field(description="Estimated EBIT average.") - estimated_net_income_low: StrictInt = Field(description="Estimated net income low.") - estimated_net_income_high: StrictInt = Field( + estimated_revenue_low: ForceInt = Field(description="Estimated revenue low.") + estimated_revenue_high: ForceInt = Field(description="Estimated revenue high.") + estimated_revenue_avg: ForceInt = Field(description="Estimated revenue average.") + estimated_ebitda_low: ForceInt = Field(description="Estimated EBITDA low.") + estimated_ebitda_high: ForceInt = Field(description="Estimated EBITDA high.") + estimated_ebitda_avg: ForceInt = Field(description="Estimated EBITDA average.") + estimated_ebit_low: ForceInt = Field(description="Estimated EBIT low.") + estimated_ebit_high: ForceInt = Field(description="Estimated EBIT high.") + estimated_ebit_avg: ForceInt = Field(description="Estimated EBIT average.") + estimated_net_income_low: ForceInt = Field(description="Estimated net income low.") + estimated_net_income_high: ForceInt = Field( description="Estimated net income high." ) - estimated_net_income_avg: StrictInt = Field( + estimated_net_income_avg: ForceInt = Field( description="Estimated net income average." ) - estimated_sga_expense_low: StrictInt = Field( + estimated_sga_expense_low: ForceInt = Field( description="Estimated SGA expense low." ) - estimated_sga_expense_high: StrictInt = Field( + estimated_sga_expense_high: ForceInt = Field( description="Estimated SGA expense high." ) - estimated_sga_expense_avg: StrictInt = Field( + estimated_sga_expense_avg: ForceInt = Field( description="Estimated SGA expense average." ) estimated_eps_avg: float = Field(description="Estimated EPS average.") estimated_eps_high: float = Field(description="Estimated EPS high.") estimated_eps_low: float = Field(description="Estimated EPS low.") - number_analyst_estimated_revenue: StrictInt = Field( + number_analyst_estimated_revenue: ForceInt = Field( description="Number of analysts who estimated revenue." ) - number_analysts_estimated_eps: StrictInt = Field( + number_analysts_estimated_eps: ForceInt = Field( description="Number of analysts who estimated EPS." ) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/company_filings.py b/openbb_platform/core/openbb_core/provider/standard_models/company_filings.py index 2bc3541b3b3..d57e9aeb6a4 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/company_filings.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/company_filings.py @@ -4,6 +4,7 @@ from datetime import date as dateType from typing import List, Literal, Optional, Set, Union +from dateutil import parser from pydantic import Field, field_validator from openbb_core.provider.abstract.data import Data @@ -144,3 +145,8 @@ class CompanyFilingsData(Data): ) type: str = Field(description="Type of document.") link: str = Field(description="URL to the document.") + + @field_validator("date", mode="before", check_fields=False) + def convert_date(cls, v: str): + """Convert date to date type.""" + return parser.parse(str(v)).date() diff --git a/openbb_platform/core/openbb_core/provider/standard_models/company_overview.py b/openbb_platform/core/openbb_core/provider/standard_models/company_overview.py index fd4c0a6fb80..3a75fb7f699 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/company_overview.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/company_overview.py @@ -6,7 +6,7 @@ from typing import List, Optional, Set, Union from pydantic import Field, field_validator -from openbb_core.provider.abstract.data import Data, StrictInt +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import ( DATA_DESCRIPTIONS, @@ -36,10 +36,10 @@ class CompanyOverviewData(Data): symbol: str = Field(description=DATA_DESCRIPTIONS.get("symbol", "")) price: Optional[float] = Field(default=None, description="Price of the company.") beta: Optional[float] = Field(default=None, description="Beta of the company.") - vol_avg: Optional[StrictInt] = Field( + vol_avg: Optional[ForceInt] = Field( default=None, description="Volume average of the company." ) - mkt_cap: Optional[StrictInt] = Field( + mkt_cap: Optional[ForceInt] = Field( default=None, description="Market capitalization of the company." ) last_div: Optional[float] = Field( diff --git a/openbb_platform/core/openbb_core/provider/standard_models/financial_ratios.py b/openbb_platform/core/openbb_core/provider/standard_models/financial_ratios.py index 2411bb1ce20..f8ee01ab31d 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/financial_ratios.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/financial_ratios.py @@ -176,6 +176,12 @@ class FinancialRatiosData(Data): default=None, description="Price sales ratio." ) dividend_yield: Optional[float] = Field(default=None, description="Dividend yield.") + dividend_yield_percentage: Optional[float] = Field( + default=None, description="Dividend yield percentage." + ) + dividend_per_share: Optional[float] = Field( + default=None, description="Dividend per share." + ) enterprise_value_multiple: Optional[float] = Field( default=None, description="Enterprise value multiple." ) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/fred_indices.py b/openbb_platform/core/openbb_core/provider/standard_models/fred_indices.py index c705819ecf1..c2d16b57be1 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/fred_indices.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/fred_indices.py @@ -4,7 +4,7 @@ from datetime import date as dateType from typing import List, Optional, Set, Union -from pydantic import Field, PositiveFloat, field_validator +from pydantic import Field, field_validator from openbb_core.provider.abstract.data import Data from openbb_core.provider.abstract.query_params import QueryParams @@ -42,6 +42,4 @@ class FredIndicesData(Data): """FRED Indices Data.""" date: dateType = Field(description=DATA_DESCRIPTIONS.get("date", "")) - value: Optional[PositiveFloat] = Field( - default=None, description="Value of the index." - ) + value: Optional[float] = Field(default=None, description="Value of the index.") diff --git a/openbb_platform/core/openbb_core/provider/standard_models/insider_trading.py b/openbb_platform/core/openbb_core/provider/standard_models/insider_trading.py index c4d3d5dfcc7..d1f15d81606 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/insider_trading.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/insider_trading.py @@ -4,9 +4,9 @@ from datetime import date, datetime, time from typing import List, Literal, Optional, Set, Union from dateutil import parser -from pydantic import Field, StrictInt, field_validator, model_validator +from pydantic import Field, field_validator, model_validator -from openbb_core.provider.abstract.data import Data +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import ( DATA_DESCRIPTIONS, @@ -39,10 +39,10 @@ class InsiderTradingQueryParams(QueryParams): """Insider Trading Query.""" symbol: str = Field(description=QUERY_DESCRIPTIONS.get("symbol", "")) - transaction_type: Optional[Union[List[TRANSACTION_TYPES], str]] = Field( - default=["P-Purchase"], description="Type of the transaction." + transaction_type: Union[List[TRANSACTION_TYPES], str, None] = Field( + default=None, description="Type of the transaction." ) - limit: StrictInt = Field( + limit: ForceInt = Field( default=100, description=QUERY_DESCRIPTIONS.get("limit", ""), ) @@ -72,29 +72,39 @@ class InsiderTradingData(Data): transaction_date: date = Field( description="Transaction date of the insider trading." ) - reporting_cik: int = Field(description="Reporting CIK of the insider trading.") + reporting_cik: Optional[int] = Field( + default=None, description="Reporting CIK of the insider trading." + ) transaction_type: str = Field( description="Transaction type of the insider trading." ) - securities_owned: StrictInt = Field( - description="Securities owned of the insider trading." + securities_owned: Optional[ForceInt] = Field( + default=None, description="Securities owned of the insider trading." + ) + company_cik: Optional[int] = Field( + default=None, description="Company CIK of the insider trading." + ) + reporting_name: Optional[str] = Field( + default=None, description="Reporting name of the insider trading." + ) + type_of_owner: Optional[str] = Field( + default=None, description="Type of owner of the insider trading." ) - company_cik: int = Field(description="Company CIK of the insider trading.") - reporting_name: str = Field(description="Reporting name of the insider trading.") - type_of_owner: str = Field(description="Type of owner of the insider trading.") acquisition_or_disposition: Optional[str] = Field( default=None, description="Acquisition or disposition of the insider trading.", ) form_type: str = Field(description="Form type of the insider trading.") - securities_transacted: float = Field( - description="Securities transacted of the insider trading." + securities_transacted: Optional[float] = Field( + default=None, description="Securities transacted of the insider trading." ) price: Optional[float] = Field( default=None, description="Price of the insider trading.", ) - security_name: str = Field(description="Security name of the insider trading.") + security_name: Optional[str] = Field( + default=None, description="Security name of the insider trading." + ) link: str = Field(description="Link of the insider trading.") @field_validator("symbol", mode="before", check_fields=False) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/key_executives.py b/openbb_platform/core/openbb_core/provider/standard_models/key_executives.py index b2e95152003..cf61e297ece 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/key_executives.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/key_executives.py @@ -4,7 +4,7 @@ from typing import List, Optional, Set, Union from pydantic import Field, field_validator -from openbb_core.provider.abstract.data import Data, StrictInt +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import QUERY_DESCRIPTIONS @@ -27,16 +27,16 @@ class KeyExecutivesData(Data): title: str = Field(description="Designation of the key executive.") name: str = Field(description="Name of the key executive.") - pay: Optional[StrictInt] = Field( + pay: Optional[ForceInt] = Field( default=None, description="Pay of the key executive." ) currency_pay: str = Field(description="Currency of the pay.") gender: Optional[str] = Field( default=None, description="Gender of the key executive." ) - year_born: Optional[StrictInt] = Field( + year_born: Optional[ForceInt] = Field( default=None, description="Birth year of the key executive." ) - title_since: Optional[StrictInt] = Field( + title_since: Optional[ForceInt] = Field( default=None, description="Date the tile was held since." ) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py b/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py index ac1427cb223..f1d48d3f727 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/market_indices.py @@ -7,9 +7,9 @@ from datetime import ( from typing import List, Optional, Set, Union from dateutil import parser -from pydantic import Field, StrictFloat, StrictInt, field_validator +from pydantic import Field, StrictFloat, field_validator -from openbb_core.provider.abstract.data import Data +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import ( DATA_DESCRIPTIONS, @@ -44,7 +44,7 @@ class MarketIndicesData(Data): high: StrictFloat = Field(description=DATA_DESCRIPTIONS.get("high", "")) low: StrictFloat = Field(description=DATA_DESCRIPTIONS.get("low", "")) close: StrictFloat = Field(description=DATA_DESCRIPTIONS.get("close", "")) - volume: Optional[StrictInt] = Field( + volume: Optional[ForceInt] = Field( default=None, description=DATA_DESCRIPTIONS.get("volume", "") ) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/revenue_business_line.py b/openbb_platform/core/openbb_core/provider/standard_models/revenue_business_line.py index 54fbf0ace09..4c44a136b6d 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/revenue_business_line.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/revenue_business_line.py @@ -6,7 +6,7 @@ from typing import Dict, List, Literal, Set, Union from pydantic import Field, field_validator -from openbb_core.provider.abstract.data import Data +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import ( DATA_DESCRIPTIONS, @@ -37,6 +37,6 @@ class RevenueBusinessLineData(Data): """Revenue by Business Line Data.""" date: dateType = Field(description=DATA_DESCRIPTIONS.get("date", "")) - business_line: Dict[str, int] = Field( + business_line: Dict[str, ForceInt] = Field( description="Day level data containing the revenue of the business line." ) diff --git a/openbb_platform/core/openbb_core/provider/standard_models/revenue_geographic.py b/openbb_platform/core/openbb_core/provider/standard_models/revenue_geographic.py index ef2ba4f6ebc..04344199df8 100644 --- a/openbb_platform/core/openbb_core/provider/standard_models/revenue_geographic.py +++ b/openbb_platform/core/openbb_core/provider/standard_models/revenue_geographic.py @@ -6,7 +6,7 @@ from typing import Dict, List, Literal, Optional, Set, Union from pydantic import Field, field_validator -from openbb_core.provider.abstract.data import Data, StrictInt +from openbb_core.provider.abstract.data import Data, ForceInt from openbb_core.provider.abstract.query_params import QueryParams from openbb_core.provider.utils.descriptions import ( DATA_DESCRIPTIONS, @@ -37,21 +37,21 @@ class RevenueGeographicData(Data): """Revenue by Geographic Segments Data.""" date: dateType = Field(description=DATA_DESCRIPTIONS.get("date", "")) - geographic_segment: Dict[str, int] = Field( + geographic_segment: Dict[str, ForceInt] = Field( description="Day level data containing the revenue of the geographic segment." ) - americas: Optional[StrictInt] = Field( + americas: Optional[ForceInt] = Field( default=None, description="Revenue from the the American segment." ) - europe: Optional[StrictInt] = Field( + europe: Optional[ForceInt] = Field( default=None, description="Revenue from the the European segment." ) - greater_china: Optional[StrictInt] = Field( + greater_china: Optional[ForceInt] = Field( default=None, description="Revenue from the the Greater China segment." ) - japan: Optional[StrictInt] = Field( + japan: Optional[ForceInt] = Field( default=None, description="Revenue from the the Japan segment." ) - rest_of_asia_pacific: Optional[StrictInt] = Field( + rest_of_asia_pacific: Optional[ForceInt] = Field( default=None, description="Revenue from the the Rest of Asia Pacific segment." ) diff --git a/openbb_platform/core/openbb_core/provider/utils/helpers.py b/openbb_platform/core/openbb_core/provider/utils/helpers.py index 6d7bececc60..9a20ae3f52c 100644 --- a/openbb_platform/core/openbb_core/provider/utils/helpers.py +++ b/openbb_platform/core/openbb_core/provider/utils/helpers.py @@ -1,9 +1,19 @@ """Provider helpers.""" +import asyncio import random import re -from typing import List +import zlib +from functools import partial +from inspect import iscoroutinefunction +from typing import Awaitable, Callable, List, Literal, Optional, TypeVar, Union, cast +import aiohttp import requests +from anyio import start_blocking_portal +from typing_extensions import ParamSpec + +T = TypeVar("T") +P = ParamSpec("P") def get_querystring(items: dict, exclude: List[str]) -> str: @@ -55,6 +65,75 @@ def get_user_agent() -> str: return random.choice(user_agent_strings) # nosec # noqa: S311 +async def async_make_request( + url: str, + method: Literal["GET", "POST"] = "GET", + timeout: int = 10, + response_callback: Optional[ + Callable[[aiohttp.ClientResponse], Awaitable[Union[dict, List[dict]]]] + ] = None, + **kwargs, +) -> Union[dict, List[dict]]: + """Abstract helper to make requests from a url with potential headers and params. + + + Parameters + ---------- + url : str + Url to make the request to + method : str, optional + HTTP method to use. Can be "GET" or "POST", by default "GET" + timeout : int, optional + Timeout in seconds, by default 10. Can be overwritten by user setting, request_timeout + response_callback : Callable[[aiohttp.ClientResponse], Awaitable[Union[dict, List[dict]]]], optional + Callback to run on the response, by default None + + + Returns + ------- + Union[dict, List[dict]] + Response json + """ + + kwargs["timeout"] = kwargs.pop("preferences", {}).get("request_timeout", timeout) + kwargs["headers"] = kwargs.get( + "headers", + # Default headers, makes sure we accept gzip + { + "Accept": "*/*", + "Accept-Encoding": "gzip, deflate", + "Connection": "keep-alive", + }, + ) + + raise_for_status = kwargs.pop("raise_for_status", False) + response_callback = response_callback or (lambda r: asyncio.ensure_future(r.json())) + + if kwargs["headers"].get("User-Agent", None) is None: + kwargs["headers"]["User-Agent"] = get_user_agent() + + if _session := kwargs.pop("session", None): + r = getattr(_session, method)(url, **kwargs) + + return await response_callback(r) + + async with aiohttp.ClientSession( + auto_decompress=False, + connector=aiohttp.TCPConnector(), + raise_for_status=raise_for_status, + ) as session, session.request(method, url, **kwargs) as response: + # we need to decompress the response manually, so pytest-vcr records as bytes + encoding = response.headers.get("Content-Encoding", "") + if encoding in ("gzip", "deflate"): + response_body = await response.read() + wbits = 16 + zlib.MAX_WBITS if encoding == "gzip" else -zlib.MAX_WBITS + response._body = zlib.decompress( + response_body, wbits + ) # pylint: disable=protected-access + + return await response_callback(response) + + def make_request( url: str, method: str = "GET", timeout: int = 10, **kwargs ) -> requests.Response: @@ -119,3 +198,26 @@ def to_snake_case(string: str) -> str: .replace(" ", "_") .replace("__", "_") ) + + +async def maybe_coroutine( + func: Callable[P, Union[T, Awaitable[T]]], /, *args: P.args, **kwargs: P.kwargs +) -> T: + """Check if a function is a coroutine and run it accordingly.""" + + if not iscoroutinefunction(func): + return cast(T, func(*args, **kwargs)) + + return await func(*args, **kwargs) + + +def run_async( + func: Callable[P, Awaitable[T]], /, *args: P.args, **kwargs: P.kwargs +) -> T: + """Run a coroutine function in a blocking context.""" + + if not iscoroutinefunction(func): + return cast(T, func(*args, **kwargs)) + + with start_blocking_portal() as portal: + return portal.call(partial(func, *args, **kwargs)) diff --git a/openbb_platform/core/poetry.lock b/openbb_platform/core/poetry.lock index 756a06ffa44..f5058e6aa39 100644 --- a/openbb_platform/core/poetry.lock +++ b/openbb_platform/core/poetry.lock @@ -1,5 +1,115 @@ # This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. +[[package]] +name = "aiohttp" +version = "3.9.0" +description = "Async http client/server framework (asyncio)" +optional = false +python-versions = ">=3.8" +files = [ + {file = "aiohttp-3.9.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:6896b8416be9ada4d22cd359d7cb98955576ce863eadad5596b7cdfbf3e17c6c"}, + {file = "aiohttp-3.9.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:1736d87dad8ef46a8ec9cddd349fa9f7bd3a064c47dd6469c0d6763d3d49a4fc"}, + {file = "aiohttp-3.9.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8c9e5f4d7208cda1a2bb600e29069eecf857e6980d0ccc922ccf9d1372c16f4b"}, + {file = "aiohttp-3.9.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8488519aa05e636c5997719fe543c8daf19f538f4fa044f3ce94bee608817cff"}, + {file = "aiohttp-3.9.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5ab16c254e2312efeb799bc3c06897f65a133b38b69682bf75d1f1ee1a9c43a9"}, + {file = "aiohttp-3.9.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:7a94bde005a8f926d0fa38b88092a03dea4b4875a61fbcd9ac6f4351df1b57cd"}, + {file = "aiohttp-3.9.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4b777c9286b6c6a94f50ddb3a6e730deec327e9e2256cb08b5530db0f7d40fd8"}, + {file = "aiohttp-3.9.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:571760ad7736b34d05597a1fd38cbc7d47f7b65deb722cb8e86fd827404d1f6b"}, + {file = "aiohttp-3.9.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:deac0a32aec29608eb25d730f4bc5a261a65b6c48ded1ed861d2a1852577c932"}, + {file = "aiohttp-3.9.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:4ee1b4152bc3190cc40ddd6a14715e3004944263ea208229ab4c297712aa3075"}, + {file = "aiohttp-3.9.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:3607375053df58ed6f23903aa10cf3112b1240e8c799d243bbad0f7be0666986"}, + {file = "aiohttp-3.9.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:65b0a70a25456d329a5e1426702dde67be0fb7a4ead718005ba2ca582d023a94"}, + {file = "aiohttp-3.9.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:5a2eb5311a37fe105aa35f62f75a078537e1a9e4e1d78c86ec9893a3c97d7a30"}, + {file = "aiohttp-3.9.0-cp310-cp310-win32.whl", hash = "sha256:2cbc14a13fb6b42d344e4f27746a4b03a2cb0c1c3c5b932b0d6ad8881aa390e3"}, + {file = "aiohttp-3.9.0-cp310-cp310-win_amd64.whl", hash = "sha256:ac9669990e2016d644ba8ae4758688534aabde8dbbc81f9af129c3f5f01ca9cd"}, + {file = "aiohttp-3.9.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:f8e05f5163528962ce1d1806fce763ab893b1c5b7ace0a3538cd81a90622f844"}, + {file = "aiohttp-3.9.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:4afa8f71dba3a5a2e1e1282a51cba7341ae76585345c43d8f0e624882b622218"}, + {file = "aiohttp-3.9.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:f929f4c9b9a00f3e6cc0587abb95ab9c05681f8b14e0fe1daecfa83ea90f8318"}, + {file = "aiohttp-3.9.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:28185e36a78d247c55e9fbea2332d16aefa14c5276a582ce7a896231c6b1c208"}, + {file = "aiohttp-3.9.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a486ddf57ab98b6d19ad36458b9f09e6022de0381674fe00228ca7b741aacb2f"}, + {file = "aiohttp-3.9.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:70e851f596c00f40a2f00a46126c95c2e04e146015af05a9da3e4867cfc55911"}, + {file = "aiohttp-3.9.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c5b7bf8fe4d39886adc34311a233a2e01bc10eb4e842220235ed1de57541a896"}, + {file = "aiohttp-3.9.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c67a51ea415192c2e53e4e048c78bab82d21955b4281d297f517707dc836bf3d"}, + {file = "aiohttp-3.9.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:694df243f394629bcae2d8ed94c589a181e8ba8604159e6e45e7b22e58291113"}, + {file = "aiohttp-3.9.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:3dd8119752dd30dd7bca7d4bc2a92a59be6a003e4e5c2cf7e248b89751b8f4b7"}, + {file = "aiohttp-3.9.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:eb6dfd52063186ac97b4caa25764cdbcdb4b10d97f5c5f66b0fa95052e744eb7"}, + {file = "aiohttp-3.9.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:d97c3e286d0ac9af6223bc132dc4bad6540b37c8d6c0a15fe1e70fb34f9ec411"}, + {file = "aiohttp-3.9.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:816f4db40555026e4cdda604a1088577c1fb957d02f3f1292e0221353403f192"}, + {file = "aiohttp-3.9.0-cp311-cp311-win32.whl", hash = "sha256:3abf0551874fecf95f93b58f25ef4fc9a250669a2257753f38f8f592db85ddea"}, + {file = "aiohttp-3.9.0-cp311-cp311-win_amd64.whl", hash = "sha256:e18d92c3e9e22553a73e33784fcb0ed484c9874e9a3e96c16a8d6a1e74a0217b"}, + {file = "aiohttp-3.9.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:99ae01fb13a618b9942376df77a1f50c20a281390dad3c56a6ec2942e266220d"}, + {file = "aiohttp-3.9.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:05857848da443c8c12110d99285d499b4e84d59918a21132e45c3f0804876994"}, + {file = "aiohttp-3.9.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:317719d7f824eba55857fe0729363af58e27c066c731bc62cd97bc9c3d9c7ea4"}, + {file = "aiohttp-3.9.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a1e3b3c107ccb0e537f309f719994a55621acd2c8fdf6d5ce5152aed788fb940"}, + {file = "aiohttp-3.9.0-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:45820ddbb276113ead8d4907a7802adb77548087ff5465d5c554f9aa3928ae7d"}, + {file = "aiohttp-3.9.0-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:05a183f1978802588711aed0dea31e697d760ce9055292db9dc1604daa9a8ded"}, + {file = "aiohttp-3.9.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:51a4cd44788ea0b5e6bb8fa704597af3a30be75503a7ed1098bc5b8ffdf6c982"}, + {file = "aiohttp-3.9.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:673343fbc0c1ac44d0d2640addc56e97a052504beacd7ade0dc5e76d3a4c16e8"}, + {file = "aiohttp-3.9.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:7e8a3b79b6d186a9c99761fd4a5e8dd575a48d96021f220ac5b5fa856e5dd029"}, + {file = "aiohttp-3.9.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:6777a390e41e78e7c45dab43a4a0196c55c3b8c30eebe017b152939372a83253"}, + {file = "aiohttp-3.9.0-cp312-cp312-musllinux_1_1_ppc64le.whl", hash = "sha256:7ae5f99a32c53731c93ac3075abd3e1e5cfbe72fc3eaac4c27c9dd64ba3b19fe"}, + {file = "aiohttp-3.9.0-cp312-cp312-musllinux_1_1_s390x.whl", hash = "sha256:f1e4f254e9c35d8965d377e065c4a8a55d396fe87c8e7e8429bcfdeeb229bfb3"}, + {file = "aiohttp-3.9.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:11ca808f9a6b63485059f5f6e164ef7ec826483c1212a44f268b3653c91237d8"}, + {file = "aiohttp-3.9.0-cp312-cp312-win32.whl", hash = "sha256:de3cc86f4ea8b4c34a6e43a7306c40c1275e52bfa9748d869c6b7d54aa6dad80"}, + {file = "aiohttp-3.9.0-cp312-cp312-win_amd64.whl", hash = "sha256:ca4fddf84ac7d8a7d0866664936f93318ff01ee33e32381a115b19fb5a4d1202"}, + {file = "aiohttp-3.9.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:f09960b5bb1017d16c0f9e9f7fc42160a5a49fa1e87a175fd4a2b1a1833ea0af"}, + {file = "aiohttp-3.9.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:8303531e2c17b1a494ffaeba48f2da655fe932c4e9a2626c8718403c83e5dd2b"}, + {file = "aiohttp-3.9.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:4790e44f46a4aa07b64504089def5744d3b6780468c4ec3a1a36eb7f2cae9814"}, + {file = "aiohttp-3.9.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a1d7edf74a36de0e5ca50787e83a77cf352f5504eb0ffa3f07000a911ba353fb"}, + {file = "aiohttp-3.9.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:94697c7293199c2a2551e3e3e18438b4cba293e79c6bc2319f5fd652fccb7456"}, + {file = "aiohttp-3.9.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:a1b66dbb8a7d5f50e9e2ea3804b01e766308331d0cac76eb30c563ac89c95985"}, + {file = "aiohttp-3.9.0-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9623cfd9e85b76b83ef88519d98326d4731f8d71869867e47a0b979ffec61c73"}, + {file = "aiohttp-3.9.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f32c86dc967ab8c719fd229ce71917caad13cc1e8356ee997bf02c5b368799bf"}, + {file = "aiohttp-3.9.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:f50b4663c3e0262c3a361faf440761fbef60ccdde5fe8545689a4b3a3c149fb4"}, + {file = "aiohttp-3.9.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:dcf71c55ec853826cd70eadb2b6ac62ec577416442ca1e0a97ad875a1b3a0305"}, + {file = "aiohttp-3.9.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:42fe4fd9f0dfcc7be4248c162d8056f1d51a04c60e53366b0098d1267c4c9da8"}, + {file = "aiohttp-3.9.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:76a86a9989ebf82ee61e06e2bab408aec4ea367dc6da35145c3352b60a112d11"}, + {file = "aiohttp-3.9.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:f9e09a1c83521d770d170b3801eea19b89f41ccaa61d53026ed111cb6f088887"}, + {file = "aiohttp-3.9.0-cp38-cp38-win32.whl", hash = "sha256:a00ce44c21612d185c5275c5cba4bab8d7c1590f248638b667ed8a782fa8cd6f"}, + {file = "aiohttp-3.9.0-cp38-cp38-win_amd64.whl", hash = "sha256:d5b9345ab92ebe6003ae11d8092ce822a0242146e6fa270889b9ba965457ca40"}, + {file = "aiohttp-3.9.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:98d21092bf2637c5fa724a428a69e8f5955f2182bff61f8036827cf6ce1157bf"}, + {file = "aiohttp-3.9.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:35a68cd63ca6aaef5707888f17a70c36efe62b099a4e853d33dc2e9872125be8"}, + {file = "aiohttp-3.9.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:3d7f6235c7475658acfc1769d968e07ab585c79f6ca438ddfecaa9a08006aee2"}, + {file = "aiohttp-3.9.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:db04d1de548f7a62d1dd7e7cdf7c22893ee168e22701895067a28a8ed51b3735"}, + {file = "aiohttp-3.9.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:536b01513d67d10baf6f71c72decdf492fb7433c5f2f133e9a9087379d4b6f31"}, + {file = "aiohttp-3.9.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:87c8b0a6487e8109427ccf638580865b54e2e3db4a6e0e11c02639231b41fc0f"}, + {file = "aiohttp-3.9.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7276fe0017664414fdc3618fca411630405f1aaf0cc3be69def650eb50441787"}, + {file = "aiohttp-3.9.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:23170247ef89ffa842a02bbfdc425028574d9e010611659abeb24d890bc53bb8"}, + {file = "aiohttp-3.9.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b1a2ea8252cacc7fd51df5a56d7a2bb1986ed39be9397b51a08015727dfb69bd"}, + {file = "aiohttp-3.9.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:2d71abc15ff7047412ef26bf812dfc8d0d1020d664617f4913df2df469f26b76"}, + {file = "aiohttp-3.9.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:2d820162c8c2bdbe97d328cd4f417c955ca370027dce593345e437b2e9ffdc4d"}, + {file = "aiohttp-3.9.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:2779f5e7c70f7b421915fd47db332c81de365678180a9f3ab404088f87ba5ff9"}, + {file = "aiohttp-3.9.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:366bc870d7ac61726f32a489fbe3d1d8876e87506870be66b01aeb84389e967e"}, + {file = "aiohttp-3.9.0-cp39-cp39-win32.whl", hash = "sha256:1df43596b826022b14998f0460926ce261544fedefe0d2f653e1b20f49e96454"}, + {file = "aiohttp-3.9.0-cp39-cp39-win_amd64.whl", hash = "sha256:9c196b30f1b1aa3363a69dd69079ae9bec96c2965c4707eaa6914ba099fb7d4f"}, + {file = "aiohttp-3.9.0.tar.gz", hash = "sha256:09f23292d29135025e19e8ff4f0a68df078fe4ee013bca0105b2e803989de92d"}, +] + +[package.dependencies] +aiosignal = ">=1.1.2" +async-timeout = {version = ">=4.0,<5.0", markers = "python_version < \"3.11\""} +attrs = ">=17.3.0" +frozenlist = ">=1.1.1" +multidict = ">=4.5,<7.0" +yarl = ">=1.0,<2.0" + +[package.extras] +speedups = ["Brotli", "aiodns", "brotlicffi"] + +[[package]] +name = "aiosignal" +version = "1.3.1" +description = "aiosignal: a list of registered asynchronous callbacks" +optional = false +python-versions = ">=3.7" +files = [ + {file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"}, + {file = "aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"}, +] + +[package.dependencies] +frozenlist = ">=1.1.0" + [[package]] name = "annotated-types" version = "0.6.0" @@ -35,6 +145,35 @@ doc = ["Sphinx", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd- test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"] trio = ["trio (<0.22)"] +[[package]] +name = "async-timeout" +version = "4.0.3" +description = "Timeout context manager for asyncio programs" +optional = false +python-versions = ">=3.7" +files = [ + {file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"}, + {file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"}, +] + +[[package]] +name = "attrs" +version = "23.1.0" +description = "Classes Without Boilerplate" +optional = false +python-versions = ">=3.7" +files = [ + {file = "attrs-23.1.0-py3-none-any.whl", hash = "sha256:1f28b4522cdc2fb4256ac1a020c78acf9cba2c6b461ccd2c126f3aa8e8335d04"}, + {file = "attrs-23.1.0.tar.gz", hash = "sha256:6279836d581513a26f1bf235f9acd333bc9115683f14f7e8fae46c98fc50e015"}, +] + +[package.extras] +cov = ["attrs[tests]", "coverage[toml] (>=5.3)"] +dev = ["attrs[docs,tests]", "pre-commit"] +docs = ["furo", "myst-parser", "sphinx", "sphinx-notfound-page", "sphinxcontrib-towncrier", "towncrier", "zope-interface"] +tests = ["attrs[tests-no-zope]", "zope-interface"] +tests-no-zope = ["cloudpickle", "hypothesis", "mypy (>=1.1.1)", "pympler", "pytest (>=4.3.0)", "pytest-mypy-plugins", "pytest-xdist[psutil]"] + [[package]] name = "backoff" version = "2.2.1" @@ -215,24 +354,94 @@ test = ["pytest (>=6)"] [[package]] name = "fastapi" -version = "0.103.2" +version = "0.104.1" description = "FastAPI framework, high performance, easy to learn, fast to code, ready for production" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "fastapi-0.103.2-py3-none-any.whl", hash = "sha256:3270de872f0fe9ec809d4bd3d4d890c6d5cc7b9611d721d6438f9dacc8c4ef2e"}, - {file = "fastapi-0.103.2.tar.gz", hash = "sha256:75a11f6bfb8fc4d2bec0bd710c2d5f2829659c0e8c0afd5560fdda6ce25ec653"}, + {file = "fastapi-0.104.1-py3-none-any.whl", hash = "sha256:752dc31160cdbd0436bb93bad51560b57e525cbb1d4bbf6f4904ceee75548241"}, + {file = "fastapi-0.104.1.tar.gz", hash = "sha256:e5e4540a7c5e1dcfbbcf5b903c234feddcdcd881f191977a1c5dfd917487e7ae"}, ] [package.dependencies] anyio = ">=3.7.1,<4.0.0" pydantic = ">=1.7.4,<1.8 || >1.8,<1.8.1 || >1.8.1,<2.0.0 || >2.0.0,<2.0.1 || >2.0.1,<2.1.0 || >2.1.0,<3.0.0" starlette = ">=0.27.0,<0.28.0" -typing-extensions = ">=4.5.0" +typing-extensions = ">=4.8.0" [package.extras] all = ["email-validator (>=2.0.0)", "httpx (>=0.23.0)", "itsdangerous (>=1.1.0)", "jinja2 (>=2.11.2)", "orjson (>=3.2.1)", "pydantic-extra-types (>=2.0.0)", "pydantic-settings (>=2.0.0)", "python-multipart (>=0.0.5)", "pyyaml (>=5.3.1)", "ujson (>=4.0.1,!=4.0.2,!=4.1.0,!=4.2.0,!=4.3.0,!=5.0.0,!=5.1.0)", "uvicorn[standard] (>=0.12.0)"] +[[package]] +name = "frozenlist" +version = "1.4.0" +description = "A list-like structure which implements collections.abc.MutableSequence" +optional = false +python-versions = ">=3.8" +files = [ + {file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:764226ceef3125e53ea2cb275000e309c0aa5464d43bd72abd661e27fffc26ab"}, + {file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d6484756b12f40003c6128bfcc3fa9f0d49a687e171186c2d85ec82e3758c559"}, + {file = "frozenlist-1.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9ac08e601308e41eb533f232dbf6b7e4cea762f9f84f6357136eed926c15d12c"}, + {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d081f13b095d74b67d550de04df1c756831f3b83dc9881c38985834387487f1b"}, + {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:71932b597f9895f011f47f17d6428252fc728ba2ae6024e13c3398a087c2cdea"}, + {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:981b9ab5a0a3178ff413bca62526bb784249421c24ad7381e39d67981be2c326"}, + {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e41f3de4df3e80de75845d3e743b3f1c4c8613c3997a912dbf0229fc61a8b963"}, + {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6918d49b1f90821e93069682c06ffde41829c346c66b721e65a5c62b4bab0300"}, + {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:0e5c8764c7829343d919cc2dfc587a8db01c4f70a4ebbc49abde5d4b158b007b"}, + {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8d0edd6b1c7fb94922bf569c9b092ee187a83f03fb1a63076e7774b60f9481a8"}, + {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:e29cda763f752553fa14c68fb2195150bfab22b352572cb36c43c47bedba70eb"}, + {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:0c7c1b47859ee2cac3846fde1c1dc0f15da6cec5a0e5c72d101e0f83dcb67ff9"}, + {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:901289d524fdd571be1c7be054f48b1f88ce8dddcbdf1ec698b27d4b8b9e5d62"}, + {file = "frozenlist-1.4.0-cp310-cp310-win32.whl", hash = "sha256:1a0848b52815006ea6596c395f87449f693dc419061cc21e970f139d466dc0a0"}, + {file = "frozenlist-1.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:b206646d176a007466358aa21d85cd8600a415c67c9bd15403336c331a10d956"}, + {file = "frozenlist-1.4.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:de343e75f40e972bae1ef6090267f8260c1446a1695e77096db6cfa25e759a95"}, + {file = "frozenlist-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ad2a9eb6d9839ae241701d0918f54c51365a51407fd80f6b8289e2dfca977cc3"}, + {file = "frozenlist-1.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bd7bd3b3830247580de99c99ea2a01416dfc3c34471ca1298bccabf86d0ff4dc"}, + {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bdf1847068c362f16b353163391210269e4f0569a3c166bc6a9f74ccbfc7e839"}, + {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:38461d02d66de17455072c9ba981d35f1d2a73024bee7790ac2f9e361ef1cd0c"}, + {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5a32087d720c608f42caed0ef36d2b3ea61a9d09ee59a5142d6070da9041b8f"}, + {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dd65632acaf0d47608190a71bfe46b209719bf2beb59507db08ccdbe712f969b"}, + {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261b9f5d17cac914531331ff1b1d452125bf5daa05faf73b71d935485b0c510b"}, + {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b89ac9768b82205936771f8d2eb3ce88503b1556324c9f903e7156669f521472"}, + {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:008eb8b31b3ea6896da16c38c1b136cb9fec9e249e77f6211d479db79a4eaf01"}, + {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:e74b0506fa5aa5598ac6a975a12aa8928cbb58e1f5ac8360792ef15de1aa848f"}, + {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:490132667476f6781b4c9458298b0c1cddf237488abd228b0b3650e5ecba7467"}, + {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:76d4711f6f6d08551a7e9ef28c722f4a50dd0fc204c56b4bcd95c6cc05ce6fbb"}, + {file = "frozenlist-1.4.0-cp311-cp311-win32.whl", hash = "sha256:a02eb8ab2b8f200179b5f62b59757685ae9987996ae549ccf30f983f40602431"}, + {file = "frozenlist-1.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:515e1abc578dd3b275d6a5114030b1330ba044ffba03f94091842852f806f1c1"}, + {file = "frozenlist-1.4.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:f0ed05f5079c708fe74bf9027e95125334b6978bf07fd5ab923e9e55e5fbb9d3"}, + {file = "frozenlist-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ca265542ca427bf97aed183c1676e2a9c66942e822b14dc6e5f42e038f92a503"}, + {file = "frozenlist-1.4.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:491e014f5c43656da08958808588cc6c016847b4360e327a62cb308c791bd2d9"}, + {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:17ae5cd0f333f94f2e03aaf140bb762c64783935cc764ff9c82dff626089bebf"}, + {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1e78fb68cf9c1a6aa4a9a12e960a5c9dfbdb89b3695197aa7064705662515de2"}, + {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5655a942f5f5d2c9ed93d72148226d75369b4f6952680211972a33e59b1dfdc"}, + {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c11b0746f5d946fecf750428a95f3e9ebe792c1ee3b1e96eeba145dc631a9672"}, + {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e66d2a64d44d50d2543405fb183a21f76b3b5fd16f130f5c99187c3fb4e64919"}, + {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:88f7bc0fcca81f985f78dd0fa68d2c75abf8272b1f5c323ea4a01a4d7a614efc"}, + {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:5833593c25ac59ede40ed4de6d67eb42928cca97f26feea219f21d0ed0959b79"}, + {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:fec520865f42e5c7f050c2a79038897b1c7d1595e907a9e08e3353293ffc948e"}, + {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:b826d97e4276750beca7c8f0f1a4938892697a6bcd8ec8217b3312dad6982781"}, + {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ceb6ec0a10c65540421e20ebd29083c50e6d1143278746a4ef6bcf6153171eb8"}, + {file = "frozenlist-1.4.0-cp38-cp38-win32.whl", hash = "sha256:2b8bcf994563466db019fab287ff390fffbfdb4f905fc77bc1c1d604b1c689cc"}, + {file = "frozenlist-1.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:a6c8097e01886188e5be3e6b14e94ab365f384736aa1fca6a0b9e35bd4a30bc7"}, + {file = "frozenlist-1.4.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:6c38721585f285203e4b4132a352eb3daa19121a035f3182e08e437cface44bf"}, + {file = "frozenlist-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a0c6da9aee33ff0b1a451e867da0c1f47408112b3391dd43133838339e410963"}, + {file = "frozenlist-1.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93ea75c050c5bb3d98016b4ba2497851eadf0ac154d88a67d7a6816206f6fa7f"}, + {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f61e2dc5ad442c52b4887f1fdc112f97caeff4d9e6ebe78879364ac59f1663e1"}, + {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aa384489fefeb62321b238e64c07ef48398fe80f9e1e6afeff22e140e0850eef"}, + {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:10ff5faaa22786315ef57097a279b833ecab1a0bfb07d604c9cbb1c4cdc2ed87"}, + {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:007df07a6e3eb3e33e9a1fe6a9db7af152bbd8a185f9aaa6ece10a3529e3e1c6"}, + {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f4f399d28478d1f604c2ff9119907af9726aed73680e5ed1ca634d377abb087"}, + {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c5374b80521d3d3f2ec5572e05adc94601985cc526fb276d0c8574a6d749f1b3"}, + {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ce31ae3e19f3c902de379cf1323d90c649425b86de7bbdf82871b8a2a0615f3d"}, + {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7211ef110a9194b6042449431e08c4d80c0481e5891e58d429df5899690511c2"}, + {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:556de4430ce324c836789fa4560ca62d1591d2538b8ceb0b4f68fb7b2384a27a"}, + {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:7645a8e814a3ee34a89c4a372011dcd817964ce8cb273c8ed6119d706e9613e3"}, + {file = "frozenlist-1.4.0-cp39-cp39-win32.whl", hash = "sha256:19488c57c12d4e8095a922f328df3f179c820c212940a498623ed39160bc3c2f"}, + {file = "frozenlist-1.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:6221d84d463fb110bdd7619b69cb43878a11d51cbb9394ae3105d082d5199167"}, + {file = "frozenlist-1.4.0.tar.gz", hash = "sha256:09163bdf0b2907454042edb19f887c6d33806adc71fbd54afc14908bfdc22251"}, +] + [[package]] name = "h11" version = "0.14.0" @@ -1080,13 +1289,13 @@ files = [ [[package]] name = "uvicorn" -version = "0.23.2" +version = "0.24.0.post1" description = "The lightning-fast ASGI server." optional = false python-versions = ">=3.8" files = [ - {file = "uvicorn-0.23.2-py3-none-any.whl", hash = "sha256:1f9be6558f01239d4fdf22ef8126c39cb1ad0addf76c40e760549d2c2f43ab53"}, - {file = "uvicorn-0.23.2.tar.gz", hash = "sha256:4d3cc12d7727ba72b64d12d3cc7743124074c0a69f7b201512fc50c3e3f1569a"}, + {file = "uvicorn-0.24.0.post1-py3-none-any.whl", hash = "sha256:7c84fea70c619d4a710153482c0d230929af7bcf76c7bfa6de151f0a3a80121e"}, + {file = "uvicorn-0.24.0.post1.tar.gz", hash = "sha256:09c8e5a79dc466bdf28dead50093957db184de356fcdc48697bad3bde4c2588e"}, ] [package.dependencies] @@ -1127,80 +1336,83 @@ files = [ [[package]] name = "websockets" -version = "10.4" +version = "12.0" description = "An implementation of the WebSocket Protocol (RFC 6455 & 7692)" optional = false -python-versions = ">=3.7" +python-versions = ">=3.8" files = [ - {file = "websockets-10.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d58804e996d7d2307173d56c297cf7bc132c52df27a3efaac5e8d43e36c21c48"}, - {file = "websockets-10.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:bc0b82d728fe21a0d03e65f81980abbbcb13b5387f733a1a870672c5be26edab"}, - {file = "websockets-10.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:ba089c499e1f4155d2a3c2a05d2878a3428cf321c848f2b5a45ce55f0d7d310c"}, - {file = "websockets-10.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:33d69ca7612f0ddff3316b0c7b33ca180d464ecac2d115805c044bf0a3b0d032"}, - {file = "websockets-10.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62e627f6b6d4aed919a2052efc408da7a545c606268d5ab5bfab4432734b82b4"}, - {file = "websockets-10.4-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:38ea7b82bfcae927eeffc55d2ffa31665dc7fec7b8dc654506b8e5a518eb4d50"}, - {file = "websockets-10.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:e0cb5cc6ece6ffa75baccfd5c02cffe776f3f5c8bf486811f9d3ea3453676ce8"}, - {file = "websockets-10.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:ae5e95cfb53ab1da62185e23b3130e11d64431179debac6dc3c6acf08760e9b1"}, - {file = "websockets-10.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7c584f366f46ba667cfa66020344886cf47088e79c9b9d39c84ce9ea98aaa331"}, - {file = "websockets-10.4-cp310-cp310-win32.whl", hash = "sha256:b029fb2032ae4724d8ae8d4f6b363f2cc39e4c7b12454df8df7f0f563ed3e61a"}, - {file = "websockets-10.4-cp310-cp310-win_amd64.whl", hash = "sha256:8dc96f64ae43dde92530775e9cb169979f414dcf5cff670455d81a6823b42089"}, - {file = "websockets-10.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:47a2964021f2110116cc1125b3e6d87ab5ad16dea161949e7244ec583b905bb4"}, - {file = "websockets-10.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:e789376b52c295c4946403bd0efecf27ab98f05319df4583d3c48e43c7342c2f"}, - {file = "websockets-10.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7d3f0b61c45c3fa9a349cf484962c559a8a1d80dae6977276df8fd1fa5e3cb8c"}, - {file = "websockets-10.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f55b5905705725af31ccef50e55391621532cd64fbf0bc6f4bac935f0fccec46"}, - {file = "websockets-10.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:00c870522cdb69cd625b93f002961ffb0c095394f06ba8c48f17eef7c1541f96"}, - {file = "websockets-10.4-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8f38706e0b15d3c20ef6259fd4bc1700cd133b06c3c1bb108ffe3f8947be15fa"}, - {file = "websockets-10.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:f2c38d588887a609191d30e902df2a32711f708abfd85d318ca9b367258cfd0c"}, - {file = "websockets-10.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:fe10ddc59b304cb19a1bdf5bd0a7719cbbc9fbdd57ac80ed436b709fcf889106"}, - {file = "websockets-10.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:90fcf8929836d4a0e964d799a58823547df5a5e9afa83081761630553be731f9"}, - {file = "websockets-10.4-cp311-cp311-win32.whl", hash = "sha256:b9968694c5f467bf67ef97ae7ad4d56d14be2751000c1207d31bf3bb8860bae8"}, - {file = "websockets-10.4-cp311-cp311-win_amd64.whl", hash = "sha256:a7a240d7a74bf8d5cb3bfe6be7f21697a28ec4b1a437607bae08ac7acf5b4882"}, - {file = "websockets-10.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:74de2b894b47f1d21cbd0b37a5e2b2392ad95d17ae983e64727e18eb281fe7cb"}, - {file = "websockets-10.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e3a686ecb4aa0d64ae60c9c9f1a7d5d46cab9bfb5d91a2d303d00e2cd4c4c5cc"}, - {file = "websockets-10.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:b0d15c968ea7a65211e084f523151dbf8ae44634de03c801b8bd070b74e85033"}, - {file = "websockets-10.4-cp37-cp37m-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:00213676a2e46b6ebf6045bc11d0f529d9120baa6f58d122b4021ad92adabd41"}, - {file = "websockets-10.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:e23173580d740bf8822fd0379e4bf30aa1d5a92a4f252d34e893070c081050df"}, - {file = "websockets-10.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:dd500e0a5e11969cdd3320935ca2ff1e936f2358f9c2e61f100a1660933320ea"}, - {file = "websockets-10.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:4239b6027e3d66a89446908ff3027d2737afc1a375f8fd3eea630a4842ec9a0c"}, - {file = "websockets-10.4-cp37-cp37m-win32.whl", hash = "sha256:8a5cc00546e0a701da4639aa0bbcb0ae2bb678c87f46da01ac2d789e1f2d2038"}, - {file = "websockets-10.4-cp37-cp37m-win_amd64.whl", hash = "sha256:a9f9a735deaf9a0cadc2d8c50d1a5bcdbae8b6e539c6e08237bc4082d7c13f28"}, - {file = "websockets-10.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5c1289596042fad2cdceb05e1ebf7aadf9995c928e0da2b7a4e99494953b1b94"}, - {file = "websockets-10.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:0cff816f51fb33c26d6e2b16b5c7d48eaa31dae5488ace6aae468b361f422b63"}, - {file = "websockets-10.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:dd9becd5fe29773d140d68d607d66a38f60e31b86df75332703757ee645b6faf"}, - {file = "websockets-10.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45ec8e75b7dbc9539cbfafa570742fe4f676eb8b0d3694b67dabe2f2ceed8aa6"}, - {file = "websockets-10.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:4f72e5cd0f18f262f5da20efa9e241699e0cf3a766317a17392550c9ad7b37d8"}, - {file = "websockets-10.4-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:185929b4808b36a79c65b7865783b87b6841e852ef5407a2fb0c03381092fa3b"}, - {file = "websockets-10.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:7d27a7e34c313b3a7f91adcd05134315002aaf8540d7b4f90336beafaea6217c"}, - {file = "websockets-10.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:884be66c76a444c59f801ac13f40c76f176f1bfa815ef5b8ed44321e74f1600b"}, - {file = "websockets-10.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:931c039af54fc195fe6ad536fde4b0de04da9d5916e78e55405436348cfb0e56"}, - {file = "websockets-10.4-cp38-cp38-win32.whl", hash = "sha256:db3c336f9eda2532ec0fd8ea49fef7a8df8f6c804cdf4f39e5c5c0d4a4ad9a7a"}, - {file = "websockets-10.4-cp38-cp38-win_amd64.whl", hash = "sha256:48c08473563323f9c9debac781ecf66f94ad5a3680a38fe84dee5388cf5acaf6"}, - {file = "websockets-10.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:40e826de3085721dabc7cf9bfd41682dadc02286d8cf149b3ad05bff89311e4f"}, - {file = "websockets-10.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:56029457f219ade1f2fc12a6504ea61e14ee227a815531f9738e41203a429112"}, - {file = "websockets-10.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f5fc088b7a32f244c519a048c170f14cf2251b849ef0e20cbbb0fdf0fdaf556f"}, - {file = "websockets-10.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:2fc8709c00704194213d45e455adc106ff9e87658297f72d544220e32029cd3d"}, - {file = "websockets-10.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:0154f7691e4fe6c2b2bc275b5701e8b158dae92a1ab229e2b940efe11905dff4"}, - {file = "websockets-10.4-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:4c6d2264f485f0b53adf22697ac11e261ce84805c232ed5dbe6b1bcb84b00ff0"}, - {file = "websockets-10.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:9bc42e8402dc5e9905fb8b9649f57efcb2056693b7e88faa8fb029256ba9c68c"}, - {file = "websockets-10.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:edc344de4dac1d89300a053ac973299e82d3db56330f3494905643bb68801269"}, - {file = "websockets-10.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:84bc2a7d075f32f6ed98652db3a680a17a4edb21ca7f80fe42e38753a58ee02b"}, - {file = "websockets-10.4-cp39-cp39-win32.whl", hash = "sha256:c94ae4faf2d09f7c81847c63843f84fe47bf6253c9d60b20f25edfd30fb12588"}, - {file = "websockets-10.4-cp39-cp39-win_amd64.whl", hash = "sha256:bbccd847aa0c3a69b5f691a84d2341a4f8a629c6922558f2a70611305f902d74"}, - {file = "websockets-10.4-pp37-pypy37_pp73-macosx_10_9_x86_64.whl", hash = "sha256:82ff5e1cae4e855147fd57a2863376ed7454134c2bf49ec604dfe71e446e2193"}, - {file = "websockets-10.4-pp37-pypy37_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d210abe51b5da0ffdbf7b43eed0cfdff8a55a1ab17abbec4301c9ff077dd0342"}, - {file = "websockets-10.4-pp37-pypy37_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:942de28af58f352a6f588bc72490ae0f4ccd6dfc2bd3de5945b882a078e4e179"}, - {file = "websockets-10.4-pp37-pypy37_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c9b27d6c1c6cd53dc93614967e9ce00ae7f864a2d9f99fe5ed86706e1ecbf485"}, - {file = "websockets-10.4-pp37-pypy37_pp73-win_amd64.whl", hash = "sha256:3d3cac3e32b2c8414f4f87c1b2ab686fa6284a980ba283617404377cd448f631"}, - {file = "websockets-10.4-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:da39dd03d130162deb63da51f6e66ed73032ae62e74aaccc4236e30edccddbb0"}, - {file = "websockets-10.4-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:389f8dbb5c489e305fb113ca1b6bdcdaa130923f77485db5b189de343a179393"}, - {file = "websockets-10.4-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:09a1814bb15eff7069e51fed0826df0bc0702652b5cb8f87697d469d79c23576"}, - {file = "websockets-10.4-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ff64a1d38d156d429404aaa84b27305e957fd10c30e5880d1765c9480bea490f"}, - {file = "websockets-10.4-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:b343f521b047493dc4022dd338fc6db9d9282658862756b4f6fd0e996c1380e1"}, - {file = "websockets-10.4-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:932af322458da7e4e35df32f050389e13d3d96b09d274b22a7aa1808f292fee4"}, - {file = "websockets-10.4-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d6a4162139374a49eb18ef5b2f4da1dd95c994588f5033d64e0bbfda4b6b6fcf"}, - {file = "websockets-10.4-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c57e4c1349fbe0e446c9fa7b19ed2f8a4417233b6984277cce392819123142d3"}, - {file = "websockets-10.4-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b627c266f295de9dea86bd1112ed3d5fafb69a348af30a2422e16590a8ecba13"}, - {file = "websockets-10.4-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:05a7233089f8bd355e8cbe127c2e8ca0b4ea55467861906b80d2ebc7db4d6b72"}, - {file = "websockets-10.4.tar.gz", hash = "sha256:eef610b23933c54d5d921c92578ae5f89813438fded840c2e9809d378dc765d3"}, + {file = "websockets-12.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:d554236b2a2006e0ce16315c16eaa0d628dab009c33b63ea03f41c6107958374"}, + {file = "websockets-12.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:2d225bb6886591b1746b17c0573e29804619c8f755b5598d875bb4235ea639be"}, + {file = "websockets-12.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:eb809e816916a3b210bed3c82fb88eaf16e8afcf9c115ebb2bacede1797d2547"}, + {file = "websockets-12.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c588f6abc13f78a67044c6b1273a99e1cf31038ad51815b3b016ce699f0d75c2"}, + {file = "websockets-12.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5aa9348186d79a5f232115ed3fa9020eab66d6c3437d72f9d2c8ac0c6858c558"}, + {file = "websockets-12.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6350b14a40c95ddd53e775dbdbbbc59b124a5c8ecd6fbb09c2e52029f7a9f480"}, + {file = "websockets-12.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:70ec754cc2a769bcd218ed8d7209055667b30860ffecb8633a834dde27d6307c"}, + {file = "websockets-12.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:6e96f5ed1b83a8ddb07909b45bd94833b0710f738115751cdaa9da1fb0cb66e8"}, + {file = "websockets-12.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:4d87be612cbef86f994178d5186add3d94e9f31cc3cb499a0482b866ec477603"}, + {file = "websockets-12.0-cp310-cp310-win32.whl", hash = "sha256:befe90632d66caaf72e8b2ed4d7f02b348913813c8b0a32fae1cc5fe3730902f"}, + {file = "websockets-12.0-cp310-cp310-win_amd64.whl", hash = "sha256:363f57ca8bc8576195d0540c648aa58ac18cf85b76ad5202b9f976918f4219cf"}, + {file = "websockets-12.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:5d873c7de42dea355d73f170be0f23788cf3fa9f7bed718fd2830eefedce01b4"}, + {file = "websockets-12.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:3f61726cae9f65b872502ff3c1496abc93ffbe31b278455c418492016e2afc8f"}, + {file = "websockets-12.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ed2fcf7a07334c77fc8a230755c2209223a7cc44fc27597729b8ef5425aa61a3"}, + {file = "websockets-12.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8e332c210b14b57904869ca9f9bf4ca32f5427a03eeb625da9b616c85a3a506c"}, + {file = "websockets-12.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:5693ef74233122f8ebab026817b1b37fe25c411ecfca084b29bc7d6efc548f45"}, + {file = "websockets-12.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6e9e7db18b4539a29cc5ad8c8b252738a30e2b13f033c2d6e9d0549b45841c04"}, + {file = "websockets-12.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:6e2df67b8014767d0f785baa98393725739287684b9f8d8a1001eb2839031447"}, + {file = "websockets-12.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:bea88d71630c5900690fcb03161ab18f8f244805c59e2e0dc4ffadae0a7ee0ca"}, + {file = "websockets-12.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:dff6cdf35e31d1315790149fee351f9e52978130cef6c87c4b6c9b3baf78bc53"}, + {file = "websockets-12.0-cp311-cp311-win32.whl", hash = "sha256:3e3aa8c468af01d70332a382350ee95f6986db479ce7af14d5e81ec52aa2b402"}, + {file = "websockets-12.0-cp311-cp311-win_amd64.whl", hash = "sha256:25eb766c8ad27da0f79420b2af4b85d29914ba0edf69f547cc4f06ca6f1d403b"}, + {file = "websockets-12.0-cp312-cp312-macosx_10_9_universal2.whl", hash = "sha256:0e6e2711d5a8e6e482cacb927a49a3d432345dfe7dea8ace7b5790df5932e4df"}, + {file = "websockets-12.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:dbcf72a37f0b3316e993e13ecf32f10c0e1259c28ffd0a85cee26e8549595fbc"}, + {file = "websockets-12.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:12743ab88ab2af1d17dd4acb4645677cb7063ef4db93abffbf164218a5d54c6b"}, + {file = "websockets-12.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7b645f491f3c48d3f8a00d1fce07445fab7347fec54a3e65f0725d730d5b99cb"}, + {file = "websockets-12.0-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:9893d1aa45a7f8b3bc4510f6ccf8db8c3b62120917af15e3de247f0780294b92"}, + {file = "websockets-12.0-cp312-cp312-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1f38a7b376117ef7aff996e737583172bdf535932c9ca021746573bce40165ed"}, + {file = "websockets-12.0-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:f764ba54e33daf20e167915edc443b6f88956f37fb606449b4a5b10ba42235a5"}, + {file = "websockets-12.0-cp312-cp312-musllinux_1_1_i686.whl", hash = "sha256:1e4b3f8ea6a9cfa8be8484c9221ec0257508e3a1ec43c36acdefb2a9c3b00aa2"}, + {file = "websockets-12.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:9fdf06fd06c32205a07e47328ab49c40fc1407cdec801d698a7c41167ea45113"}, + {file = "websockets-12.0-cp312-cp312-win32.whl", hash = "sha256:baa386875b70cbd81798fa9f71be689c1bf484f65fd6fb08d051a0ee4e79924d"}, + {file = "websockets-12.0-cp312-cp312-win_amd64.whl", hash = "sha256:ae0a5da8f35a5be197f328d4727dbcfafa53d1824fac3d96cdd3a642fe09394f"}, + {file = "websockets-12.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5f6ffe2c6598f7f7207eef9a1228b6f5c818f9f4d53ee920aacd35cec8110438"}, + {file = "websockets-12.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:9edf3fc590cc2ec20dc9d7a45108b5bbaf21c0d89f9fd3fd1685e223771dc0b2"}, + {file = "websockets-12.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:8572132c7be52632201a35f5e08348137f658e5ffd21f51f94572ca6c05ea81d"}, + {file = "websockets-12.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:604428d1b87edbf02b233e2c207d7d528460fa978f9e391bd8aaf9c8311de137"}, + {file = "websockets-12.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:1a9d160fd080c6285e202327aba140fc9a0d910b09e423afff4ae5cbbf1c7205"}, + {file = "websockets-12.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:87b4aafed34653e465eb77b7c93ef058516cb5acf3eb21e42f33928616172def"}, + {file = "websockets-12.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:b2ee7288b85959797970114deae81ab41b731f19ebcd3bd499ae9ca0e3f1d2c8"}, + {file = "websockets-12.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:7fa3d25e81bfe6a89718e9791128398a50dec6d57faf23770787ff441d851967"}, + {file = "websockets-12.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:a571f035a47212288e3b3519944f6bf4ac7bc7553243e41eac50dd48552b6df7"}, + {file = "websockets-12.0-cp38-cp38-win32.whl", hash = "sha256:3c6cc1360c10c17463aadd29dd3af332d4a1adaa8796f6b0e9f9df1fdb0bad62"}, + {file = "websockets-12.0-cp38-cp38-win_amd64.whl", hash = "sha256:1bf386089178ea69d720f8db6199a0504a406209a0fc23e603b27b300fdd6892"}, + {file = "websockets-12.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:ab3d732ad50a4fbd04a4490ef08acd0517b6ae6b77eb967251f4c263011a990d"}, + {file = "websockets-12.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a1d9697f3337a89691e3bd8dc56dea45a6f6d975f92e7d5f773bc715c15dde28"}, + {file = "websockets-12.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:1df2fbd2c8a98d38a66f5238484405b8d1d16f929bb7a33ed73e4801222a6f53"}, + {file = "websockets-12.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:23509452b3bc38e3a057382c2e941d5ac2e01e251acce7adc74011d7d8de434c"}, + {file = "websockets-12.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:2e5fc14ec6ea568200ea4ef46545073da81900a2b67b3e666f04adf53ad452ec"}, + {file = "websockets-12.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:46e71dbbd12850224243f5d2aeec90f0aaa0f2dde5aeeb8fc8df21e04d99eff9"}, + {file = "websockets-12.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:b81f90dcc6c85a9b7f29873beb56c94c85d6f0dac2ea8b60d995bd18bf3e2aae"}, + {file = "websockets-12.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:a02413bc474feda2849c59ed2dfb2cddb4cd3d2f03a2fedec51d6e959d9b608b"}, + {file = "websockets-12.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:bbe6013f9f791944ed31ca08b077e26249309639313fff132bfbf3ba105673b9"}, + {file = "websockets-12.0-cp39-cp39-win32.whl", hash = "sha256:cbe83a6bbdf207ff0541de01e11904827540aa069293696dd528a6640bd6a5f6"}, + {file = "websockets-12.0-cp39-cp39-win_amd64.whl", hash = "sha256:fc4e7fa5414512b481a2483775a8e8be7803a35b30ca805afa4998a84f9fd9e8"}, + {file = "websockets-12.0-pp310-pypy310_pp73-macosx_10_9_x86_64.whl", hash = "sha256:248d8e2446e13c1d4326e0a6a4e9629cb13a11195051a73acf414812700badbd"}, + {file = "websockets-12.0-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f44069528d45a933997a6fef143030d8ca8042f0dfaad753e2906398290e2870"}, + {file = "websockets-12.0-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c4e37d36f0d19f0a4413d3e18c0d03d0c268ada2061868c1e6f5ab1a6d575077"}, + {file = "websockets-12.0-pp310-pypy310_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d829f975fc2e527a3ef2f9c8f25e553eb7bc779c6665e8e1d52aa22800bb38b"}, + {file = "websockets-12.0-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:2c71bd45a777433dd9113847af751aae36e448bc6b8c361a566cb043eda6ec30"}, + {file = "websockets-12.0-pp38-pypy38_pp73-macosx_10_9_x86_64.whl", hash = "sha256:0bee75f400895aef54157b36ed6d3b308fcab62e5260703add87f44cee9c82a6"}, + {file = "websockets-12.0-pp38-pypy38_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:423fc1ed29f7512fceb727e2d2aecb952c46aa34895e9ed96071821309951123"}, + {file = "websockets-12.0-pp38-pypy38_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:27a5e9964ef509016759f2ef3f2c1e13f403725a5e6a1775555994966a66e931"}, + {file = "websockets-12.0-pp38-pypy38_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c3181df4583c4d3994d31fb235dc681d2aaad744fbdbf94c4802485ececdecf2"}, + {file = "websockets-12.0-pp38-pypy38_pp73-win_amd64.whl", hash = "sha256:b067cb952ce8bf40115f6c19f478dc71c5e719b7fbaa511359795dfd9d1a6468"}, + {file = "websockets-12.0-pp39-pypy39_pp73-macosx_10_9_x86_64.whl", hash = "sha256:00700340c6c7ab788f176d118775202aadea7602c5cc6be6ae127761c16d6b0b"}, + {file = "websockets-12.0-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e469d01137942849cff40517c97a30a93ae79917752b34029f0ec72df6b46399"}, + {file = "websockets-12.0-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:ffefa1374cd508d633646d51a8e9277763a9b78ae71324183693959cf94635a7"}, + {file = "websockets-12.0-pp39-pypy39_pp73-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba0cab91b3956dfa9f512147860783a1829a8d905ee218a9837c18f683239611"}, + {file = "websockets-12.0-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:2cb388a5bfb56df4d9a406783b7f9dbefb888c09b71629351cc6b036e9259370"}, + {file = "websockets-12.0-py3-none-any.whl", hash = "sha256:dc284bbc8d7c78a6c69e0c7325ab46ee5e40bb4d50e494d8131a07ef47500e9e"}, + {file = "websockets-12.0.tar.gz", hash = "sha256:81df9cbcbb6c260de1e007e58c011bfebe2dafc8435107b0537f393dd38c8b1b"}, ] [[package]] @@ -1403,4 +1615,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = "^3.8" -content-hash = "f3d361cb68950728a4fa1f5f7d80aebceae7b2c3d290d53ab2238e631ea98776" +content-hash = "50966546b273399cfab964c31899cc3776338bb7ce24d0e62ad84990182dd3bd" diff --git a/openbb_platform/core/pyproject.toml b/openbb_platform/core/pyproject.toml index 0b3052775e6..e6b4d3874d1 100644 --- a/openbb_platform/core/pyproject.toml +++ b/openbb_platform/core/pyproject.toml @@ -8,12 +8,11 @@ packages = [{ include = "openbb_core" }] [tool.poetry.dependencies] python = "^3.8" -uvicorn = "^0.23.2" -importlib_metadata = "^6.8.0" -websockets = "^10.4" +uvicorn = "^0.24" +websockets = "^12.0" pandas = ">=1.5.3" html5lib = "^1.1" -fastapi = "^0.103.1" +fastapi = "^0.104.1" python-jose = "^3.3.0" uuid7 = "^0.1.0" posthog = "^3.0.1" @@ -22,10 +21,12 @@ pydantic = "^2.5.1" requests = "^2.31.0" importlib-metadata = "^6.8.0" python-dotenv = "^1.0.0" +aiohttp = "^3.9.0" [tool.poetry.group.dev.dependencies] pytest-recorder = "^0.2.4" + [build-system] requires = ["poetry-core"] build-backend = "poetry.core.masonry.api" diff --git a/openbb_platform/core/tests/app/logs/test_handlers_manager.py b/openbb_platform/core/tests/app/logs/test_handlers_manager.py index b9f3cd093a9..12cb4565d9d 100644 --- a/openbb_platform/core/tests/app/logs/test_handlers_manager.py +++ b/openbb_platform/core/tests/app/logs/test_handlers_manager.py @@ -11,11 +11,13 @@ from openbb_core.app.logs.handlers_manager import ( class MockPosthogHandler(logging.NullHandler): def __init__(self, settings): self.settings = settings + self.level = logging.DEBUG class MockPathTrackingFileHandler(logging.NullHandler): def __init__(self, settings): self.settings = settings + self.level = logging.DEBUG class MockFormatterWithExceptions(logging.Formatter): diff --git a/openbb_platform/core/tests/app/test_command_runner.py b/openbb_platform/core/tests/app/test_command_runner.py index 2fb8637a7e3..ba7819540c1 100644 --- a/openbb_platform/core/tests/app/test_command_runner.py +++ b/openbb_platform/core/tests/app/test_command_runner.py @@ -290,7 +290,7 @@ def test_command_runner_run(_): @patch("openbb_core.app.command_runner.CommandMap.get_command") @patch("openbb_core.app.command_runner.StaticCommandRunner._execute_func") -def test_static_command_runner_run( +async def test_static_command_runner_run( mock_execute_func, mock_get_command, execution_context ): """Test static command runner run.""" @@ -308,7 +308,7 @@ def test_static_command_runner_run( mock_get_command.return_value = other_mock_func mock_execute_func.return_value = MockOBBject(results=[1, 2, 3, 4]) - result = StaticCommandRunner.run(execution_context, 1, 2, c=3, d=4) + result = await StaticCommandRunner.run(execution_context, 1, 2, c=3, d=4) assert result.results == [1, 2, 3, 4] assert hasattr(result, "extra") @@ -319,7 +319,7 @@ def test_static_command_runner_run( @patch("openbb_core.app.command_runner.ParametersBuilder.build") @patch("openbb_core.app.command_runner.StaticCommandRunner._command") @patch("openbb_core.app.command_runner.StaticCommandRunner._chart") -def test_static_command_runner_execute_func( +async def test_static_command_runner_execute_func( mock_chart, mock_command, mock_parameters_builder_build, @@ -348,7 +348,7 @@ def test_static_command_runner_execute_func( mock_command.return_value = MockOBBject(results=[1, 2, 3, 4]) mock_chart.return_value = None - result = StaticCommandRunner._execute_func( + result = await StaticCommandRunner._execute_func( "mock/route", (1, 2, 3, 4), execution_context, mock_func, {} ) @@ -385,7 +385,7 @@ def test_static_command_runner_chart(mock_charting_service_chart, execution_cont assert mock_obbject.chart == {"mock": "chart"} -def test_static_command_runner_command(): +async def test_static_command_runner_command(): """Test command.""" class MockOBBject: @@ -406,7 +406,7 @@ def test_static_command_runner_command(): mock_provider_choices = MockProviderChoices(provider="mock_provider") - result = StaticCommandRunner._command( + result = await StaticCommandRunner._command( func=other_mock_func, kwargs={"provider_choices": mock_provider_choices}, ) diff --git a/openbb_platform/core/tests/app/test_platform_router.py b/openbb_platform/core/tests/app/test_platform_router.py index dfde4b64da7..7f9c1d86805 100644 --- a/openbb_platform/core/tests/app/test_platform_router.py +++ b/openbb_platform/core/tests/app/test_platform_router.py @@ -93,7 +93,7 @@ def test_check_reserved_param(command_validator): def test_check_parameters(command_validator): """Test check_parameters.""" - def func(): + async def func(): pass assert command_validator.check_parameters(func) is None @@ -105,7 +105,7 @@ def test_check_return_error(command_validator): """Test check_return fail.""" with pytest.raises(TypeError): - def func(): + async def func(): pass command_validator.check_return(func) @@ -114,7 +114,7 @@ def test_check_return_error(command_validator): def test_check_return(command_validator): """Test check_return.""" - def valid_function() -> OBBject[Optional[List[int]]]: + async def valid_function() -> OBBject[Optional[List[int]]]: return OBBject(results=[1, 2, 3]) assert command_validator.check_return(valid_function) is None @@ -123,7 +123,7 @@ def test_check_return(command_validator): def test_check(command_validator): """Test check.""" - def valid_function() -> OBBject[Optional[List[int]]]: + async def valid_function() -> OBBject[Optional[List[int]]]: return OBBject(results=[1, 2, 3]) assert command_validator.check(valid_function) is None @@ -144,7 +144,7 @@ def test_command(router): """Test command.""" @router.command - def valid_function() -> OBBject[Optional[List[int]]]: + async def valid_function() -> OBBject[Optional[List[int]]]: return OBBject(results=[1, 2, 3]) assert valid_function @@ -186,7 +186,7 @@ def test_signature_inspector_init(signature_inspector): def test_complete_signature(signature_inspector): """Test complete_signature.""" - def sample_function( + async def sample_function( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -202,7 +202,7 @@ def test_complete_signature(signature_inspector): def test_complete_signature_error(signature_inspector): """Test complete_signature.""" - def valid_function() -> OBBject[Optional[List[int]]]: + async def valid_function() -> OBBject[Optional[List[int]]]: return OBBject(results=[1, 2, 3]) assert ( @@ -213,7 +213,7 @@ def test_complete_signature_error(signature_inspector): def test_validate_signature(signature_inspector): """Test validate_signature.""" - def sample_function( # type: ignore + async def sample_function( # type: ignore cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -237,7 +237,7 @@ def test_validate_signature(signature_inspector): def test_inject_dependency(signature_inspector): """Test inject_dependency.""" - def sample_function( # type: ignore + async def sample_function( # type: ignore cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -251,7 +251,7 @@ def test_inject_dependency(signature_inspector): def test_get_description(signature_inspector): """Test get_description.""" - def some_function(): + async def some_function(): """Mock function.""" assert signature_inspector.get_description(some_function) == some_function.__doc__ @@ -260,7 +260,7 @@ def test_get_description(signature_inspector): def test_get_description_no_doc(signature_inspector): """Test get_description.""" - def some_function(): + async def some_function(): pass assert not signature_inspector.get_description(some_function) diff --git a/openbb_platform/core/tests/app/test_query.py b/openbb_platform/core/tests/app/test_query.py index 53206d50192..1c3eb9c035b 100644 --- a/openbb_platform/core/tests/app/test_query.py +++ b/openbb_platform/core/tests/app/test_query.py @@ -120,10 +120,10 @@ def query_instance(): ) -def test_execute_method_fake_credentials(query_instance, mock_registry): +async def test_execute_method_fake_credentials(query_instance: Query, mock_registry): """Test execute method without setting credentials.""" mock_fetch_result = MockBaseModel() mock_registry.fetch.return_value = mock_fetch_result with pytest.raises(Exception): - query_instance.execute() + await query_instance.execute() diff --git a/openbb_platform/core/tests/provider/abstract/test_fetcher.py b/openbb_platform/core/tests/provider/abstract/test_fetcher.py index aa7ab713076..81e6ffac49d 100644 --- a/openbb_platform/core/tests/provider/abstract/test_fetcher.py +++ b/openbb_platform/core/tests/provider/abstract/test_fetcher.py @@ -36,12 +36,12 @@ class MockFetcher(Fetcher[MockQueryParams, List[MockData]]): return [MockData(**item) for item in data] -def test_fetcher_methods(): +async def test_fetcher_methods(): """Test the Fetcher abstract methods using a mock Fetcher subclass.""" params = {"param1": "value1"} mock_fetcher = MockFetcher() - fetched_data = mock_fetcher.fetch_data(params=params) + fetched_data = await mock_fetcher.fetch_data(params=params) assert isinstance(fetched_data, list) assert isinstance(fetched_data[0], MockData) assert fetched_data[0].model_dump() == {"mock_key": "mock_value"} diff --git a/openbb_platform/core/tests/provider/test_query_executor.py b/openbb_platform/core/tests/provider/test_query_executor.py index 56c1621f936..9f8a88e5cd7 100644 --- a/openbb_platform/core/tests/provider/test_query_executor.py +++ b/openbb_platform/core/tests/provider/test_query_executor.py @@ -91,15 +91,17 @@ def test_filter_credentials_missing_dont_require(mock_query_executor): assert filtered_credentials == {} -def test_execute_success(mock_query_executor): +async def test_execute_success(mock_query_executor: QueryExecutor): """Test if the method can execute a query successfully.""" mock_result = {"data": "test_data"} params = {"param1": "value1"} credentials = {"api_key": SecretStr("12345")} - with patch.object(Fetcher, "fetch_data", return_value=mock_result) as mock_fetch: - result = mock_query_executor.execute( + async with patch.object( + Fetcher, "fetch_data", return_value=mock_result + ) as mock_fetch: + result = await mock_query_executor.execute( "test_provider", "test_fetcher", params, credentials ) diff --git a/openbb_platform/extensions/charting/poetry.lock b/openbb_platform/extensions/charting/poetry.lock index aa706d4819c..3e57e1c3d10 100644 --- a/openbb_platform/extensions/charting/poetry.lock +++ b/openbb_platform/extensions/charting/poetry.lock @@ -1,126 +1,4 @@ -# This file is automatically @generated by Poetry 1.7.0 and should not be changed by hand. - -[[package]] -name = "aiohttp" -version = "3.8.5" -description = "Async http client/server framework (asyncio)" -optional = false -python-versions = ">=3.6" -files = [ - {file = "aiohttp-3.8.5-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:a94159871304770da4dd371f4291b20cac04e8c94f11bdea1c3478e557fbe0d8"}, - {file = "aiohttp-3.8.5-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:13bf85afc99ce6f9ee3567b04501f18f9f8dbbb2ea11ed1a2e079670403a7c84"}, - {file = "aiohttp-3.8.5-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:2ce2ac5708501afc4847221a521f7e4b245abf5178cf5ddae9d5b3856ddb2f3a"}, - {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:96943e5dcc37a6529d18766597c491798b7eb7a61d48878611298afc1fca946c"}, - {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2ad5c3c4590bb3cc28b4382f031f3783f25ec223557124c68754a2231d989e2b"}, - {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0c413c633d0512df4dc7fd2373ec06cc6a815b7b6d6c2f208ada7e9e93a5061d"}, - {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:df72ac063b97837a80d80dec8d54c241af059cc9bb42c4de68bd5b61ceb37caa"}, - {file = "aiohttp-3.8.5-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c48c5c0271149cfe467c0ff8eb941279fd6e3f65c9a388c984e0e6cf57538e14"}, - {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:368a42363c4d70ab52c2c6420a57f190ed3dfaca6a1b19afda8165ee16416a82"}, - {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:7607ec3ce4993464368505888af5beb446845a014bc676d349efec0e05085905"}, - {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:0d21c684808288a98914e5aaf2a7c6a3179d4df11d249799c32d1808e79503b5"}, - {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:312fcfbacc7880a8da0ae8b6abc6cc7d752e9caa0051a53d217a650b25e9a691"}, - {file = "aiohttp-3.8.5-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:ad093e823df03bb3fd37e7dec9d4670c34f9e24aeace76808fc20a507cace825"}, - {file = "aiohttp-3.8.5-cp310-cp310-win32.whl", hash = "sha256:33279701c04351a2914e1100b62b2a7fdb9a25995c4a104259f9a5ead7ed4802"}, - {file = "aiohttp-3.8.5-cp310-cp310-win_amd64.whl", hash = "sha256:6e4a280e4b975a2e7745573e3fc9c9ba0d1194a3738ce1cbaa80626cc9b4f4df"}, - {file = "aiohttp-3.8.5-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:ae871a964e1987a943d83d6709d20ec6103ca1eaf52f7e0d36ee1b5bebb8b9b9"}, - {file = "aiohttp-3.8.5-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:461908b2578955045efde733719d62f2b649c404189a09a632d245b445c9c975"}, - {file = "aiohttp-3.8.5-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:72a860c215e26192379f57cae5ab12b168b75db8271f111019509a1196dfc780"}, - {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:cc14be025665dba6202b6a71cfcdb53210cc498e50068bc088076624471f8bb9"}, - {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:8af740fc2711ad85f1a5c034a435782fbd5b5f8314c9a3ef071424a8158d7f6b"}, - {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:841cd8233cbd2111a0ef0a522ce016357c5e3aff8a8ce92bcfa14cef890d698f"}, - {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:5ed1c46fb119f1b59304b5ec89f834f07124cd23ae5b74288e364477641060ff"}, - {file = "aiohttp-3.8.5-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:84f8ae3e09a34f35c18fa57f015cc394bd1389bce02503fb30c394d04ee6b938"}, - {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:62360cb771707cb70a6fd114b9871d20d7dd2163a0feafe43fd115cfe4fe845e"}, - {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:23fb25a9f0a1ca1f24c0a371523546366bb642397c94ab45ad3aedf2941cec6a"}, - {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:b0ba0d15164eae3d878260d4c4df859bbdc6466e9e6689c344a13334f988bb53"}, - {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:5d20003b635fc6ae3f96d7260281dfaf1894fc3aa24d1888a9b2628e97c241e5"}, - {file = "aiohttp-3.8.5-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:0175d745d9e85c40dcc51c8f88c74bfbaef9e7afeeeb9d03c37977270303064c"}, - {file = "aiohttp-3.8.5-cp311-cp311-win32.whl", hash = "sha256:2e1b1e51b0774408f091d268648e3d57f7260c1682e7d3a63cb00d22d71bb945"}, - {file = "aiohttp-3.8.5-cp311-cp311-win_amd64.whl", hash = "sha256:043d2299f6dfdc92f0ac5e995dfc56668e1587cea7f9aa9d8a78a1b6554e5755"}, - {file = "aiohttp-3.8.5-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:cae533195e8122584ec87531d6df000ad07737eaa3c81209e85c928854d2195c"}, - {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4f21e83f355643c345177a5d1d8079f9f28b5133bcd154193b799d380331d5d3"}, - {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:a7a75ef35f2df54ad55dbf4b73fe1da96f370e51b10c91f08b19603c64004acc"}, - {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2e2e9839e14dd5308ee773c97115f1e0a1cb1d75cbeeee9f33824fa5144c7634"}, - {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c44e65da1de4403d0576473e2344828ef9c4c6244d65cf4b75549bb46d40b8dd"}, - {file = "aiohttp-3.8.5-cp36-cp36m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:78d847e4cde6ecc19125ccbc9bfac4a7ab37c234dd88fbb3c5c524e8e14da543"}, - {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_aarch64.whl", hash = "sha256:c7a815258e5895d8900aec4454f38dca9aed71085f227537208057853f9d13f2"}, - {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_i686.whl", hash = "sha256:8b929b9bd7cd7c3939f8bcfffa92fae7480bd1aa425279d51a89327d600c704d"}, - {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_ppc64le.whl", hash = "sha256:5db3a5b833764280ed7618393832e0853e40f3d3e9aa128ac0ba0f8278d08649"}, - {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_s390x.whl", hash = "sha256:a0215ce6041d501f3155dc219712bc41252d0ab76474615b9700d63d4d9292af"}, - {file = "aiohttp-3.8.5-cp36-cp36m-musllinux_1_1_x86_64.whl", hash = "sha256:fd1ed388ea7fbed22c4968dd64bab0198de60750a25fe8c0c9d4bef5abe13824"}, - {file = "aiohttp-3.8.5-cp36-cp36m-win32.whl", hash = "sha256:6e6783bcc45f397fdebc118d772103d751b54cddf5b60fbcc958382d7dd64f3e"}, - {file = "aiohttp-3.8.5-cp36-cp36m-win_amd64.whl", hash = "sha256:b5411d82cddd212644cf9360879eb5080f0d5f7d809d03262c50dad02f01421a"}, - {file = "aiohttp-3.8.5-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:01d4c0c874aa4ddfb8098e85d10b5e875a70adc63db91f1ae65a4b04d3344cda"}, - {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:e5980a746d547a6ba173fd5ee85ce9077e72d118758db05d229044b469d9029a"}, - {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:2a482e6da906d5e6e653be079b29bc173a48e381600161c9932d89dfae5942ef"}, - {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:80bd372b8d0715c66c974cf57fe363621a02f359f1ec81cba97366948c7fc873"}, - {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c1161b345c0a444ebcf46bf0a740ba5dcf50612fd3d0528883fdc0eff578006a"}, - {file = "aiohttp-3.8.5-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:cd56db019015b6acfaaf92e1ac40eb8434847d9bf88b4be4efe5bfd260aee692"}, - {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:153c2549f6c004d2754cc60603d4668899c9895b8a89397444a9c4efa282aaf4"}, - {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:4a01951fabc4ce26ab791da5f3f24dca6d9a6f24121746eb19756416ff2d881b"}, - {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:bfb9162dcf01f615462b995a516ba03e769de0789de1cadc0f916265c257e5d8"}, - {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:7dde0009408969a43b04c16cbbe252c4f5ef4574ac226bc8815cd7342d2028b6"}, - {file = "aiohttp-3.8.5-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:4149d34c32f9638f38f544b3977a4c24052042affa895352d3636fa8bffd030a"}, - {file = "aiohttp-3.8.5-cp37-cp37m-win32.whl", hash = "sha256:68c5a82c8779bdfc6367c967a4a1b2aa52cd3595388bf5961a62158ee8a59e22"}, - {file = "aiohttp-3.8.5-cp37-cp37m-win_amd64.whl", hash = "sha256:2cf57fb50be5f52bda004b8893e63b48530ed9f0d6c96c84620dc92fe3cd9b9d"}, - {file = "aiohttp-3.8.5-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:eca4bf3734c541dc4f374ad6010a68ff6c6748f00451707f39857f429ca36ced"}, - {file = "aiohttp-3.8.5-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1274477e4c71ce8cfe6c1ec2f806d57c015ebf84d83373676036e256bc55d690"}, - {file = "aiohttp-3.8.5-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:28c543e54710d6158fc6f439296c7865b29e0b616629767e685a7185fab4a6b9"}, - {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:910bec0c49637d213f5d9877105d26e0c4a4de2f8b1b29405ff37e9fc0ad52b8"}, - {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:5443910d662db951b2e58eb70b0fbe6b6e2ae613477129a5805d0b66c54b6cb7"}, - {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2e460be6978fc24e3df83193dc0cc4de46c9909ed92dd47d349a452ef49325b7"}, - {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:fb1558def481d84f03b45888473fc5a1f35747b5f334ef4e7a571bc0dfcb11f8"}, - {file = "aiohttp-3.8.5-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:34dd0c107799dcbbf7d48b53be761a013c0adf5571bf50c4ecad5643fe9cfcd0"}, - {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:aa1990247f02a54185dc0dff92a6904521172a22664c863a03ff64c42f9b5410"}, - {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:0e584a10f204a617d71d359fe383406305a4b595b333721fa50b867b4a0a1548"}, - {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:a3cf433f127efa43fee6b90ea4c6edf6c4a17109d1d037d1a52abec84d8f2e42"}, - {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:c11f5b099adafb18e65c2c997d57108b5bbeaa9eeee64a84302c0978b1ec948b"}, - {file = "aiohttp-3.8.5-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:84de26ddf621d7ac4c975dbea4c945860e08cccde492269db4e1538a6a6f3c35"}, - {file = "aiohttp-3.8.5-cp38-cp38-win32.whl", hash = "sha256:ab88bafedc57dd0aab55fa728ea10c1911f7e4d8b43e1d838a1739f33712921c"}, - {file = "aiohttp-3.8.5-cp38-cp38-win_amd64.whl", hash = "sha256:5798a9aad1879f626589f3df0f8b79b3608a92e9beab10e5fda02c8a2c60db2e"}, - {file = "aiohttp-3.8.5-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:a6ce61195c6a19c785df04e71a4537e29eaa2c50fe745b732aa937c0c77169f3"}, - {file = "aiohttp-3.8.5-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:773dd01706d4db536335fcfae6ea2440a70ceb03dd3e7378f3e815b03c97ab51"}, - {file = "aiohttp-3.8.5-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f83a552443a526ea38d064588613aca983d0ee0038801bc93c0c916428310c28"}, - {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1f7372f7341fcc16f57b2caded43e81ddd18df53320b6f9f042acad41f8e049a"}, - {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ea353162f249c8097ea63c2169dd1aa55de1e8fecbe63412a9bc50816e87b761"}, - {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:e5d47ae48db0b2dcf70bc8a3bc72b3de86e2a590fc299fdbbb15af320d2659de"}, - {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d827176898a2b0b09694fbd1088c7a31836d1a505c243811c87ae53a3f6273c1"}, - {file = "aiohttp-3.8.5-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:3562b06567c06439d8b447037bb655ef69786c590b1de86c7ab81efe1c9c15d8"}, - {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:4e874cbf8caf8959d2adf572a78bba17cb0e9d7e51bb83d86a3697b686a0ab4d"}, - {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:6809a00deaf3810e38c628e9a33271892f815b853605a936e2e9e5129762356c"}, - {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:33776e945d89b29251b33a7e7d006ce86447b2cfd66db5e5ded4e5cd0340585c"}, - {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:eaeed7abfb5d64c539e2db173f63631455f1196c37d9d8d873fc316470dfbacd"}, - {file = "aiohttp-3.8.5-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:e91d635961bec2d8f19dfeb41a539eb94bd073f075ca6dae6c8dc0ee89ad6f91"}, - {file = "aiohttp-3.8.5-cp39-cp39-win32.whl", hash = "sha256:00ad4b6f185ec67f3e6562e8a1d2b69660be43070bd0ef6fcec5211154c7df67"}, - {file = "aiohttp-3.8.5-cp39-cp39-win_amd64.whl", hash = "sha256:c0a9034379a37ae42dea7ac1e048352d96286626251862e448933c0f59cbd79c"}, - {file = "aiohttp-3.8.5.tar.gz", hash = "sha256:b9552ec52cc147dbf1944ac7ac98af7602e51ea2dcd076ed194ca3c0d1c7d0bc"}, -] - -[package.dependencies] -aiosignal = ">=1.1.2" -async-timeout = ">=4.0.0a3,<5.0" -attrs = ">=17.3.0" -charset-normalizer = ">=2.0,<4.0" -frozenlist = ">=1.1.1" -multidict = ">=4.5,<7.0" -yarl = ">=1.0,<2.0" - -[package.extras] -speedups = ["Brotli", "aiodns", "cchardet"] - -[[package]] -name = "aiosignal" -version = "1.3.1" -description = "aiosignal: a list of registered asynchronous callbacks" -optional = false -python-versions = ">=3.7" -files = [ - {file = "aiosignal-1.3.1-py3-none-any.whl", hash = "sha256:f8376fb07dd1e86a584e4fcdec80b36b7f81aac666ebc724e2c090300dd83b17"}, - {file = "aiosignal-1.3.1.tar.gz", hash = "sha256:54cd96e15e1649b75d6c87526a6ff0b6c1b0dd3459f43d9ca11d48c339b68cfc"}, -] - -[package.dependencies] -frozenlist = ">=1.1.0" +# This file is automatically @generated by Poetry 1.7.1 and should not be changed by hand. [[package]] name = "annotated-types" @@ -157,17 +35,6 @@ doc = ["Sphinx", "packaging", "sphinx-autodoc-typehints (>=1.2.0)", "sphinx-rtd- test = ["anyio[trio]", "coverage[toml] (>=4.5)", "hypothesis (>=4.0)", "mock (>=4)", "psutil (>=5.9)", "pytest (>=7.0)", "pytest-mock (>=3.6.1)", "trustme", "uvloop (>=0.17)"] trio = ["trio (<0.22)"] -[[package]] -name = "async-timeout" -version = "4.0.3" -description = "Timeout context manager for asyncio programs" -optional = false -python-versions = ">=3.7" -files = [ - {file = "async-timeout-4.0.3.tar.gz", hash = "sha256:4640d96be84d82d02ed59ea2b7105a0f7b33abe8703703cd0ab0bf87c427522f"}, - {file = "async_timeout-4.0.3-py3-none-any.whl", hash = "sha256:7405140ff1230c310e51dc27b3145b9092d659ce68ff733fb0cefe3ee42be028"}, -] - [[package]] name = "attrs" version = "23.1.0" @@ -402,76 +269,6 @@ files = [ [package.extras] devel = ["colorama", "json-spec", "jsonschema", "pylint", "pytest", "pytest-benchmark", "pytest-cache", "validictory"] -[[package]] -name = "frozenlist" -version = "1.4.0" -description = "A list-like structure which implements collections.abc.MutableSequence" -optional = false -python-versions = ">=3.8" -files = [ - {file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:764226ceef3125e53ea2cb275000e309c0aa5464d43bd72abd661e27fffc26ab"}, - {file = "frozenlist-1.4.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:d6484756b12f40003c6128bfcc3fa9f0d49a687e171186c2d85ec82e3758c559"}, - {file = "frozenlist-1.4.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:9ac08e601308e41eb533f232dbf6b7e4cea762f9f84f6357136eed926c15d12c"}, - {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:d081f13b095d74b67d550de04df1c756831f3b83dc9881c38985834387487f1b"}, - {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:71932b597f9895f011f47f17d6428252fc728ba2ae6024e13c3398a087c2cdea"}, - {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:981b9ab5a0a3178ff413bca62526bb784249421c24ad7381e39d67981be2c326"}, - {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:e41f3de4df3e80de75845d3e743b3f1c4c8613c3997a912dbf0229fc61a8b963"}, - {file = "frozenlist-1.4.0-cp310-cp310-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6918d49b1f90821e93069682c06ffde41829c346c66b721e65a5c62b4bab0300"}, - {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:0e5c8764c7829343d919cc2dfc587a8db01c4f70a4ebbc49abde5d4b158b007b"}, - {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:8d0edd6b1c7fb94922bf569c9b092ee187a83f03fb1a63076e7774b60f9481a8"}, - {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:e29cda763f752553fa14c68fb2195150bfab22b352572cb36c43c47bedba70eb"}, - {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:0c7c1b47859ee2cac3846fde1c1dc0f15da6cec5a0e5c72d101e0f83dcb67ff9"}, - {file = "frozenlist-1.4.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:901289d524fdd571be1c7be054f48b1f88ce8dddcbdf1ec698b27d4b8b9e5d62"}, - {file = "frozenlist-1.4.0-cp310-cp310-win32.whl", hash = "sha256:1a0848b52815006ea6596c395f87449f693dc419061cc21e970f139d466dc0a0"}, - {file = "frozenlist-1.4.0-cp310-cp310-win_amd64.whl", hash = "sha256:b206646d176a007466358aa21d85cd8600a415c67c9bd15403336c331a10d956"}, - {file = "frozenlist-1.4.0-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:de343e75f40e972bae1ef6090267f8260c1446a1695e77096db6cfa25e759a95"}, - {file = "frozenlist-1.4.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:ad2a9eb6d9839ae241701d0918f54c51365a51407fd80f6b8289e2dfca977cc3"}, - {file = "frozenlist-1.4.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bd7bd3b3830247580de99c99ea2a01416dfc3c34471ca1298bccabf86d0ff4dc"}, - {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:bdf1847068c362f16b353163391210269e4f0569a3c166bc6a9f74ccbfc7e839"}, - {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:38461d02d66de17455072c9ba981d35f1d2a73024bee7790ac2f9e361ef1cd0c"}, - {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5a32087d720c608f42caed0ef36d2b3ea61a9d09ee59a5142d6070da9041b8f"}, - {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:dd65632acaf0d47608190a71bfe46b209719bf2beb59507db08ccdbe712f969b"}, - {file = "frozenlist-1.4.0-cp311-cp311-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:261b9f5d17cac914531331ff1b1d452125bf5daa05faf73b71d935485b0c510b"}, - {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:b89ac9768b82205936771f8d2eb3ce88503b1556324c9f903e7156669f521472"}, - {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:008eb8b31b3ea6896da16c38c1b136cb9fec9e249e77f6211d479db79a4eaf01"}, - {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:e74b0506fa5aa5598ac6a975a12aa8928cbb58e1f5ac8360792ef15de1aa848f"}, - {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:490132667476f6781b4c9458298b0c1cddf237488abd228b0b3650e5ecba7467"}, - {file = "frozenlist-1.4.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:76d4711f6f6d08551a7e9ef28c722f4a50dd0fc204c56b4bcd95c6cc05ce6fbb"}, - {file = "frozenlist-1.4.0-cp311-cp311-win32.whl", hash = "sha256:a02eb8ab2b8f200179b5f62b59757685ae9987996ae549ccf30f983f40602431"}, - {file = "frozenlist-1.4.0-cp311-cp311-win_amd64.whl", hash = "sha256:515e1abc578dd3b275d6a5114030b1330ba044ffba03f94091842852f806f1c1"}, - {file = "frozenlist-1.4.0-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:f0ed05f5079c708fe74bf9027e95125334b6978bf07fd5ab923e9e55e5fbb9d3"}, - {file = "frozenlist-1.4.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:ca265542ca427bf97aed183c1676e2a9c66942e822b14dc6e5f42e038f92a503"}, - {file = "frozenlist-1.4.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:491e014f5c43656da08958808588cc6c016847b4360e327a62cb308c791bd2d9"}, - {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:17ae5cd0f333f94f2e03aaf140bb762c64783935cc764ff9c82dff626089bebf"}, - {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1e78fb68cf9c1a6aa4a9a12e960a5c9dfbdb89b3695197aa7064705662515de2"}, - {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d5655a942f5f5d2c9ed93d72148226d75369b4f6952680211972a33e59b1dfdc"}, - {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c11b0746f5d946fecf750428a95f3e9ebe792c1ee3b1e96eeba145dc631a9672"}, - {file = "frozenlist-1.4.0-cp38-cp38-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:e66d2a64d44d50d2543405fb183a21f76b3b5fd16f130f5c99187c3fb4e64919"}, - {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:88f7bc0fcca81f985f78dd0fa68d2c75abf8272b1f5c323ea4a01a4d7a614efc"}, - {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:5833593c25ac59ede40ed4de6d67eb42928cca97f26feea219f21d0ed0959b79"}, - {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:fec520865f42e5c7f050c2a79038897b1c7d1595e907a9e08e3353293ffc948e"}, - {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:b826d97e4276750beca7c8f0f1a4938892697a6bcd8ec8217b3312dad6982781"}, - {file = "frozenlist-1.4.0-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:ceb6ec0a10c65540421e20ebd29083c50e6d1143278746a4ef6bcf6153171eb8"}, - {file = "frozenlist-1.4.0-cp38-cp38-win32.whl", hash = "sha256:2b8bcf994563466db019fab287ff390fffbfdb4f905fc77bc1c1d604b1c689cc"}, - {file = "frozenlist-1.4.0-cp38-cp38-win_amd64.whl", hash = "sha256:a6c8097e01886188e5be3e6b14e94ab365f384736aa1fca6a0b9e35bd4a30bc7"}, - {file = "frozenlist-1.4.0-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:6c38721585f285203e4b4132a352eb3daa19121a035f3182e08e437cface44bf"}, - {file = "frozenlist-1.4.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:a0c6da9aee33ff0b1a451e867da0c1f47408112b3391dd43133838339e410963"}, - {file = "frozenlist-1.4.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:93ea75c050c5bb3d98016b4ba2497851eadf0ac154d88a67d7a6816206f6fa7f"}, - {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:f61e2dc5ad442c52b4887f1fdc112f97caeff4d9e6ebe78879364ac59f1663e1"}, - {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:aa384489fefeb62321b238e64c07ef48398fe80f9e1e6afeff22e140e0850eef"}, - {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:10ff5faaa22786315ef57097a279b833ecab1a0bfb07d604c9cbb1c4cdc2ed87"}, - {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:007df07a6e3eb3e33e9a1fe6a9db7af152bbd8a185f9aaa6ece10a3529e3e1c6"}, - {file = "frozenlist-1.4.0-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7f4f399d28478d1f604c2ff9119907af9726aed73680e5ed1ca634d377abb087"}, - {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:c5374b80521d3d3f2ec5572e05adc94601985cc526fb276d0c8574a6d749f1b3"}, - {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:ce31ae3e19f3c902de379cf1323d90c649425b86de7bbdf82871b8a2a0615f3d"}, - {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:7211ef110a9194b6042449431e08c4d80c0481e5891e58d429df5899690511c2"}, - {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:556de4430ce324c836789fa4560ca62d1591d2538b8ceb0b4f68fb7b2384a27a"}, - {file = "frozenlist-1.4.0-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:7645a8e814a3ee34a89c4a372011dcd817964ce8cb273c8ed6119d706e9613e3"}, - {file = "frozenlist-1.4.0-cp39-cp39-win32.whl", hash = "sha256:19488c57c12d4e8095a922f328df3f179c820c212940a498623ed39160bc3c2f"}, - {file = "frozenlist-1.4.0-cp39-cp39-win_amd64.whl", hash = "sha256:6221d84d463fb110bdd7619b69cb43878a11d51cbb9394ae3105d082d5199167"}, - {file = "frozenlist-1.4.0.tar.gz", hash = "sha256:09163bdf0b2907454042edb19f887c6d33806adc71fbd54afc14908bfdc22251"}, -] - [[package]] name = "h11" version = "0.14.0" @@ -728,89 +525,6 @@ files = [ {file = "monotonic-1.6.tar.gz", hash = "sha256:3a55207bcfed53ddd5c5bae174524062935efed17792e9de2ad0205ce9ad63f7"}, ] -[[package]] -name = "multidict" -version = "6.0.4" -description = "multidict implementation" -optional = false -python-versions = ">=3.7" -files = [ - {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:0b1a97283e0c85772d613878028fec909f003993e1007eafa715b24b377cb9b8"}, - {file = "multidict-6.0.4-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:eeb6dcc05e911516ae3d1f207d4b0520d07f54484c49dfc294d6e7d63b734171"}, - {file = "multidict-6.0.4-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:d6d635d5209b82a3492508cf5b365f3446afb65ae7ebd755e70e18f287b0adf7"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c048099e4c9e9d615545e2001d3d8a4380bd403e1a0578734e0d31703d1b0c0b"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ea20853c6dbbb53ed34cb4d080382169b6f4554d394015f1bef35e881bf83547"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:16d232d4e5396c2efbbf4f6d4df89bfa905eb0d4dc5b3549d872ab898451f569"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:36c63aaa167f6c6b04ef2c85704e93af16c11d20de1d133e39de6a0e84582a93"}, - {file = "multidict-6.0.4-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:64bdf1086b6043bf519869678f5f2757f473dee970d7abf6da91ec00acb9cb98"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:43644e38f42e3af682690876cff722d301ac585c5b9e1eacc013b7a3f7b696a0"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:7582a1d1030e15422262de9f58711774e02fa80df0d1578995c76214f6954988"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:ddff9c4e225a63a5afab9dd15590432c22e8057e1a9a13d28ed128ecf047bbdc"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:ee2a1ece51b9b9e7752e742cfb661d2a29e7bcdba2d27e66e28a99f1890e4fa0"}, - {file = "multidict-6.0.4-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:a2e4369eb3d47d2034032a26c7a80fcb21a2cb22e1173d761a162f11e562caa5"}, - {file = "multidict-6.0.4-cp310-cp310-win32.whl", hash = "sha256:574b7eae1ab267e5f8285f0fe881f17efe4b98c39a40858247720935b893bba8"}, - {file = "multidict-6.0.4-cp310-cp310-win_amd64.whl", hash = "sha256:4dcbb0906e38440fa3e325df2359ac6cb043df8e58c965bb45f4e406ecb162cc"}, - {file = "multidict-6.0.4-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:0dfad7a5a1e39c53ed00d2dd0c2e36aed4650936dc18fd9a1826a5ae1cad6f03"}, - {file = "multidict-6.0.4-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:64da238a09d6039e3bd39bb3aee9c21a5e34f28bfa5aa22518581f910ff94af3"}, - {file = "multidict-6.0.4-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:ff959bee35038c4624250473988b24f846cbeb2c6639de3602c073f10410ceba"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:01a3a55bd90018c9c080fbb0b9f4891db37d148a0a18722b42f94694f8b6d4c9"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:c5cb09abb18c1ea940fb99360ea0396f34d46566f157122c92dfa069d3e0e982"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:666daae833559deb2d609afa4490b85830ab0dfca811a98b70a205621a6109fe"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:11bdf3f5e1518b24530b8241529d2050014c884cf18b6fc69c0c2b30ca248710"}, - {file = "multidict-6.0.4-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:7d18748f2d30f94f498e852c67d61261c643b349b9d2a581131725595c45ec6c"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:458f37be2d9e4c95e2d8866a851663cbc76e865b78395090786f6cd9b3bbf4f4"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:b1a2eeedcead3a41694130495593a559a668f382eee0727352b9a41e1c45759a"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:7d6ae9d593ef8641544d6263c7fa6408cc90370c8cb2bbb65f8d43e5b0351d9c"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:5979b5632c3e3534e42ca6ff856bb24b2e3071b37861c2c727ce220d80eee9ed"}, - {file = "multidict-6.0.4-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:dcfe792765fab89c365123c81046ad4103fcabbc4f56d1c1997e6715e8015461"}, - {file = "multidict-6.0.4-cp311-cp311-win32.whl", hash = "sha256:3601a3cece3819534b11d4efc1eb76047488fddd0c85a3948099d5da4d504636"}, - {file = "multidict-6.0.4-cp311-cp311-win_amd64.whl", hash = "sha256:81a4f0b34bd92df3da93315c6a59034df95866014ac08535fc819f043bfd51f0"}, - {file = "multidict-6.0.4-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:67040058f37a2a51ed8ea8f6b0e6ee5bd78ca67f169ce6122f3e2ec80dfe9b78"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:853888594621e6604c978ce2a0444a1e6e70c8d253ab65ba11657659dcc9100f"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:39ff62e7d0f26c248b15e364517a72932a611a9b75f35b45be078d81bdb86603"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:af048912e045a2dc732847d33821a9d84ba553f5c5f028adbd364dd4765092ac"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:b1e8b901e607795ec06c9e42530788c45ac21ef3aaa11dbd0c69de543bfb79a9"}, - {file = "multidict-6.0.4-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:62501642008a8b9871ddfccbf83e4222cf8ac0d5aeedf73da36153ef2ec222d2"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:99b76c052e9f1bc0721f7541e5e8c05db3941eb9ebe7b8553c625ef88d6eefde"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:509eac6cf09c794aa27bcacfd4d62c885cce62bef7b2c3e8b2e49d365b5003fe"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:21a12c4eb6ddc9952c415f24eef97e3e55ba3af61f67c7bc388dcdec1404a067"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:5cad9430ab3e2e4fa4a2ef4450f548768400a2ac635841bc2a56a2052cdbeb87"}, - {file = "multidict-6.0.4-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:ab55edc2e84460694295f401215f4a58597f8f7c9466faec545093045476327d"}, - {file = "multidict-6.0.4-cp37-cp37m-win32.whl", hash = "sha256:5a4dcf02b908c3b8b17a45fb0f15b695bf117a67b76b7ad18b73cf8e92608775"}, - {file = "multidict-6.0.4-cp37-cp37m-win_amd64.whl", hash = "sha256:6ed5f161328b7df384d71b07317f4d8656434e34591f20552c7bcef27b0ab88e"}, - {file = "multidict-6.0.4-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5fc1b16f586f049820c5c5b17bb4ee7583092fa0d1c4e28b5239181ff9532e0c"}, - {file = "multidict-6.0.4-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:1502e24330eb681bdaa3eb70d6358e818e8e8f908a22a1851dfd4e15bc2f8161"}, - {file = "multidict-6.0.4-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:b692f419760c0e65d060959df05f2a531945af31fda0c8a3b3195d4efd06de11"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:45e1ecb0379bfaab5eef059f50115b54571acfbe422a14f668fc8c27ba410e7e"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ddd3915998d93fbcd2566ddf9cf62cdb35c9e093075f862935573d265cf8f65d"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:59d43b61c59d82f2effb39a93c48b845efe23a3852d201ed2d24ba830d0b4cf2"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:cc8e1d0c705233c5dd0c5e6460fbad7827d5d36f310a0fadfd45cc3029762258"}, - {file = "multidict-6.0.4-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:d6aa0418fcc838522256761b3415822626f866758ee0bc6632c9486b179d0b52"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:6748717bb10339c4760c1e63da040f5f29f5ed6e59d76daee30305894069a660"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:4d1a3d7ef5e96b1c9e92f973e43aa5e5b96c659c9bc3124acbbd81b0b9c8a951"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:4372381634485bec7e46718edc71528024fcdc6f835baefe517b34a33c731d60"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:fc35cb4676846ef752816d5be2193a1e8367b4c1397b74a565a9d0389c433a1d"}, - {file = "multidict-6.0.4-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:4b9d9e4e2b37daddb5c23ea33a3417901fa7c7b3dee2d855f63ee67a0b21e5b1"}, - {file = "multidict-6.0.4-cp38-cp38-win32.whl", hash = "sha256:e41b7e2b59679edfa309e8db64fdf22399eec4b0b24694e1b2104fb789207779"}, - {file = "multidict-6.0.4-cp38-cp38-win_amd64.whl", hash = "sha256:d6c254ba6e45d8e72739281ebc46ea5eb5f101234f3ce171f0e9f5cc86991480"}, - {file = "multidict-6.0.4-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:16ab77bbeb596e14212e7bab8429f24c1579234a3a462105cda4a66904998664"}, - {file = "multidict-6.0.4-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:bc779e9e6f7fda81b3f9aa58e3a6091d49ad528b11ed19f6621408806204ad35"}, - {file = "multidict-6.0.4-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:4ceef517eca3e03c1cceb22030a3e39cb399ac86bff4e426d4fc6ae49052cc60"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:281af09f488903fde97923c7744bb001a9b23b039a909460d0f14edc7bf59706"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:52f2dffc8acaba9a2f27174c41c9e57f60b907bb9f096b36b1a1f3be71c6284d"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b41156839806aecb3641f3208c0dafd3ac7775b9c4c422d82ee2a45c34ba81ca"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3fc56f88cc98ef8139255cf8cd63eb2c586531e43310ff859d6bb3a6b51f1"}, - {file = "multidict-6.0.4-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8316a77808c501004802f9beebde51c9f857054a0c871bd6da8280e718444449"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:f70b98cd94886b49d91170ef23ec5c0e8ebb6f242d734ed7ed677b24d50c82cf"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:bf6774e60d67a9efe02b3616fee22441d86fab4c6d335f9d2051d19d90a40063"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:e69924bfcdda39b722ef4d9aa762b2dd38e4632b3641b1d9a57ca9cd18f2f83a"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:6b181d8c23da913d4ff585afd1155a0e1194c0b50c54fcfe286f70cdaf2b7176"}, - {file = "multidict-6.0.4-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:52509b5be062d9eafc8170e53026fbc54cf3b32759a23d07fd935fb04fc22d95"}, - {file = "multidict-6.0.4-cp39-cp39-win32.whl", hash = "sha256:27c523fbfbdfd19c6867af7346332b62b586eed663887392cff78d614f9ec313"}, - {file = "multidict-6.0.4-cp39-cp39-win_amd64.whl", hash = "sha256:33029f5734336aa0d4c0384525da0387ef89148dc7191aae00ca5fb23d7aafc2"}, - {file = "multidict-6.0.4.tar.gz", hash = "sha256:3666906492efb76453c0e7b97f2cf459b0682e7402c0489a95484965dbc1da49"}, -] - [[package]] name = "nbformat" version = "5.9.2" @@ -2068,93 +1782,6 @@ files = [ {file = "websockets-10.4.tar.gz", hash = "sha256:eef610b23933c54d5d921c92578ae5f89813438fded840c2e9809d378dc765d3"}, ] -[[package]] -name = "yarl" -version = "1.9.2" -description = "Yet another URL library" -optional = false -python-versions = ">=3.7" -files = [ - {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_universal2.whl", hash = "sha256:8c2ad583743d16ddbdf6bb14b5cd76bf43b0d0006e918809d5d4ddf7bde8dd82"}, - {file = "yarl-1.9.2-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:82aa6264b36c50acfb2424ad5ca537a2060ab6de158a5bd2a72a032cc75b9eb8"}, - {file = "yarl-1.9.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c0c77533b5ed4bcc38e943178ccae29b9bcf48ffd1063f5821192f23a1bd27b9"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ee4afac41415d52d53a9833ebae7e32b344be72835bbb589018c9e938045a560"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9bf345c3a4f5ba7f766430f97f9cc1320786f19584acc7086491f45524a551ac"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2a96c19c52ff442a808c105901d0bdfd2e28575b3d5f82e2f5fd67e20dc5f4ea"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:891c0e3ec5ec881541f6c5113d8df0315ce5440e244a716b95f2525b7b9f3608"}, - {file = "yarl-1.9.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:c3a53ba34a636a256d767c086ceb111358876e1fb6b50dfc4d3f4951d40133d5"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:566185e8ebc0898b11f8026447eacd02e46226716229cea8db37496c8cdd26e0"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_i686.whl", hash = "sha256:2b0738fb871812722a0ac2154be1f049c6223b9f6f22eec352996b69775b36d4"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_ppc64le.whl", hash = "sha256:32f1d071b3f362c80f1a7d322bfd7b2d11e33d2adf395cc1dd4df36c9c243095"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_s390x.whl", hash = "sha256:e9fdc7ac0d42bc3ea78818557fab03af6181e076a2944f43c38684b4b6bed8e3"}, - {file = "yarl-1.9.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:56ff08ab5df8429901ebdc5d15941b59f6253393cb5da07b4170beefcf1b2528"}, - {file = "yarl-1.9.2-cp310-cp310-win32.whl", hash = "sha256:8ea48e0a2f931064469bdabca50c2f578b565fc446f302a79ba6cc0ee7f384d3"}, - {file = "yarl-1.9.2-cp310-cp310-win_amd64.whl", hash = "sha256:50f33040f3836e912ed16d212f6cc1efb3231a8a60526a407aeb66c1c1956dde"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_universal2.whl", hash = "sha256:646d663eb2232d7909e6601f1a9107e66f9791f290a1b3dc7057818fe44fc2b6"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:aff634b15beff8902d1f918012fc2a42e0dbae6f469fce134c8a0dc51ca423bb"}, - {file = "yarl-1.9.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:a83503934c6273806aed765035716216cc9ab4e0364f7f066227e1aaea90b8d0"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b25322201585c69abc7b0e89e72790469f7dad90d26754717f3310bfe30331c2"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:22a94666751778629f1ec4280b08eb11815783c63f52092a5953faf73be24191"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:8ec53a0ea2a80c5cd1ab397925f94bff59222aa3cf9c6da938ce05c9ec20428d"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:159d81f22d7a43e6eabc36d7194cb53f2f15f498dbbfa8edc8a3239350f59fe7"}, - {file = "yarl-1.9.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:832b7e711027c114d79dffb92576acd1bd2decc467dec60e1cac96912602d0e6"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:95d2ecefbcf4e744ea952d073c6922e72ee650ffc79028eb1e320e732898d7e8"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_i686.whl", hash = "sha256:d4e2c6d555e77b37288eaf45b8f60f0737c9efa3452c6c44626a5455aeb250b9"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_ppc64le.whl", hash = "sha256:783185c75c12a017cc345015ea359cc801c3b29a2966c2655cd12b233bf5a2be"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_s390x.whl", hash = "sha256:b8cc1863402472f16c600e3e93d542b7e7542a540f95c30afd472e8e549fc3f7"}, - {file = "yarl-1.9.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:822b30a0f22e588b32d3120f6d41e4ed021806418b4c9f0bc3048b8c8cb3f92a"}, - {file = "yarl-1.9.2-cp311-cp311-win32.whl", hash = "sha256:a60347f234c2212a9f0361955007fcf4033a75bf600a33c88a0a8e91af77c0e8"}, - {file = "yarl-1.9.2-cp311-cp311-win_amd64.whl", hash = "sha256:be6b3fdec5c62f2a67cb3f8c6dbf56bbf3f61c0f046f84645cd1ca73532ea051"}, - {file = "yarl-1.9.2-cp37-cp37m-macosx_10_9_x86_64.whl", hash = "sha256:38a3928ae37558bc1b559f67410df446d1fbfa87318b124bf5032c31e3447b74"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:ac9bb4c5ce3975aeac288cfcb5061ce60e0d14d92209e780c93954076c7c4367"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:3da8a678ca8b96c8606bbb8bfacd99a12ad5dd288bc6f7979baddd62f71c63ef"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:13414591ff516e04fcdee8dc051c13fd3db13b673c7a4cb1350e6b2ad9639ad3"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bf74d08542c3a9ea97bb8f343d4fcbd4d8f91bba5ec9d5d7f792dbe727f88938"}, - {file = "yarl-1.9.2-cp37-cp37m-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:6e7221580dc1db478464cfeef9b03b95c5852cc22894e418562997df0d074ccc"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_aarch64.whl", hash = "sha256:494053246b119b041960ddcd20fd76224149cfea8ed8777b687358727911dd33"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_i686.whl", hash = "sha256:52a25809fcbecfc63ac9ba0c0fb586f90837f5425edfd1ec9f3372b119585e45"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_ppc64le.whl", hash = "sha256:e65610c5792870d45d7b68c677681376fcf9cc1c289f23e8e8b39c1485384185"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_s390x.whl", hash = "sha256:1b1bba902cba32cdec51fca038fd53f8beee88b77efc373968d1ed021024cc04"}, - {file = "yarl-1.9.2-cp37-cp37m-musllinux_1_1_x86_64.whl", hash = "sha256:662e6016409828ee910f5d9602a2729a8a57d74b163c89a837de3fea050c7582"}, - {file = "yarl-1.9.2-cp37-cp37m-win32.whl", hash = "sha256:f364d3480bffd3aa566e886587eaca7c8c04d74f6e8933f3f2c996b7f09bee1b"}, - {file = "yarl-1.9.2-cp37-cp37m-win_amd64.whl", hash = "sha256:6a5883464143ab3ae9ba68daae8e7c5c95b969462bbe42e2464d60e7e2698368"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_universal2.whl", hash = "sha256:5610f80cf43b6202e2c33ba3ec2ee0a2884f8f423c8f4f62906731d876ef4fac"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:b9a4e67ad7b646cd6f0938c7ebfd60e481b7410f574c560e455e938d2da8e0f4"}, - {file = "yarl-1.9.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:83fcc480d7549ccebe9415d96d9263e2d4226798c37ebd18c930fce43dfb9574"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5fcd436ea16fee7d4207c045b1e340020e58a2597301cfbcfdbe5abd2356c2fb"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:84e0b1599334b1e1478db01b756e55937d4614f8654311eb26012091be109d59"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:3458a24e4ea3fd8930e934c129b676c27452e4ebda80fbe47b56d8c6c7a63a9e"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:838162460b3a08987546e881a2bfa573960bb559dfa739e7800ceeec92e64417"}, - {file = "yarl-1.9.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:f4e2d08f07a3d7d3e12549052eb5ad3eab1c349c53ac51c209a0e5991bbada78"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:de119f56f3c5f0e2fb4dee508531a32b069a5f2c6e827b272d1e0ff5ac040333"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_i686.whl", hash = "sha256:149ddea5abf329752ea5051b61bd6c1d979e13fbf122d3a1f9f0c8be6cb6f63c"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_ppc64le.whl", hash = "sha256:674ca19cbee4a82c9f54e0d1eee28116e63bc6fd1e96c43031d11cbab8b2afd5"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_s390x.whl", hash = "sha256:9b3152f2f5677b997ae6c804b73da05a39daa6a9e85a512e0e6823d81cdad7cc"}, - {file = "yarl-1.9.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:5415d5a4b080dc9612b1b63cba008db84e908b95848369aa1da3686ae27b6d2b"}, - {file = "yarl-1.9.2-cp38-cp38-win32.whl", hash = "sha256:f7a3d8146575e08c29ed1cd287068e6d02f1c7bdff8970db96683b9591b86ee7"}, - {file = "yarl-1.9.2-cp38-cp38-win_amd64.whl", hash = "sha256:63c48f6cef34e6319a74c727376e95626f84ea091f92c0250a98e53e62c77c72"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_universal2.whl", hash = "sha256:75df5ef94c3fdc393c6b19d80e6ef1ecc9ae2f4263c09cacb178d871c02a5ba9"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:c027a6e96ef77d401d8d5a5c8d6bc478e8042f1e448272e8d9752cb0aff8b5c8"}, - {file = "yarl-1.9.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:f3b078dbe227f79be488ffcfc7a9edb3409d018e0952cf13f15fd6512847f3f7"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:59723a029760079b7d991a401386390c4be5bfec1e7dd83e25a6a0881859e716"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:b03917871bf859a81ccb180c9a2e6c1e04d2f6a51d953e6a5cdd70c93d4e5a2a"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c1012fa63eb6c032f3ce5d2171c267992ae0c00b9e164efe4d73db818465fac3"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a74dcbfe780e62f4b5a062714576f16c2f3493a0394e555ab141bf0d746bb955"}, - {file = "yarl-1.9.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.manylinux_2_17_i686.manylinux2014_i686.whl", hash = "sha256:8c56986609b057b4839968ba901944af91b8e92f1725d1a2d77cbac6972b9ed1"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:2c315df3293cd521033533d242d15eab26583360b58f7ee5d9565f15fee1bef4"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_i686.whl", hash = "sha256:b7232f8dfbd225d57340e441d8caf8652a6acd06b389ea2d3222b8bc89cbfca6"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_ppc64le.whl", hash = "sha256:53338749febd28935d55b41bf0bcc79d634881195a39f6b2f767870b72514caf"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_s390x.whl", hash = "sha256:066c163aec9d3d073dc9ffe5dd3ad05069bcb03fcaab8d221290ba99f9f69ee3"}, - {file = "yarl-1.9.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:8288d7cd28f8119b07dd49b7230d6b4562f9b61ee9a4ab02221060d21136be80"}, - {file = "yarl-1.9.2-cp39-cp39-win32.whl", hash = "sha256:b124e2a6d223b65ba8768d5706d103280914d61f5cae3afbc50fc3dfcc016623"}, - {file = "yarl-1.9.2-cp39-cp39-win_amd64.whl", hash = "sha256:61016e7d582bc46a5378ffdd02cd0314fb8ba52f40f9cf4d9a5e7dbef88dee18"}, - {file = "yarl-1.9.2.tar.gz", hash = "sha256:04ab9d4b9f587c06d801c2abfe9317b77cdf996c65a90d5e84ecc45010823571"}, -] - -[package.dependencies] -idna = ">=2.0" -multidict = ">=4.0" - [[package]] name = "zipp" version = "3.17.0" @@ -2173,4 +1800,4 @@ testing = ["big-O", "jaraco.functools", "jaraco.itertools", "more-itertools", "p [metadata] lock-version = "2.0" python-versions = ">=3.8,<3.12" -content-hash = "1348ecbf65bdf92f82974849972faab79975ed916fffa6d6efcd36fe39575b87" +content-hash = "0464fc79f6bbb32dbe9e45d97c2b2ae598a3b8c65de563948a315a27e2bbd797" diff --git a/openbb_platform/extensions/charting/pyproject.toml b/openbb_platform/extensions/charting/pyproject.toml index 9097a24cb24..2fd64e27854 100644 --- a/openbb_platform/extensions/charting/pyproject.toml +++ b/openbb_platform/extensions/charting/pyproject.toml @@ -14,7 +14,6 @@ statsmodels = "^0.14.0" reportlab = "^4.0.4" pywry = "^0.6.1" svglib = "^1.5.1" -aiohttp = "^3.8.4" nbformat = "^5.9.2" pandas-ta = "^0.3.14b" openbb-core = "^1.0.0b1" diff --git a/openbb_platform/extensions/crypto/openbb_crypto/crypto_router.py b/openbb_platform/extensions/crypto/openbb_crypto/crypto_router.py index a682a80da08..a571dfe6fc9 100644 --- a/openbb_platform/extensions/crypto/openbb_crypto/crypto_router.py +++ b/openbb_platform/extensions/crypto/openbb_crypto/crypto_router.py @@ -17,11 +17,11 @@ router.include_router(price_router) @router.command(model="CryptoSearch") -def search( +async def search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Cryptocurrency Search. Search available cryptocurrency pairs.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/crypto/openbb_crypto/price/price_router.py b/openbb_platform/extensions/crypto/openbb_crypto/price/price_router.py index 1b7963d1d31..aa008726f61 100644 --- a/openbb_platform/extensions/crypto/openbb_crypto/price/price_router.py +++ b/openbb_platform/extensions/crypto/openbb_crypto/price/price_router.py @@ -17,11 +17,11 @@ router = Router(prefix="/price") # pylint: disable=unused-argument @router.command(model="CryptoHistorical") -def historical( +async def historical( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Cryptocurrency Historical Price. Cryptocurrency historical price data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/currency/openbb_currency/currency_router.py b/openbb_platform/extensions/currency/openbb_currency/currency_router.py index 96dd6c2e624..46cbbd4da8f 100644 --- a/openbb_platform/extensions/currency/openbb_currency/currency_router.py +++ b/openbb_platform/extensions/currency/openbb_currency/currency_router.py @@ -18,22 +18,22 @@ router.include_router(price_router) # pylint: disable=unused-argument @router.command(model="CurrencyPairs") -def search( +async def search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Currency Search. Search available currency pairs.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CurrencyReferenceRates") -def reference_rates( +async def reference_rates( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Current, official, currency reference rates.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/currency/openbb_currency/price/price_router.py b/openbb_platform/extensions/currency/openbb_currency/price/price_router.py index 54495d9f825..743067952de 100644 --- a/openbb_platform/extensions/currency/openbb_currency/price/price_router.py +++ b/openbb_platform/extensions/currency/openbb_currency/price/price_router.py @@ -16,11 +16,11 @@ router = Router(prefix="/price") # pylint: disable=unused-argument @router.command(model="CurrencyHistorical") -def historical( +async def historical( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Currency Historical Price. Currency historical data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/derivatives/openbb_derivatives/futures/futures_router.py b/openbb_platform/extensions/derivatives/openbb_derivatives/futures/futures_router.py index b0656016015..3bcb3c4e9cb 100644 --- a/openbb_platform/extensions/derivatives/openbb_derivatives/futures/futures_router.py +++ b/openbb_platform/extensions/derivatives/openbb_derivatives/futures/futures_router.py @@ -16,22 +16,22 @@ router = Router(prefix="/futures") # pylint: disable=unused-argument @router.command(model="FuturesHistorical") -def historical( +async def historical( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Futures Historical Price. Futures historical data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="FuturesCurve") -def curve( +async def curve( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Futures Historical Price. Futures historical data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/derivatives/openbb_derivatives/options/options_router.py b/openbb_platform/extensions/derivatives/openbb_derivatives/options/options_router.py index 2515a249997..12c7948a76c 100644 --- a/openbb_platform/extensions/derivatives/openbb_derivatives/options/options_router.py +++ b/openbb_platform/extensions/derivatives/openbb_derivatives/options/options_router.py @@ -17,22 +17,22 @@ router = Router(prefix="/options") @router.command(model="OptionsChains") -def chains( +async def chains( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the complete options chain for a ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="OptionsUnusual") -def unusual( +async def unusual( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the complete options chain for a ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/economy/openbb_economy/economy_router.py b/openbb_platform/extensions/economy/openbb_economy/economy_router.py index 5a2881c2d35..134a43f7dea 100644 --- a/openbb_platform/extensions/economy/openbb_economy/economy_router.py +++ b/openbb_platform/extensions/economy/openbb_economy/economy_router.py @@ -19,44 +19,44 @@ router.include_router(gdp_router) @router.command(model="EconomicCalendar") -def calendar( +async def calendar( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Economic Calendar.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="ConsumerPriceIndex") -def cpi( +async def cpi( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Consumer Price Index (CPI) Data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="RiskPremium") -def risk_premium( +async def risk_premium( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Market Risk Premium.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="BalanceOfPayments") -def balance_of_payments( +async def balance_of_payments( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Balance of Payments Reports.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/economy/openbb_economy/gdp/gdp_router.py b/openbb_platform/extensions/economy/openbb_economy/gdp/gdp_router.py index 55a253f134d..364bc717e42 100644 --- a/openbb_platform/extensions/economy/openbb_economy/gdp/gdp_router.py +++ b/openbb_platform/extensions/economy/openbb_economy/gdp/gdp_router.py @@ -16,33 +16,33 @@ router = Router(prefix="/gdp") @router.command(model="GdpForecast") -def forecast( +async def forecast( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Forecasted GDP Data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="GdpNominal") -def nominal( +async def nominal( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Nominal GDP Data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="GdpReal") -def real( +async def real( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Real GDP Data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/calendar/calendar_router.py b/openbb_platform/extensions/equity/openbb_equity/calendar/calendar_router.py index d3a28b7dd08..7a0532614a9 100644 --- a/openbb_platform/extensions/equity/openbb_equity/calendar/calendar_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/calendar/calendar_router.py @@ -16,44 +16,44 @@ router = Router(prefix="/calendar") @router.command(model="CalendarIpo") -def ipo( +async def ipo( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Upcoming and Historical IPO Calendar.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CalendarDividend") -def dividend( +async def dividend( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Upcoming and Historical Dividend Calendar.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CalendarSplits") -def split( +async def split( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Calendar Splits. Show Stock Split Calendar.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CalendarEarnings") -def earnings( +async def earnings( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Upcoming and Historical earnings calendar.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/compare/compare_router.py b/openbb_platform/extensions/equity/openbb_equity/compare/compare_router.py index 9235f5a788a..3834dbf7722 100644 --- a/openbb_platform/extensions/equity/openbb_equity/compare/compare_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/compare/compare_router.py @@ -16,11 +16,11 @@ router = Router(prefix="/compare") @router.command(model="EquityPeers") -def peers( +async def peers( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Peers. Company peers.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/darkpool/darkpool_router.py b/openbb_platform/extensions/equity/openbb_equity/darkpool/darkpool_router.py index d5e1e3aee3c..790143d9636 100644 --- a/openbb_platform/extensions/equity/openbb_equity/darkpool/darkpool_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/darkpool/darkpool_router.py @@ -16,7 +16,7 @@ router = Router(prefix="/darkpool") @router.command(model="OTCAggregate") -def otc( +async def otc( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -27,4 +27,4 @@ def otc( ATS and non-ATS trading data for each ATS/firm with trade reporting obligations under FINRA rules. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/discovery/discovery_router.py b/openbb_platform/extensions/equity/openbb_equity/discovery/discovery_router.py index 3db74c42d7b..0e5bd240490 100644 --- a/openbb_platform/extensions/equity/openbb_equity/discovery/discovery_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/discovery/discovery_router.py @@ -15,84 +15,84 @@ router = Router(prefix="/discovery") @router.command(model="EquityGainers") -def gainers( +async def gainers( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the top Equity gainers.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityLosers") -def losers( +async def losers( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the top Equity losers.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityActive") -def active( +async def active( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the most active Equities.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityUndervaluedLargeCaps") -def undervalued_large_caps( +async def undervalued_large_caps( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get undervalued large cap Equities.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityUndervaluedGrowth") -def undervalued_growth( +async def undervalued_growth( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get undervalued growth Equities.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityAggressiveSmallCaps") -def aggressive_small_caps( +async def aggressive_small_caps( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get aggressive small cap Equities.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="GrowthTechEquities") -def growth_tech( +async def growth_tech( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get growth tech Equities.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="TopRetail") -def top_retail( +async def top_retail( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -103,26 +103,26 @@ def top_retail( It gives a daily view into retail activity and sentiment for over 9,500 US traded stocks, ADRs, and ETPs. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="UpcomingReleaseDays") -def upcoming_release_days( +async def upcoming_release_days( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get upcoming release days.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="DiscoveryFilings") -def filings( +async def filings( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the most-recent filings submitted to the SEC.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/equity_router.py b/openbb_platform/extensions/equity/openbb_equity/equity_router.py index 911efc2aa47..ed89c5b1595 100644 --- a/openbb_platform/extensions/equity/openbb_equity/equity_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/equity_router.py @@ -36,44 +36,44 @@ router.include_router(shorts_router) @router.command(model="EquitySearch") -def search( +async def search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Search. Search for a company or stock ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityScreener") -def screener( +async def screener( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Screen. Screen for companies meeting various criteria.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityInfo") -def profile( +async def profile( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Info. Get general price and performance metrics of a stock.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="MarketSnapshots") -def market_snapshots( +async def market_snapshots( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get a current, complete, market snapshot.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/estimates/estimates_router.py b/openbb_platform/extensions/equity/openbb_equity/estimates/estimates_router.py index eda8b7a08d8..1c679e1bce2 100644 --- a/openbb_platform/extensions/equity/openbb_equity/estimates/estimates_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/estimates/estimates_router.py @@ -16,33 +16,33 @@ router = Router(prefix="/estimates") @router.command(model="PriceTarget") -def price_target( +async def price_target( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Price Target. Price target data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="AnalystEstimates") -def historical( +async def historical( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Analyst Estimates. Analyst stock recommendations.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="PriceTargetConsensus") -def consensus( +async def consensus( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Price Target Consensus. Price target consensus data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/fundamental/fundamental_router.py b/openbb_platform/extensions/equity/openbb_equity/fundamental/fundamental_router.py index beea5a9a99b..9835b1debbd 100644 --- a/openbb_platform/extensions/equity/openbb_equity/fundamental/fundamental_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/fundamental/fundamental_router.py @@ -16,253 +16,253 @@ router = Router(prefix="/fundamental") @router.command(model="EquityValuationMultiples") -def multiples( +async def multiples( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Valuation Multiples. Valuation multiples for a stock ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="BalanceSheet") -def balance( +async def balance( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Balance Sheet. Balance sheet statement.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="BalanceSheetGrowth") -def balance_growth( +async def balance_growth( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Balance Sheet Statement Growth. Information about the growth of the company balance sheet.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CashFlowStatement") -def cash( +async def cash( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Cash Flow Statement. Information about the cash flow statement.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CashFlowStatementGrowth") -def cash_growth( +async def cash_growth( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Cash Flow Statement Growth. Information about the growth of the company cash flow statement.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="HistoricalDividends") -def dividends( +async def dividends( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Dividends. Historical dividends data for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="HistoricalEps") -def historical_eps( +async def historical_eps( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical earnings-per-share for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="HistoricalEmployees") -def employee_count( +async def employee_count( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Employees. Historical number of employees.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SearchFinancialAttributes") -def search_financial_attributes( +async def search_financial_attributes( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Search financial attributes for financial statements.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="FinancialAttributes") -def financial_attributes( +async def financial_attributes( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Fetch the value of financial attributes for a selected company and fiscal period.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="IncomeStatement") -def income( +async def income( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Income Statement. Report on a company's financial performance.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="IncomeStatementGrowth") -def income_growth( +async def income_growth( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Income Statement Growth. Information about the growth of the company income statement.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="KeyMetrics") -def metrics( +async def metrics( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Key Metrics. Key metrics for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="KeyExecutives") -def management( +async def management( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Key Executives. Key executives for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="ExecutiveCompensation") -def management_compensation( +async def management_compensation( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get Executive Compensation. Information about the executive compensation for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CompanyOverview") -def overview( +async def overview( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Company Overview. General information about a company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="FinancialRatios") -def ratios( +async def ratios( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Extensive set of ratios over time. Financial ratios for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="RevenueGeographic") -def revenue_per_geography( +async def revenue_per_geography( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Revenue Geographic. Geographic revenue data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="RevenueBusinessLine") -def revenue_per_segment( +async def revenue_per_segment( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Revenue Business Line. Business line revenue data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CompanyFilings") -def filings( +async def filings( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Company Filings. Company filings data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="HistoricalSplits") -def historical_splits( +async def historical_splits( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Splits. Historical splits data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EarningsCallTranscript") -def transcript( +async def transcript( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Earnings Call Transcript. Earnings call transcript for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="TrailingDividendYield") -def trailing_dividend_yield( +async def trailing_dividend_yield( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Trailing 1yr dividend yield.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/ownership/ownership_router.py b/openbb_platform/extensions/equity/openbb_equity/ownership/ownership_router.py index 369b9908909..77768c51115 100644 --- a/openbb_platform/extensions/equity/openbb_equity/ownership/ownership_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/ownership/ownership_router.py @@ -17,44 +17,44 @@ router = Router(prefix="/ownership") @router.command(model="EquityOwnership") -def major_holders( +async def major_holders( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Ownership. Information about the company ownership.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="InstitutionalOwnership") -def institutional( +async def institutional( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Institutional Ownership. Institutional ownership data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="InsiderTrading") -def insider_trading( +async def insider_trading( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Insider Trading. Information about insider trading.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="ShareStatistics") -def share_statistics( +async def share_statistics( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Share Statistics. Share statistics for a given company.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/price/price_router.py b/openbb_platform/extensions/equity/openbb_equity/price/price_router.py index 7b308f0e1ed..879a342a113 100644 --- a/openbb_platform/extensions/equity/openbb_equity/price/price_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/price/price_router.py @@ -17,44 +17,44 @@ router = Router(prefix="/price") @router.command(model="EquityQuote") -def quote( +async def quote( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Quote. Load stock data for a specific ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityNBBO") -def nbbo( +async def nbbo( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity NBBO. Load National Best Bid and Offer for a specific equity.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityHistorical") -def historical( +async def historical( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Equity Historical price. Load stock data for a specific ticker.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="PricePerformance") -def performance( +async def performance( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Price performance as a return, over different periods.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/equity/openbb_equity/shorts/shorts_router.py b/openbb_platform/extensions/equity/openbb_equity/shorts/shorts_router.py index da418d6c2c3..ad912118270 100644 --- a/openbb_platform/extensions/equity/openbb_equity/shorts/shorts_router.py +++ b/openbb_platform/extensions/equity/openbb_equity/shorts/shorts_router.py @@ -16,33 +16,33 @@ router = Router(prefix="/shorts") @router.command(model="EquityFTD") -def fails_to_deliver( +async def fails_to_deliver( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get reported Fail-to-deliver (FTD) data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="ShortVolume") -def short_volume( +async def short_volume( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get reported Fail-to-deliver (FTD) data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EquityShortInterest") -def short_interest( +async def short_interest( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get reported Short Volume and Days to Cover data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/etf/openbb_etf/discovery/discovery_router.py b/openbb_platform/extensions/etf/openbb_etf/discovery/discovery_router.py index 88e34364515..cb528731f0a 100644 --- a/openbb_platform/extensions/etf/openbb_etf/discovery/discovery_router.py +++ b/openbb_platform/extensions/etf/openbb_etf/discovery/discovery_router.py @@ -15,34 +15,34 @@ router = Router(prefix="/discovery") # pylint: disable=unused-argument -@router.command(model="ETFGainers") -def gainers( +@router.command(model="ETFGainers", operation_id="etf_gainers") +async def gainers( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the top ETF gainers.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) -@router.command(model="ETFLosers") -def losers( +@router.command(model="ETFLosers", operation_id="etf_losers") +async def losers( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the top ETF losers.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) -@router.command(model="ETFActive") -def active( +@router.command(model="ETFActive", operation_id="etf_active") +async def active( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the most active ETFs.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/etf/openbb_etf/etf_router.py b/openbb_platform/extensions/etf/openbb_etf/etf_router.py index 640c9ca7bef..6747cc3b59c 100644 --- a/openbb_platform/extensions/etf/openbb_etf/etf_router.py +++ b/openbb_platform/extensions/etf/openbb_etf/etf_router.py @@ -20,7 +20,7 @@ router.include_router(discovery_router) @router.command(model="EtfSearch") -def search( +async def search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -30,92 +30,92 @@ def search( An empty query returns the full list of ETFs from the provider. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) -@router.command(model="EtfHistorical") -def historical( +@router.command(model="EtfHistorical", operation_id="etf_historical") +async def historical( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """ETF Historical Market Price.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EtfInfo") -def info( +async def info( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """ETF Information Overview.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EtfSectors") -def sectors( +async def sectors( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """ETF Sector weighting.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EtfCountries") -def countries( +async def countries( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """ETF Country weighting.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="PricePerformance") -def price_performance( +async def price_performance( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Price performance as a return, over different periods.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EtfHoldings") -def holdings( +async def holdings( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the holdings for an individual ETF.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EtfHoldingsDate") -def holdings_date( +async def holdings_date( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the holdings filing date for an individual ETF.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EtfHoldingsPerformance") -def holdings_performance( +async def holdings_performance( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the ETF holdings performance.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/fixedincome/openbb_fixedincome/corporate/corporate_router.py b/openbb_platform/extensions/fixedincome/openbb_fixedincome/corporate/corporate_router.py index 40fd674e84f..7c7b1ef53aa 100644 --- a/openbb_platform/extensions/fixedincome/openbb_fixedincome/corporate/corporate_router.py +++ b/openbb_platform/extensions/fixedincome/openbb_fixedincome/corporate/corporate_router.py @@ -16,7 +16,7 @@ router = Router(prefix="/corporate") @router.command(model="ICEBofA") -def ice_bofa( +async def ice_bofa( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -30,11 +30,11 @@ def ice_bofa( remaining term to final maturity as of the rebalance date, a fixed coupon schedule and a minimum amount outstanding of $250 million. The ICE BofA US Corporate Index is a component of the US Corporate Master Index. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="MoodyCorporateBondIndex") -def moody( +async def moody( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -47,11 +47,11 @@ def moody( These corporate bonds often are used in macroeconomics as an alternative to the federal ten-year Treasury Bill as an indicator of the interest rate. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="HighQualityMarketCorporateBond") -def hqm( +async def hqm( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -64,11 +64,11 @@ def hqm( These terms are adjustment factors that blend AAA, AA, and A bonds into a single HQM yield curve that is the market-weighted average (MWA) quality of high quality bonds. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SpotRate") -def spot_rates( +async def spot_rates( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -81,11 +81,11 @@ def spot_rates( Because each spot rate pertains to a single cashflow, it is the relevant interest rate concept for discounting a pension liability at the same maturity. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CommercialPaper") -def commercial_paper( +async def commercial_paper( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -98,4 +98,4 @@ def commercial_paper( Many companies use CP to raise cash needed for current transactions, and many find it to be a lower-cost alternative to bank loans. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/fixedincome/openbb_fixedincome/fixedincome_router.py b/openbb_platform/extensions/fixedincome/openbb_fixedincome/fixedincome_router.py index 1b391f1cc9f..b3176a1fbac 100644 --- a/openbb_platform/extensions/fixedincome/openbb_fixedincome/fixedincome_router.py +++ b/openbb_platform/extensions/fixedincome/openbb_fixedincome/fixedincome_router.py @@ -25,7 +25,7 @@ router.include_router(corporate_router) @router.command(model="SOFR") -def sofr( +async def sofr( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -36,4 +36,4 @@ def sofr( The Secured Overnight Financing Rate (SOFR) is a broad measure of the cost of borrowing cash overnight collateralizing by Treasury securities. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/fixedincome/openbb_fixedincome/government/government_router.py b/openbb_platform/extensions/fixedincome/openbb_fixedincome/government/government_router.py index c898e289ec7..9eb927b5ecc 100644 --- a/openbb_platform/extensions/fixedincome/openbb_fixedincome/government/government_router.py +++ b/openbb_platform/extensions/fixedincome/openbb_fixedincome/government/government_router.py @@ -16,18 +16,18 @@ router = Router(prefix="/government") @router.command(model="USYieldCurve") -def us_yield_curve( +async def us_yield_curve( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: # type: ignore """US Yield Curve. Get United States yield curve.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EUYieldCurve") -def eu_yield_curve( +async def eu_yield_curve( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -53,26 +53,26 @@ def eu_yield_curve( have the same near-term expected return (as the nominally riskless short-term bond) because the return-seeking activity of risk-neutral traders removes all expected return differentials across bonds. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="TreasuryRates") -def treasury_rates( +async def treasury_rates( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Government Treasury Rates.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="TreasuryAuctions") -def treasury_auctions( +async def treasury_auctions( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Government Treasury Auctions.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/fixedincome/openbb_fixedincome/rate/rate_router.py b/openbb_platform/extensions/fixedincome/openbb_fixedincome/rate/rate_router.py index c8e04b09917..f48c287276e 100644 --- a/openbb_platform/extensions/fixedincome/openbb_fixedincome/rate/rate_router.py +++ b/openbb_platform/extensions/fixedincome/openbb_fixedincome/rate/rate_router.py @@ -16,7 +16,7 @@ router = Router(prefix="/rate") @router.command(model="AMERIBOR") -def ameribor( +async def ameribor( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -28,11 +28,11 @@ def ameribor( short-term interbank borrowing. This rate is based on transactions in overnight unsecured loans conducted on the American Financial Exchange (AFX). """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SONIA") -def sonia( +async def sonia( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -44,11 +44,11 @@ def sonia( transactions and reflects the average of the interest rates that banks pay to borrow sterling overnight from other financial institutions and other institutional investors. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="IORB") -def iorb( +async def iorb( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -60,11 +60,11 @@ def iorb( domestic banks to borrow money. The rates central banks charge are set to stabilize the economy. In the United States, the Federal Reserve System's Board of Governors set the bank rate, also known as the discount rate. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="FEDFUNDS") -def effr( +async def effr( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -76,11 +76,11 @@ def effr( domestic banks to borrow money. The rates central banks charge are set to stabilize the economy. In the United States, the Federal Reserve System's Board of Governors set the bank rate, also known as the discount rate. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="PROJECTIONS") -def effr_forecast( +async def effr_forecast( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -93,11 +93,11 @@ def effr_forecast( appropriate target level for the federal funds rate at the end of the specified calendar year or over the longer run. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="ESTR") -def estr( +async def estr( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -110,11 +110,11 @@ def estr( the previous TARGET2 business day (the reporting date “T”) with a maturity date of T+1 which are deemed to have been executed at arm’s length and thus reflect market rates in an unbiased way. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EuropeanCentralBankInterestRates") -def ecb( +async def ecb( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -129,11 +129,11 @@ def ecb( - The rate on the deposit facility, which banks may use to make overnight deposits with the Eurosystem. - The rate on the marginal lending facility, which offers overnight credit to banks from the Eurosystem. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="DiscountWindowPrimaryCreditRate") -def dpcredit( +async def dpcredit( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -146,4 +146,4 @@ def dpcredit( In the United States, the Federal Reserve System's Board of Governors set the bank rate, also known as the discount rate. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/fixedincome/openbb_fixedincome/spreads/spreads_router.py b/openbb_platform/extensions/fixedincome/openbb_fixedincome/spreads/spreads_router.py index a05101e0a7e..ce0e85e63a7 100644 --- a/openbb_platform/extensions/fixedincome/openbb_fixedincome/spreads/spreads_router.py +++ b/openbb_platform/extensions/fixedincome/openbb_fixedincome/spreads/spreads_router.py @@ -16,7 +16,7 @@ router = Router(prefix="/spreads") @router.command(model="TreasuryConstantMaturity") -def tmc( +async def tmc( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -29,11 +29,11 @@ def tmc( Treasuries. The value is obtained by the U.S. Treasury on a daily basis through interpolation of the Treasury yield curve which, in turn, is based on closing bid-yields of actively-traded Treasury securities. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SelectedTreasuryConstantMaturity") -def tmc_effr( +async def tmc_effr( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -46,11 +46,11 @@ def tmc_effr( Treasuries. The value is obtained by the U.S. Treasury on a daily basis through interpolation of the Treasury yield curve which, in turn, is based on closing bid-yields of actively-traded Treasury securities. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SelectedTreasuryBill") -def treasury_effr( +async def treasury_effr( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -64,4 +64,4 @@ def treasury_effr( The value is obtained by the U.S. Treasury on a daily basis through interpolation of the Treasury yield curve which, in turn, is based on closing bid-yields of actively-traded Treasury securities. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/index/openbb_index/index_router.py b/openbb_platform/extensions/index/openbb_index/index_router.py index 9d802c69dbb..83525549744 100644 --- a/openbb_platform/extensions/index/openbb_index/index_router.py +++ b/openbb_platform/extensions/index/openbb_index/index_router.py @@ -16,99 +16,99 @@ router = Router(prefix="") @router.command(model="MarketIndices") -def market( +async def market( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Market Indices.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EuropeanIndices") -def european( +async def european( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical European Indices.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="FredIndices") -def fred( +async def fred( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Historical Fred Indices. Close values for selected Fred indices.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="IndexConstituents") -def constituents( +async def constituents( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Index Constituents. Constituents of an index.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="EuropeanIndexConstituents") -def european_constituents( +async def european_constituents( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """European Index Constituents. Constituents of select european indices.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="IndexSnapshots") -def snapshots( +async def snapshots( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Index Snapshots. Current levels for all indices from a provider.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="AvailableIndices") -def available( +async def available( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Available Indices. Available indices for a given provider.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="IndexSearch") -def search( +async def search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Index Search. Search for indices.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SP500Multiples") -def sp500_multiples( +async def sp500_multiples( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """S&P 500 Multiples. Historical S&P 500 multiples and Shiller PE ratios.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/news/openbb_news/news_router.py b/openbb_platform/extensions/news/openbb_news/news_router.py index f21eabc7dc7..742b922a383 100644 --- a/openbb_platform/extensions/news/openbb_news/news_router.py +++ b/openbb_platform/extensions/news/openbb_news/news_router.py @@ -16,22 +16,22 @@ router = Router(prefix="") @router.command(model="WorldNews") -def world( +async def world( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """World News. Global news data.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CompanyNews") -def company( +async def company( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Company News. Get news for one or more companies.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py b/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py index c30f9bf92e6..cc0d7f3f706 100644 --- a/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py +++ b/openbb_platform/extensions/quantitative/openbb_quantitative/quantitative_router.py @@ -76,7 +76,7 @@ def normality(data: List[Data], target: str) -> OBBject[NormalityModel]: @router.command(methods=["POST"]) def capm(data: List[Data], target: str) -> OBBject[CAPMModel]: """Get Capital Asset Pricing Model.""" - import statsmodels.api as sm # pylint: disable=import-outside-toplevel + import statsmodels.api as sm # pylint: disable=import-outside-toplevel # type: ignore df = basemodel_to_df(data) @@ -173,7 +173,7 @@ def kurtosis(data: List[Data], target: str, window: PositiveInt) -> OBBject[List OBBject[List[Data]] Kurtosis. """ - import pandas_ta as ta # pylint: disable=import-outside-toplevel + import pandas_ta as ta # pylint: disable=import-outside-toplevel # type: ignore df = basemodel_to_df(data) series_target = get_target_column(df, target) @@ -211,7 +211,8 @@ def unitroot_test( OBBject[UnitRootModel] Unit root tests summary. """ - from statsmodels.tsa import stattools # pylint: disable=import-outside-toplevel + # pylint: disable=import-outside-toplevel + from statsmodels.tsa import stattools # type: ignore df = basemodel_to_df(data) series_target = get_target_column(df, target) @@ -336,7 +337,7 @@ def skewness(data: List[Data], target: str, window: PositiveInt) -> OBBject[List OBBject[List[Data]] Skewness. """ - import pandas_ta as ta # pylint: disable=import-outside-toplevel + import pandas_ta as ta # pylint: disable=import-outside-toplevel # type: ignore df = basemodel_to_df(data) series_target = get_target_column(df, target) @@ -364,14 +365,13 @@ def quantile( window : PositiveInt Window size. quantile_pct : NonNegativeFloat, optional - Quantile percentage, by default 0.5 Returns ------- OBBject[List[Data]] Quantile. """ - import pandas_ta as ta # pylint: disable=import-outside-toplevel + import pandas_ta as ta # pylint: disable=import-outside-toplevel # type: ignore df = basemodel_to_df(data) series_target = get_target_column(df, target) diff --git a/openbb_platform/extensions/regulators/openbb_regulators/cftc/cftc_router.py b/openbb_platform/extensions/regulators/openbb_regulators/cftc/cftc_router.py index 28459eae795..ba36fad7ef7 100644 --- a/openbb_platform/extensions/regulators/openbb_regulators/cftc/cftc_router.py +++ b/openbb_platform/extensions/regulators/openbb_regulators/cftc/cftc_router.py @@ -17,7 +17,7 @@ router = Router(prefix="/cftc") @router.command(model="COTSearch") -def cot_search( +async def cot_search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, @@ -27,15 +27,15 @@ def cot_search( Fuzzy search and list of curated Commitment of Traders Reports series information. """ - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="COT") -def cot( +async def cot( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Commitment of Traders Reports. Lookup Commitment of Traders Reports by series ID.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/extensions/regulators/openbb_regulators/sec/sec_router.py b/openbb_platform/extensions/regulators/openbb_regulators/sec/sec_router.py index cd336345bcc..33f5ea0c366 100644 --- a/openbb_platform/extensions/regulators/openbb_regulators/sec/sec_router.py +++ b/openbb_platform/extensions/regulators/openbb_regulators/sec/sec_router.py @@ -16,77 +16,77 @@ router = Router(prefix="/sec") @router.command(model="Filings") -def filings( +async def filings( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Look up filings to the SEC by ticker symbol or CIK.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="CikMap") -def cik_map( +async def cik_map( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the CIK number corresponding to a ticker symbol.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="InstitutionsSearch") -def institutions_search( +async def institutions_search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Look up institutions regulated by the SEC.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SchemaFiles") -def schema_files( +async def schema_files( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get lists of SEC XML schema files by year.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SymbolMap") -def symbol_map( +async def symbol_map( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Get the ticker symbol corresponding to a company's CIK.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="RssLitigation") -def rss_litigation( +async def rss_litigation( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """The RSS feed provides links to litigation releases concerning civil lawsuits brought by the Commission in federal court.""" # noqa: E501 - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) @router.command(model="SicSearch") -def sic_search( +async def sic_search( cc: CommandContext, provider_choices: ProviderChoices, standard_params: StandardParams, extra_params: ExtraParams, ) -> OBBject[BaseModel]: """Fuzzy search for Industry Titles, Reporting Office, and SIC Codes.""" - return OBBject(results=Query(**locals()).execute()) + return await OBBject.from_query(Query(**locals())) diff --git a/openbb_platform/poetry.lock b/openbb_platform/poetry.lock index 13fbe6c42cc..531283b5876 100644 --- a/openbb_platform/poetry.lock +++ b/openbb_platform/poetry.lock @@ -2469,7 +2469,6 @@ files = [ {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:69b023b2b4daa7548bcfbd4aa3da05b3a74b772db9e23b982788168117739938"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:81e0b275a9ecc9c0c0c07b4b90ba548307583c125f54d5b6946cfee6360c733d"}, {file = "PyYAML-6.0.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:ba336e390cd8e4d1739f42dfe9bb83a3cc2e80f567d8805e11b46f4a943f5515"}, - {file = "PyYAML-6.0.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:326c013efe8048858a6d312ddd31d56e468118ad4cdeda36c719bf5bb6192290"}, {file = "PyYAML-6.0.1-cp310-cp310-win32.whl", hash = "sha256:bd4af7373a854424dabd882decdc5579653d7868b8fb26dc7d0e99f823aa5924"}, {file = "PyYAML-6.0.1-cp310-cp310-win_amd64.whl", hash = "sha256:fd1592b3fdf65fff2ad0004b5e363300ef59ced41c2e6b3a99d4089fa8c5435d"}, {file = "PyYAML-6.0.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:6965a7bc3cf88e5a1c3bd2e0b5c22f8d677dc88a455344035f03399034eb3007"}, @@ -2477,15 +2476,8 @@ files = [ {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:42f8152b8dbc4fe7d96729ec2b99c7097d656dc1213a3229ca5383f973a5ed6d"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:062582fca9fabdd2c8b54a3ef1c978d786e0f6b3a1510e0ac93ef59e0ddae2bc"}, {file = "PyYAML-6.0.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d2b04aac4d386b172d5b9692e2d2da8de7bfb6c387fa4f801fbf6fb2e6ba4673"}, - {file = "PyYAML-6.0.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:e7d73685e87afe9f3b36c799222440d6cf362062f78be1013661b00c5c6f678b"}, {file = "PyYAML-6.0.1-cp311-cp311-win32.whl", hash = "sha256:1635fd110e8d85d55237ab316b5b011de701ea0f29d07611174a1b42f1444741"}, {file = "PyYAML-6.0.1-cp311-cp311-win_amd64.whl", hash = "sha256:bf07ee2fef7014951eeb99f56f39c9bb4af143d8aa3c21b1677805985307da34"}, - {file = "PyYAML-6.0.1-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:855fb52b0dc35af121542a76b9a84f8d1cd886ea97c84703eaa6d88e37a2ad28"}, - {file = "PyYAML-6.0.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:40df9b996c2b73138957fe23a16a4f0ba614f4c0efce1e9406a184b6d07fa3a9"}, - {file = "PyYAML-6.0.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6c22bec3fbe2524cde73d7ada88f6566758a8f7227bfbf93a408a9d86bcc12a0"}, - {file = "PyYAML-6.0.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:8d4e9c88387b0f5c7d5f281e55304de64cf7f9c0021a3525bd3b1c542da3b0e4"}, - {file = "PyYAML-6.0.1-cp312-cp312-win32.whl", hash = "sha256:d483d2cdf104e7c9fa60c544d92981f12ad66a457afae824d146093b8c294c54"}, - {file = "PyYAML-6.0.1-cp312-cp312-win_amd64.whl", hash = "sha256:0d3304d8c0adc42be59c5f8a4d9e3d7379e6955ad754aa9d6ab7a398b59dd1df"}, {file = "PyYAML-6.0.1-cp36-cp36m-macosx_10_9_x86_64.whl", hash = "sha256:50550eb667afee136e9a77d6dc71ae76a44df8b3e51e41b77f6de2932bfe0f47"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1fe35611261b29bd1de0070f0b2f47cb6ff71fa6595c077e42bd0c419fa27b98"}, {file = "PyYAML-6.0.1-cp36-cp36m-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:704219a11b772aea0d8ecd7058d0082713c3562b4e271b849ad7dc4a5c90c13c"}, @@ -2502,7 +2494,6 @@ files = [ {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:a0cd17c15d3bb3fa06978b4e8958dcdc6e0174ccea823003a106c7d4d7899ac5"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:28c119d996beec18c05208a8bd78cbe4007878c6dd15091efb73a30e90539696"}, {file = "PyYAML-6.0.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7e07cbde391ba96ab58e532ff4803f79c4129397514e1413a7dc761ccd755735"}, - {file = "PyYAML-6.0.1-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:49a183be227561de579b4a36efbb21b3eab9651dd81b1858589f796549873dd6"}, {file = "PyYAML-6.0.1-cp38-cp38-win32.whl", hash = "sha256:184c5108a2aca3c5b3d3bf9395d50893a7ab82a38004c8f61c258d4428e80206"}, {file = "PyYAML-6.0.1-cp38-cp38-win_amd64.whl", hash = "sha256:1e2722cc9fbb45d9b87631ac70924c11d3a401b2d7f410cc0e3bbf249f2dca62"}, {file = "PyYAML-6.0.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:9eb6caa9a297fc2c2fb8862bc5370d0303ddba53ba97e71f08023b6cd73d16a8"}, @@ -2510,7 +2501,6 @@ files = [ {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5773183b6446b2c99bb77e77595dd486303b4faab2b086e7b17bc6bef28865f6"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:b786eecbdf8499b9ca1d697215862083bd6d2a99965554781d0d8d1ad31e13a0"}, {file = "PyYAML-6.0.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bc1bf2925a1ecd43da378f4db9e4f799775d6367bdb94671027b73b393a7c42c"}, - {file = "PyYAML-6.0.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:04ac92ad1925b2cff1db0cfebffb6ffc43457495c9b3c39d3fcae417d7125dc5"}, {file = "PyYAML-6.0.1-cp39-cp39-win32.whl", hash = "sha256:faca3bdcf85b2fc05d06ff3fbc1f83e1391b3e724afa3feba7d13eeab355484c"}, {file = "PyYAML-6.0.1-cp39-cp39-win_amd64.whl", hash = "sha256:510c9deebc5c0225e8c96813043e62b680ba2f9c50a08d3724c7f28a747d1486"}, {file = "PyYAML-6.0.1.tar.gz", hash = "sha256:bfdf460b1736c775f2ba9f6a92bca30bc2095067b8a9d77876d1fad6cc3b4a43"}, @@ -2981,20 +2971,12 @@ files = [ {file = "statsmodels-0.14.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:5a6a0a1a06ff79be8aa89c8494b33903442859add133f0dda1daf37c3c71682e"}, {file = "statsmodels-0.14.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:77b3cd3a5268ef966a0a08582c591bd29c09c88b4566c892a7c087935234f285"}, {file = "statsmodels-0.14.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9c64ebe9cf376cba0c31aed138e15ed179a1d128612dd241cdf299d159e5e882"}, - {file = "statsmodels-0.14.0-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:229b2f676b4a45cb62d132a105c9c06ca8a09ffba060abe34935391eb5d9ba87"}, {file = "statsmodels-0.14.0-cp310-cp310-win_amd64.whl", hash = "sha256:fb471f757fc45102a87e5d86e87dc2c8c78b34ad4f203679a46520f1d863b9da"}, {file = "statsmodels-0.14.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:582f9e41092e342aaa04920d17cc3f97240e3ee198672f194719b5a3d08657d6"}, {file = "statsmodels-0.14.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:7ebe885ccaa64b4bc5ad49ac781c246e7a594b491f08ab4cfd5aa456c363a6f6"}, {file = "statsmodels-0.14.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:b587ee5d23369a0e881da6e37f78371dce4238cf7638a455db4b633a1a1c62d6"}, {file = "statsmodels-0.14.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0ef7fa4813c7a73b0d8a0c830250f021c102c71c95e9fe0d6877bcfb56d38b8c"}, - {file = "statsmodels-0.14.0-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:afe80544ef46730ea1b11cc655da27038bbaa7159dc5af4bc35bbc32982262f2"}, {file = "statsmodels-0.14.0-cp311-cp311-win_amd64.whl", hash = "sha256:a6ad7b8aadccd4e4dd7f315a07bef1bca41d194eeaf4ec600d20dea02d242fce"}, - {file = "statsmodels-0.14.0-cp312-cp312-macosx_10_9_x86_64.whl", hash = "sha256:0eea4a0b761aebf0c355b726ac5616b9a8b618bd6e81a96b9f998a61f4fd7484"}, - {file = "statsmodels-0.14.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:4c815ce7a699047727c65a7c179bff4031cff9ae90c78ca730cfd5200eb025dd"}, - {file = "statsmodels-0.14.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:575f61337c8e406ae5fa074d34bc6eb77b5a57c544b2d4ee9bc3da6a0a084cf1"}, - {file = "statsmodels-0.14.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:8be53cdeb82f49c4cb0fda6d7eeeb2d67dbd50179b3e1033510e061863720d93"}, - {file = "statsmodels-0.14.0-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:6f7d762df4e04d1dde8127d07e91aff230eae643aa7078543e60e83e7d5b40db"}, - {file = "statsmodels-0.14.0-cp312-cp312-win_amd64.whl", hash = "sha256:fc2c7931008a911e3060c77ea8933f63f7367c0f3af04f82db3a04808ad2cd2c"}, {file = "statsmodels-0.14.0-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:3757542c95247e4ab025291a740efa5da91dc11a05990c033d40fce31c450dc9"}, {file = "statsmodels-0.14.0-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:de489e3ed315bdba55c9d1554a2e89faa65d212e365ab81bc323fa52681fc60e"}, {file = "statsmodels-0.14.0-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:76e290f4718177bffa8823a780f3b882d56dd64ad1c18cfb4bc8b5558f3f5757"}, diff --git a/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py b/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py index 8b44e66fd16..2061aedf79a 100644 --- a/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py +++ b/openbb_platform/providers/benzinga/openbb_benzinga/models/company_news.py @@ -53,14 +53,10 @@ class BenzingaCompanyNewsQueryParams(CompanyNewsQueryParams): description="Number of seconds since the news was published.", ) - sort: Optional[ - Literal[ - "id", - "created", - "updated", - ] - ] = Field(default="created", description="Key to sort the news by.") - order: Optional[Literal["asc", "desc"]] = Field( + sort: Literal["id", "created", "updated"] = Field( + default="created", description="Key to sort the news by." + ) + order: Literal["asc", "desc"] = Field( default="desc", description="Order to sort the news by." ) isin: Optional[str] = Field( diff --git a/openbb_platform/providers/benzinga/openbb_benzinga/models/world_news.py b/openbb_platform/providers/benzinga/openbb_benzinga/models/world_news.py index f33bcc8c069..5bafd9f33dd 100644 --- a/openbb_platform/providers/benzinga/openbb_benzinga/models/world_news.py +++ b/openbb_platform/providers/benzinga/openbb_benzinga/models/world_news.py @@ -52,14 +52,10 @@ class BenzingaWorldNewsQueryParams(WorldNewsQueryParams): default=None, description="Number of seconds since the news was published.", ) - sort: Optional[ - Literal[ - "id", - "created", - "updated", - ] - ] = Field(default="created", description="Key to sort the news by.") - order: Optional[Literal["asc", "desc"]] = Field( + sort: Literal["id", "created", "updated"] = Field( + default="created", description="Key to sort the news by." + ) + order: Literal["asc", "desc"] = Field( default="desc", description="Order to sort the news by." ) isin: Optional[str] = Field( diff --git a/openbb_platform/providers/cboe/openbb_cboe/models/equity_historical.py b/openbb_platform/providers/cboe/openbb_cboe/models/equity_historical.py index 3e665cf4511..08bb1fa11b2 100644 --- a/openbb_platform/providers/cboe/openbb_cboe/models/equity_historical.py +++ b/openbb_platform/providers/cboe/openbb_cboe/models/equity_historical.py @@ -27,9 +27,8 @@ class CboeEquityHistoricalQueryParams(EquityHistoricalQueryParams): Source: https://www.cboe.com/ """ - interval: Optional[Literal["1m", "1d"]] = Field( - default="1d", - description=QUERY_DESCRIPTIONS.get("interval", ""), + interval: Literal["1m", "1d"] = Field( + default="1d", description=QUERY_DESCRIPTIONS.get("interval", "") ) diff --git a/openbb_platform/providers/cboe/openbb_cboe/models/european_indices.py b/openbb_platform/providers/cboe/openbb_cboe/models/european_indices.py index 8150a199209..d06a05d0d3e 100644 --- a/openbb_platform/providers/cboe/openbb_cboe/models/european_indices.py +++ b/openbb_platform/providers/cboe/openbb_cboe/models/european_indices.py @@ -21,10 +21,7 @@ class CboeEuropeanIndicesQueryParams(EuropeanIndicesQueryParams): Source: https://www.cboe.com/europe/indices/ """ - interval: Optional[Literal["1d", "1m"]] = Field( - description="Data granularity.", - default="1d", - ) + interval: Literal["1d", "1m"] = Field(description="Data granularity.", default="1d") class CboeEuropeanIndicesData(EuropeanIndicesData): diff --git a/openbb_platform/providers/cboe/openbb_cboe/models/market_indices.py b/openbb_platform/providers/cboe/openbb_cboe/models/market_indices.py index 1adf41327d3..1c029976637 100644 --- a/openbb_platform/providers/cboe/openbb_cboe/models/market_indices.py +++ b/openbb_platform/providers/cboe/openbb_cboe/models/market_indices.py @@ -24,7 +24,7 @@ class CboeMarketIndicesQueryParams(MarketIndicesQueryParams): Source: https://www.cboe.com/ """ - interval: Optional[Literal["1d", "1m"]] = Field( + interval: Literal["1d", "1m"] = Field( description="Use interval, 1m, for intraday prices during the most recent trading period.", default="1d", ) diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/balance_sheet.py b/openbb_platform/providers/fmp/openbb_fmp/models/balance_sheet.py index bc16ed27c99..099b99de84f 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/balance_sheet.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/balance_sheet.py @@ -3,7 +3,7 @@ from typing import Any, Dict, List, Literal, Optional -from openbb_core.provider.abstract.data import StrictInt +from openbb_core.provider.abstract.data import ForceInt from openbb_core.provider.abstract.fetcher import Fetcher from openbb_core.provider.standard_models.balance_sheet import ( BalanceSheetData, @@ -54,40 +54,38 @@ class FMPBalanceSheetData(BalanceSheetData): } # Leftovers below - calendar_year: Optional[StrictInt] = Field( - default=None, description="Calendar Year" - ) + calendar_year: Optional[ForceInt] = Field(default=None, description="Calendar Year") - cash_and_short_term_investments: Optional[StrictInt] = Field( + cash_and_short_term_investments: Optional[ForceInt] = Field( default=None, description="Cash and Short Term Investments" ) - goodwill_and_intangible_assets: Optional[StrictInt] = Field( + goodwill_and_intangible_assets: Optional[ForceInt] = Field( default=None, description="Goodwill and Intangible Assets" ) - deferred_revenue_non_current: Optional[StrictInt] = Field( + deferred_revenue_non_current: Optional[ForceInt] = Field( default=None, description="Deferred Revenue Non Current" ) - total_investments: Optional[StrictInt] = Field( + total_investments: Optional[ForceInt] = Field( default=None, description="Total Investments" ) - capital_lease_obligations: Optional[StrictInt] = Field( + capital_lease_obligations: Optional[ForceInt] = Field( default=None, description="Capital Lease Obligations" ) - deferred_tax_liabilities_non_current: Optional[StrictInt] = Field( + deferred_tax_liabilities_non_current: Optional[ForceInt] = Field( default=None, description="Deferred Tax Liabilities Non Current" ) - capital_lease_obligations: Optional[StrictInt] = Field( + capital_lease_obligations: Optional[ForceInt] = Field( default=None, description="Capital lease obligations" ) - total_investments: Optional[StrictInt] = Field( + total_investments: Optional[ForceInt] = Field( default=None, description="Total investments" ) - total_debt: Optional[StrictInt] = Field(default=None, description="Total debt") - net_debt: Optional[StrictInt] = Field(default=None, description="Net debt") + total_debt: Optional[ForceInt] = Field(default=None, description="Total debt") + net_debt: Optional[ForceInt] = Field(default=None, description="Net debt") - total_debt: Optional[StrictInt] = Field(default=None, description="Total Debt") - net_debt: Optional[StrictInt] = Field(default=None, description="Net Debt") + total_debt: Optional[ForceInt] = Field(default=None, description="Total Debt") + net_debt: Optional[ForceInt] = Field(default=None, description="Net Debt") link: Optional[str] = Field(default=None, description="Link to the statement.") final_link: Optional[str] = Field( diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/cash_flow.py b/openbb_platform/providers/fmp/openbb_fmp/models/cash_flow.py index bad1b07825e..fbb4bb6ea16 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/cash_flow.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/cash_flow.py @@ -7,7 +7,7 @@ from datetime import ( ) from typing import Any, Dict, List, Literal, Optional -from openbb_core.provider.abstract.data import StrictInt +from openbb_core.provider.abstract.data import ForceInt from openbb_core.provider.abstract.fetcher import Fetcher from openbb_core.provider.standard_models.cash_flow import ( CashFlowStatementData, @@ -60,37 +60,37 @@ class FMPCashFlowStatementData(CashFlowStatementData): reported_currency: str = Field(description="Reported currency in the statement.") filling_date: dateType = Field(description="Filling date.") accepted_date: datetime = Field(description="Accepted date.") - calendar_year: Optional[StrictInt] = Field( + calendar_year: Optional[ForceInt] = Field( default=None, description="Calendar year." ) - change_in_working_capital: Optional[StrictInt] = Field( + change_in_working_capital: Optional[ForceInt] = Field( default=None, description="Change in working capital." ) - other_working_capital: Optional[StrictInt] = Field( + other_working_capital: Optional[ForceInt] = Field( default=None, description="Other working capital." ) - common_stock_issued: Optional[StrictInt] = Field( + common_stock_issued: Optional[ForceInt] = Field( default=None, description="Common stock issued." ) - effect_of_forex_changes_on_cash: Optional[StrictInt] = Field( + effect_of_forex_changes_on_cash: Optional[ForceInt] = Field( default=None, description="Effect of forex changes on cash." ) - cash_at_beginning_of_period: Optional[StrictInt] = Field( + cash_at_beginning_of_period: Optional[ForceInt] = Field( default=None, description="Cash at beginning of period." ) - cash_at_end_of_period: Optional[StrictInt] = Field( + cash_at_end_of_period: Optional[ForceInt] = Field( default=None, description="Cash, cash equivalents, and restricted cash at end of period", ) - operating_cash_flow: Optional[StrictInt] = Field( + operating_cash_flow: Optional[ForceInt] = Field( default=None, description="Operating cash flow." ) - capital_expenditure: Optional[StrictInt] = Field( + capital_expenditure: Optional[ForceInt] = Field( default=None, description="Capital expenditure." ) - free_cash_flow: Optional[StrictInt] = Field( + free_cash_flow: Optional[ForceInt] = Field( default=None, description="Free cash flow." ) diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py b/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py index 213ec2f7e16..ad07f1f7dc2 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/equity_historical.py @@ -10,7 +10,7 @@ from openbb_core.provider.standard_models.equity_historical import ( EquityHistoricalQueryParams, ) from openbb_core.provider.utils.helpers import get_querystring -from openbb_fmp.utils.helpers import get_data_many, get_interval +from openbb_fmp.utils.helpers import async_get_data_many, get_interval from pydantic import Field, NonNegativeInt @@ -80,7 +80,7 @@ class FMPEquityHistoricalFetcher( return FMPEquityHistoricalQueryParams(**transformed_params) @staticmethod - def extract_data( + async def extract_data( query: FMPEquityHistoricalQueryParams, credentials: Optional[Dict[str, str]], **kwargs: Any, @@ -99,7 +99,7 @@ class FMPEquityHistoricalFetcher( if interval == "1day": url = f"{base_url}/historical-price-full/{url_params}" - return get_data_many(url, "historical", **kwargs) + return await async_get_data_many(url, "historical", **kwargs) @staticmethod def transform_data( diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/equity_quote.py b/openbb_platform/providers/fmp/openbb_fmp/models/equity_quote.py index cf9d288825e..d1a11ecd296 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/equity_quote.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/equity_quote.py @@ -3,7 +3,7 @@ from datetime import datetime from typing import Any, Dict, List, Optional -from openbb_core.provider.abstract.data import StrictInt +from openbb_core.provider.abstract.data import ForceInt from openbb_core.provider.abstract.fetcher import Fetcher from openbb_core.provider.standard_models.equity_quote import ( EquityQuoteData, @@ -52,14 +52,14 @@ class FMPEquityQuoteData(EquityQuoteData): price_avg50: Optional[float] = Field( default=None, description="50 days average price of the equity." ) - price_avg200: Optional[StrictInt] = Field( + price_avg200: Optional[float] = Field( default=None, description="200 days average price of the equity." ) - volume: Optional[StrictInt] = Field( + volume: Optional[ForceInt] = Field( default=None, description="Volume of the equity in the current trading day.", ) - avg_volume: Optional[StrictInt] = Field( + avg_volume: Optional[ForceInt] = Field( default=None, description="Average volume of the equity in the last 10 trading days.", ) @@ -82,7 +82,7 @@ class FMPEquityQuoteData(EquityQuoteData): earnings_announcement: Optional[str] = Field( default=None, description="Earnings announcement date of the equity." ) - shares_outstanding: Optional[StrictInt] = Field( + shares_outstanding: Optional[ForceInt] = Field( default=None, description="Number of shares outstanding of the equity." ) diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/financial_ratios.py b/openbb_platform/providers/fmp/openbb_fmp/models/financial_ratios.py index 064df4afed7..9d19e89e2d4 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/financial_ratios.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/financial_ratios.py @@ -33,8 +33,10 @@ class FMPFinancialRatiosData(FinancialRatiosData): __alias_dict__ = { "net_income_per_ebt": "netIncomePerEBT", "dividend_yield": "dividendYiel", - "dividend_yield_percentage": "dividendYielPercentage", + "dividend_yield_percentage": "dividendYieldPercentage", "dividend_per_share": "dividendPerShare", + "research_and_developement_to_revenue": "researchAndDevelopementToRevenue", + "debt_to_market_cap": "debtToMarketCap", } diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py b/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py index e25edc2571d..b0bf9e1bc6a 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/insider_trading.py @@ -17,9 +17,7 @@ class FMPInsiderTradingQueryParams(InsiderTradingQueryParams): Source: https://site.financialmodelingprep.com/developer/docs/#Stock-Insider-Trading """ - __alias_dict__ = { - "transaction_type": "transactionType", - } + __alias_dict__ = {"transaction_type": "transactionType"} class FMPInsiderTradingData(InsiderTradingData): @@ -28,6 +26,7 @@ class FMPInsiderTradingData(InsiderTradingData): __alias_dict__ = { "acquisition_or_disposition": "acquistionOrDisposition", "last_number_of_13f_shares": "lastNumberOf13FShares", + "securities_owned": "securitiesOwned", } diff --git a/openbb_platform/providers/fmp/openbb_fmp/models/key_metrics.py b/openbb_platform/providers/fmp/openbb_fmp/models/key_metrics.py index f3e7b16e99a..c075010e480 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/models/key_metrics.py +++ b/openbb_platform/providers/fmp/openbb_fmp/models/key_metrics.py @@ -5,7 +5,7 @@ from datetime import datetime from itertools import repeat from typing import Any, Dict, List, Optional -from openbb_core.provider.abstract.data import StrictInt +from openbb_core.provider.abstract.data import ForceInt from openbb_core.provider.abstract.fetcher import Fetcher from openbb_core.provider.standard_models.key_metrics import ( KeyMetricsData, @@ -36,7 +36,7 @@ class FMPKeyMetricsData(KeyMetricsData): "enterprise_value_over_ebitda": "enterpriseValueOverEBITDA", } - calendar_year: Optional[StrictInt] = Field( + calendar_year: Optional[ForceInt] = Field( default=None, description="Calendar year." ) diff --git a/openbb_platform/providers/fmp/openbb_fmp/utils/helpers.py b/openbb_platform/providers/fmp/openbb_fmp/utils/helpers.py index a3b799f5630..fd3c0111133 100644 --- a/openbb_platform/providers/fmp/openbb_fmp/utils/helpers.py +++ b/openbb_platform/providers/fmp/openbb_fmp/utils/helpers.py @@ -8,7 +8,10 @@ from typing import Any, Dict, List, Literal, Optional, TypeVar, Union import requests from openbb_core.provider import helpers from openbb_core.provider.utils.errors import EmptyDataError -from openbb_core.provider.utils.helpers import get_querystring +from openbb_core.provider.utils.helpers import ( + async_make_request, + get_querystring, +) from pydantic import BaseModel from requests.exceptions import SSLError @@ -110,6 +113,35 @@ def create_url( return f"{base_url}{endpoint}?{query_string}&apikey={api_key}" +async def async_get_data_many( + url: str, sub_dict: Optional[str] = None, **kwargs: Any +) -> List[dict]: + """Get data from FMP endpoint and convert to list of schemas. + + Parameters + ---------- + url: str + The URL to get the data from. + sub_dict: Optional[str] + The sub-dictionary to use. + + Returns + ------- + List[dict] + Dictionary of data. + """ + data = await async_make_request(url, **kwargs) + + if sub_dict and isinstance(data, dict): + data = data.get(sub_dict, []) + if isinstance(data, dict): + raise ValueError("Expected list of dicts, got dict") + if len(data) == 0: + raise EmptyDataError() + + return data + + def get_data_many( url: str, sub_dict: Optional[str] = None, **kwargs: Any ) -> List[dict]: diff --git a/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_equity_historical_fetcher.yaml b/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_equity_historical_fetcher.yaml index ad8643a01af..6f5fb11921e 100644 --- a/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_equity_historical_fetcher.yaml +++ b/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_equity_historical_fetcher.yaml @@ -5,7 +5,7 @@ interactions: Accept: - '*/*' Accept-Encoding: - - gzip, deflate, br + - gzip, deflate Connection: - keep-alive method: GET @@ -13,16 +13,16 @@ interactions: response: body: string: !!binary | - H4sIAAAAAAAAA43VS0/jMBAA4Du/Isq5sWb8Dje0N4S0HFZcEIfQRrSrNkF9IYT47zim9ZjEpLnk - MOM4k8+TycdVluW7981zu86vs/zm5v4un3Wx5Wq3b7eredXFH10kyz781eUW1b7uVnPgogAsEPw9 - Pte+1o3LoQDGdYguVy9LH8U4um7fuiC3DHkIztftrj7tYEQIV4v/f6IMmpA5tuvDpotrYUvNAULm - 0Li7Drt9vXj4dc18WTUvXQaYNL3ofb2d183eJ4UGS0Ue36rXUyUg6X2q59oz3lbNodq+ZwizjIu8 - t+3fY739t9p8PxTA7+xXfM7GnaFMOkd1B2fBJA6cS2bLpDOqpLO7gQ4rMBswJdhx5sGawFw4St4L - k7PLcql4dLhnaIyLHEBDeQG66KT91tOk9VCaawZkGqRdxYR6lpZJ6c6T3r0nDYmOtsYoacapB2sC - tWAae1GS5sxGZ3tSdl9iZD9U1pfbmVs9TVglhA1D+uLPwi5qoqKCsKH6SVi5CtLCkkk6EhIGNw4u - CffXUDNzhr8TF8h0wlgxO9bJakIno56ILJNtHPVmQLZxrWdkp2kTyNpNwzSye7doSAbAEtFNuXHk - /pp4YijRC/+YGBKNpjKDs2ZjrSwnMIPfeZq0GEp3o4HqigZGal5EP7Qf3UzhXjcr+u8EaESOaNS4 - 9HARUSvGR/o5emKEHP1nBspigrL8BnbXp6vPL9ZC2+mQCAAA + H4sIAAAAAAAAA43VPU/jQBAG4J5fYbmOVzP7bTp0HUI6itM1pytMYpGcEhvlCyHEf7/1gnc29uK4 + SfHueBk/GsbvN1mWH952T+02v83yu7vHh3zRZevN4djuN8uqy/+4JMve/a87W1XHuqvmwEUBWCD4 + Z/xZ+1I37gwFMK5Dut48r32KcbptX7uQW4Y8hMtte6i/bjAixNXq3w86CfG53Z52XaiFLTUHOjk1 + 7pHT4Vivfn9bs1xXzXN3AkyaQfpY75d1c/SHQoOlDs+v1ctXgyDpZaqn2hveV82p2r9lCIuMi3xw + 7c9zvf+12X3+UQB/s6/4WEwjQ5lEjvoOyIJJHCGXzJZJZFRJZPeAJP7gbMCUYKedRzXBuXCWfBAT + tDvlUnF6oyCNcZcjaSivSBcdtb96HrUeU3PNgFADteuYVHtqmaR2oJre/YLaMqoP0tYYJc209Kgm + SAumcZASNGeW/gt7ZNdFRD9G1tfHmVs9D1glgA1Dmrce2KUmaioAG+qfgJXrIA0smUjMsgW3Dq4J + D2toljnD74kLZDphrJidGmQ1Y5BRz0SWySmORjMg27jXHtlp2gSydtswjawu3jgAlohuy00jD2vi + haHEIL5YGBKNpjaDs2ZToyxnMIO/eZ60GEt3m4H6ivZFal1g9PGJp5ni4TRHO7JHROSIRk1Lj4uI + WjE+Mc/0pYuRo+/MSFnMUJafwO73783HfyK15uCNCAAA headers: Access-Control-Allow-Credentials: - 'true' @@ -42,9 +42,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Mon, 16 Oct 2023 12:21:51 GMT - ETag: - - W/"890-71zThPvex5A4Sl4GSuy+Npc+m7c" + - Mon, 20 Nov 2023 16:20:05 GMT + Etag: + - W/"88d-adA4cXKEeZidNHszMb/I+j1svdc" Server: - nginx/1.18.0 (Ubuntu) Transfer-Encoding: diff --git a/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_insider_trading_fetcher.yaml b/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_insider_trading_fetcher.yaml index bfaf2606f80..ae3faa03391 100644 --- a/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_insider_trading_fetcher.yaml +++ b/openbb_platform/providers/fmp/tests/record/http/test_fmp_fetchers/test_fmp_insider_trading_fetcher.yaml @@ -9,27 +9,67 @@ interactions: Connection: - keep-alive method: GET - uri: https://financialmodelingprep.com/api/v4/insider-trading?apikey=MOCK_API_KEY&limit=100&page=0&symbol=AAPL&transactionType=P-Purchase + uri: https://financialmodelingprep.com/api/v4/insider-trading?apikey=MOCK_API_KEY&limit=100&page=0&symbol=AAPL response: body: string: !!binary | - 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 + /j909E4f4OYAAA== headers: Access-Control-Allow-Credentials: - 'true' @@ -49,9 +89,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 16 Nov 2023 19:47:23 GMT + - Mon, 20 Nov 2023 16:20:05 GMT ETag: - - W/"2cf3-POGuhFFFDsLUP2Mt0xcWd1R6lJk" + - W/"e6e0-WqxggactfSAHm3q18AwDkFUqhiI" Server: - nginx/1.18.0 (Ubuntu) Transfer-Encoding: @@ -75,64 +115,65 @@ interactions: Connection: - keep-alive method: GET - uri: https://financialmodelingprep.com/api/v4/insider-trading?apikey=MOCK_API_KEY&limit=100&page=1&symbol=AAPL&transactionType=P-Purchase + uri: https://financialmodelingprep.com/api/v4/insider-trading?apikey=MOCK_API_KEY&limit=100&page=1&symbol=AAPL response: body: string: !!binary | - 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 headers: Access-Control-Allow-Credentials: - 'true' @@ -152,9 +193,9 @@ interactions: Content-Type: - application/json; charset=utf-8 Date: - - Thu, 16 Nov 2023 19:47:24 GMT + - Mon, 20 Nov 2023 16:20:05 GMT ETag: - - W/"e79b-vE7DR4eHATYelBC5a3zT67JYAqU" + - W/"e59a-qcQrGVt0VXwnUpk8Sd48LPNxD9o" Server: - nginx/1.18.0 (Ubuntu) Transfer-Encoding: diff --git a/openbb_platform/providers/intrinio/openbb_intrinio/models/equity_historical.py b/openbb_platform/providers/intrinio/openbb_intrinio/models/equity_historical.py index 4589a87a1a0..e286867d2bc 100644 --- a/openbb_platform/providers/intrinio/openbb_intrinio/models/equity_historical.py +++ b/openbb_platform/providers/intrinio/openbb_intrinio/models/equity_historical.py @@ -39,7 +39,7 @@ class IntrinioEquityHistoricalQueryParams(EquityHistoricalQueryParams): default="UTC", description="Timezone of the data, in the IANA format (Continent/City).", ) - source: Optional[Literal["realtime", "delayed", "nasdaq_basic"]] = Field( + source: Literal["realtime", "delayed", "nasdaq_basic"] = Field( default="realtime", description="The source of the data." ) _interval_size: Literal["1m", "5m", "10m", "15m", "30m", "60m", "1h"] = PrivateAttr( diff --git a/openbb_platform/providers/intrinio/openbb_intrinio/models/fred_indices.py b/openbb_platform/providers/intrinio/openbb_intrinio/models/fred_indices.py index 64b06d43642..219d592e0ea 100644 --- a/openbb_platform/providers/intrinio/openbb_intrinio/models/fred_indices.py +++ b/openbb_platform/providers/intrinio/openbb_intrinio/models/fred_indices.py @@ -10,7 +10,7 @@ from openbb_core.provider.standard_models.fred_indices import ( FredIndicesQueryParams, ) from openbb_core.provider.utils.helpers import get_querystring -from openbb_intrinio.utils.helpers import get_data_one +from openbb_intrinio.utils.helpers import async_get_data_one from pydantic import Field @@ -20,6 +20,8 @@ class IntrinioFredIndicesQueryParams(FredIndicesQueryParams): Source: https://docs.intrinio.com/documentation/web_api/get_economic_index_historical_data_v2 """ + __alias_dict__ = {"limit": "page_size"} + next_page: Optional[str] = Field( default=None, description="Token to get the next page of data from a previous API call.", @@ -28,6 +30,10 @@ class IntrinioFredIndicesQueryParams(FredIndicesQueryParams): default=False, description="Returns all pages of data from the API call at once.", ) + sleep: Optional[float] = Field( + default=1.0, + description="Time to sleep between requests to avoid rate limiting.", + ) class IntrinioFredIndicesData(FredIndicesData): @@ -57,7 +63,7 @@ class IntrinioFredIndicesFetcher( return IntrinioFredIndicesQueryParams(**transformed_params) @staticmethod - def extract_data( + async def extract_data( query: IntrinioFredIndicesQueryParams, credentials: Optional[Dict[str, str]], **kwargs: Any, @@ -66,14 +72,16 @@ class IntrinioFredIndicesFetcher( api_key = credentials.get("intrinio_api_key") if credentials else "" base_url = "https://api-v2.intrinio.com" - query_str = get_querystring(query.model_dump(), ["symbol", "all_pages"]) - query_str = query_str.replace("limit", "page_size") + query_str = get_querystring( + query.model_dump(), ["symbol", "all_pages", "sleep"] + ) + url = ( f"{base_url}/indices/economic/${query.symbol.replace('$', '')}/historical_data/level" f"?{query_str}&api_key={api_key}" ) - data = get_data_one(url, **kwargs) + data = await async_get_data_one(url, query.limit, query.sleep, **kwargs) if query.all_pages: all_data: list = data.get("historical_data", []) @@ -81,16 +89,16 @@ class IntrinioFredIndicesFetcher( while next_page: query_str = get_querystring( - query.model_dump(by_alias=True), - ["symbol", "next_page", "all_pages"], + query.model_dump(), ["symbol", "next_page", "all_pages", "sleep"] ) - query_str = query_str.replace("limit", "page_size") + url = ( f"{base_url}/indices/economic/${query.symbol.replace('$', '')}/historical_data/level" f"?{query_str}&next_page={next_page}&api_key={api_key}" ) - data = get_data_one(url, **kwargs) + data = await async_get_data_one(url, query.limit, query.sleep, **kwargs) + all_data.extend(data.get("historical_data", [])) next_page = data.get("next_page", None) diff --git a/openbb_platform/providers/intrinio/openbb_intrinio/utils/helpers.py b/openbb_platform/providers/intrinio/openbb_intrinio/utils/helpers.py index 6b15de8281e..1c23d7d7b00 100644 --- a/openbb_platform/providers/intrinio/openbb_intrinio/utils/helpers.py +++ b/openbb_platform/providers/intrinio/openbb_intrinio/utils/helpers.py @@ -1,5 +1,6 @@ """Intrinio Helpers Module.""" +import asyncio import json from datetime import ( date as dateType, @@ -8,9 +9,11 @@ from datetime import ( from io import StringIO from typing import Any, List, Optional, TypeVar, Union +import aiohttp import requests from openbb_core.provider import helpers from openbb_core.provider.utils.errors import EmptyDataError +from openbb_core.provider.utils.helpers import async_make_request from pydantic import BaseModel from requests.exceptions import SSLError @@ -123,3 +126,34 @@ def get_weekday(date: dateType) -> str: if date.weekday() in [5, 6]: return (date - timedelta(days=date.weekday() - 4)).strftime("%Y-%m-%d") return date.strftime("%Y-%m-%d") + + +async def response_callback(response: aiohttp.ClientResponse) -> dict: + """Return the response.""" + data: dict = await response.json() + + if message := data.get("error", None) or data.get("message", None): + raise RuntimeError(f"Error in Intrinio request -> {message}") + + if error := data.get("Error Message", None): + raise RuntimeError(f"Intrinio Error Message -> {error}") + + return data + + +async def async_get_data_one( + url: str, limit: int = 1, sleep: float = 1, **kwargs: Any +) -> dict: + if limit > 100: + await asyncio.sleep(sleep) + + try: + data: dict = await async_make_request( + url, response_callback=response_callback, **kwargs + ) + except Exception as e: + if "limit" not in str(e): + raise e + return await async_get_data_one(url, limit, sleep, **kwargs) + + return data diff --git a/openbb_platform/providers/intrinio/tests/test_intrinio_fetchers.py b/openbb_platform/providers/intrinio/tests/test_intrinio_fetchers.py index 5a0113156fb..ba0c9b5a107 100644 --- a/openbb_platform/providers/intrinio/tests/test_intrinio_fetchers.py +++ b/openbb_platform/providers/intrinio/tests/test_intrinio_fetchers.py @@ -126,7 +126,6 @@ def test_intrinio_balance_sheet_fetcher(credentials=test_credentials): @pytest.mark.record_http def test_intrinio_cash_flow_statement_fetcher(credentials=test_credentials): params = {"symbol": "AAPL"} - fetcher = IntrinioCashFlowStatementFetcher() result = fetcher.test(params, credentials) assert result is None @@ -144,7 +143,7 @@ def test_intrinio_income_statement_fetcher(credentials=test_credentials): @pytest.mark.record_http def test_intrinio_fred_indices_fetcher(credentials=test_credentials): params = { - "symbol": "GDP", + "symbol": "$GDP", "start_date": date(2022, 9, 20), "end_date": date(2023, 9, 20), } diff --git a/openbb_platform/providers/polygon/openbb_polygon/models/equity_historical.py b/openbb_platform/providers/polygon/openbb_polygon/models/equity_historical.py index f79dc9413f6..6800019bc3a 100644 --- a/openbb_platform/providers/polygon/openbb_polygon/models/equity_historical.py +++ b/openbb_platform/providers/polygon/openbb_polygon/models/equity_historical.py @@ -117,6 +117,10 @@ class PolygonEquityHistoricalFetcher( data: List = [] + # if there are more than 20 symbols, we need to increase the timeout + if len(query.symbol.split(",")) > 20: + kwargs.update({"preferences": {"request_timeout": 30}}) + def multiple_symbols( symbol: str, data: List[PolygonEquityHistoricalData] ) -> None: diff --git a/openbb_platform/providers/polygon/openbb_polygon/models/income_statement.py b/openbb_platform/providers/polygon/openbb_polygon/models/income_statement.py index bbef1313364..bdcf8966e2b 100644 --- a/openbb_platform/providers/polygon/openbb_polygon/models/income_statement.py +++ b/openbb_platform/providers/polygon/openbb_polygon/models/income_statement.py @@ -3,7 +3,7 @@ from datetime import date from typing import Any, Dict, List, Literal, Optional -from openbb_core.provider.abstract.data import StrictInt +from openbb_core.provider.abstract.data import ForceInt from openbb_core.provider.abstract.fetcher import Fetcher from openbb_core.provider.standard_models.income_statement import ( IncomeStatementData, @@ -98,9 +98,7 @@ class PolygonIncomeStatementData(IncomeStatementData): benefits_costs_expenses: Optional[float] = Field( default=None, description="Benefits, costs and expenses" ) - net_income_loss_attributable_to_noncontrolling_interest: Optional[ - StrictInt - ] = Field( + net_income_loss_attributable_to_noncontrolling_interest: Optional[ForceInt] = Field( default=None, description="Net income (loss) attributable to noncontrolling interest", ) diff --git a/openbb_platform/providers/tradingeconomics/openbb_tradingeconomics/models/economic_calendar.py b/openbb_platform/providers/tradingeconomics/openbb_tradingeconomics/models/economic_calendar.py index 3a118179780..4a2a31397b0 100644 --- a/openbb_platform/providers/tradingeconomics/openbb_tradingeconomics/models/economic_calendar.py +++ b/openbb_platform/providers/tradingeconomics/openbb_tradingeconomics/models/economic_calendar.py @@ -40,16 +40,14 @@ class TEEconomicCalendarQueryParams(EconomicCalendarQueryParams): Source: https://docs.tradingeconomics.com/economic_calendar/ """ - country: Optional[Union[str, List[str]]] = Field( - default=None, - description="Country of the event", - ) # TODO: Probably want to figure out the list we can use. - importance: IMPORTANCE = Field( - default=None, - description="Importance of the event.", + country: Optional[Union[str, List[str]]] = Field( + default=None, description="Country of the event" ) - group: GROUPS = Field(default=None, description="Grouping of events") + importance: Optional[IMPORTANCE] = Field( + default=None, description="Importance of the event." + ) + group: Optional[GROUPS] = Field(default=None, description="Grouping of events") @field_validator("country", mode="before", check_fields=False) @classmethod @@ -63,7 +61,7 @@ class TEEconomicCalendarQueryParams(EconomicCalendarQueryParams): @classmethod def importance_to_number(cls, v): string_to_value = {"Low": 1, "Medium": 2, "High": 3} - return string_to_value[v] if v else None + return string_to_value.get(v, None) class TEEconomicCalendarData(EconomicCalendarData):