mirror of
https://github.com/OpenBB-finance/OpenBB.git
synced 2026-11-02 07:23:25 +00:00
20 lines
581 B
Python
20 lines
581 B
Python
from pydantic import BaseModel, Extra
|
|
|
|
|
|
class Data(BaseModel):
|
|
"""The OpenBB Standardized Data Model."""
|
|
|
|
def __repr__(self):
|
|
return f"{self.__class__.__name__}({', '.join([f'{k}={v}' for k, v in self.dict().items()])})"
|
|
|
|
class Config:
|
|
extra = Extra.allow
|
|
allow_population_by_field_name = True
|
|
|
|
|
|
class QueryParams(BaseModel):
|
|
"""The OpenBB Standardized QueryParams Model that holds the query input parameters."""
|
|
|
|
def __repr__(self):
|
|
return f"{self.__class__.__name__}({', '.join([f'{k}={v}' for k, v in self.dict().items()])})"
|