Assembly#
Execute a PEP 723 assembly script via |
|
Result of a single assembly in a batch. |
|
Metadata for an assembly template, read from metadata.json. |
|
Metadata for a single assembly template slot. |
Template#
- class AssemblyTemplate[source]#
Bases:
objectExecute a PEP 723 assembly script via
uv run --script.Wraps a self-contained Python script that combines fragment SMILES into a molecule. The script declares its own dependencies (e.g. rdkit) via PEP 723 inline metadata;
uvresolves them automatically.- assemble(**fragments)[source]#
Assemble a single molecule from fragment SMILES.
Returns the resulting SMILES string. Raises
AssemblyErroron failure with the error message from the script.Keyword arguments must match slot IDs defined in the template. Required slots must be provided; optional slots use their defaults.
- Return type: