schrodinger.seam.yaml.transform_specs module

Introspection API for SEAM YAML transforms.

Example usage:

$SCHRODINGER/run python3 -m schrodinger.seam.yaml.transform_specs -p
$SCHRODINGER/run python3 -m schrodinger.seam.yaml.transform_specs --catalog_file=catalog.json
$SCHRODINGER/run python3 -m schrodinger.seam.yaml.transform_specs --schemas_file=schemas.json
class schrodinger.seam.yaml.transform_specs.FieldSpec(name: str, type: Any, description: str | None = None, default: Any = '<REQUIRED>', allowed_values: list[Any] | None = None)

Bases: object

name: str
type: Any
description: str | None = None
default: Any = '<REQUIRED>'
allowed_values: list[Any] | None = None
property is_required: bool
__init__(name: str, type: Any, description: str | None = None, default: Any = '<REQUIRED>', allowed_values: list[Any] | None = None) None
class schrodinger.seam.yaml.transform_specs.TransformSpec(fields: list[FieldSpec], description: str | None = None, input_type: Any | None = None, output_type: Any | None = None)

Bases: object

fields: list[FieldSpec]
description: str | None = None
input_type: Any | None = None
output_type: Any | None = None
__init__(fields: list[FieldSpec], description: str | None = None, input_type: Any | None = None, output_type: Any | None = None) None
schrodinger.seam.yaml.transform_specs.get_yaml_transform_catalog() dict[str, TransformSpec]

Return a TransformSpec for every registered SEAM YAML transform, keyed by transform name.

schrodinger.seam.yaml.transform_specs.get_yaml_transform_schemas() dict[str, dict[str, Any]]

Return the Pydantic JSON Schema for every transform with a Pydantic config_class, keyed by transform name. Configs whose schema cannot be generated are skipped and logged.

schrodinger.seam.yaml.transform_specs.format_type(t: Any) str
schrodinger.seam.yaml.transform_specs.main()