Client#

lcmd_db.load_dataset

lcmd_db.clear_cache

Remove cached data files.

lcmd_db.schema

Fetch property definitions for a subset from the API.

lcmd_db.settings.Settings

Loading#

load_dataset(subset, **kwargs)[source]#
Return type:

SubsetData

clear_cache(subset=None, cache_dir=None)[source]#

Remove cached data files.

Parameters:
  • subset (str | None (default: None)) – If given, only clear the cache for this subset. Otherwise clear all.

  • cache_dir (str | Path | None (default: None)) – Override the default cache directory.

Return type:

None

Schema#

schema(subset, entity_type=EntityType.MOLECULES)[source]#

Fetch property definitions for a subset from the API.

Raises:
Return type:

list[PropertyInfo]

Settings#

class Settings[source]#

Bases: BaseSettings

Exceptions#

exception LCMDError[source]#

Bases: Exception

Base exception for all LCMD client errors.

exception DatasetNotFoundError[source]#

Bases: LCMDError

exception DownloadError[source]#

Bases: LCMDError

exception SchemaError[source]#

Bases: LCMDError

exception AssemblyError[source]#

Bases: LCMDError