IcsdClient

class emmet.core.connectors.icsd.client.IcsdClient(**data)

Bases: BaseModel

Query data via the ICSD API.

Parameters:
  • username (str)

  • password (str)

  • max_retries (int)

  • timeout (float)

  • max_batch_size (int)

  • use_document_model (bool)

  • num_parallel_requests (int | None)

model_config: ClassVar[ConfigDict] = {}

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

model_post_init(context, /)

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

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

Return type:

None

Parameters:
  • self (BaseModel)

  • context (Any)

Args:

self: The BaseModel instance. context: The context.