Search

class emdb.models.search.EMDBSearchResults(*, entries: List[LazyEMDBEntry])[source]

Bases: BaseModel

class Config[source]

Bases: object

arbitrary_types_allowed = True
classmethod from_api(data: str, client: EMDB) EMDBSearchResults[source]
model_post_init(context: Any, /) None

This function is meant to behave like a BaseModel method to initialise private attributes.

It takes context as an argument since that’s what pydantic-core passes when calling it.

Parameters:
  • self – The BaseModel instance.

  • context – The context.

entries: List[LazyEMDBEntry]
model_config: ClassVar[ConfigDict] = {'arbitrary_types_allowed': True}

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].