MCPcopy Create free account
hub / github.com/GerevAI/gerev / ConfigField

Class ConfigField

app/data_source/api/base_data_source.py:34–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32
33
34class ConfigField(BaseModel):
35 name: str
36 input_type: HTMLInputType = HTMLInputType.TEXT
37 label: Optional[str] = None
38 placeholder: Optional[str] = None
39
40 def __init__(self, **data):
41 name = data.get("name")
42 label = data.get("label") or name.title()
43 data["label"] = label
44 data["placeholder"] = data.get("placeholder") or label
45 super().__init__(**data)
46
47 class Config:
48 use_enum_values = True
49
50
51class BaseDataSource(ABC):

Callers 10

get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90
get_config_fieldsMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected