# get_derived_definition

## nominal.experimental.compute_as_code.get_derived_definition(client, dataset, *, commit=None)

Fetch a dataset’s derived definition (its compute spec plus the commit that produced it).

Parameters:
:   - **client** ([*NominalClient*](https://dev.nominal.io/python/ref/generated/nominal.core.NominalClient.md#nominal.core.NominalClient "nominal.core.client.NominalClient"))

      The NominalClient to use for the lookup.
    - **dataset** ([*Dataset*](https://dev.nominal.io/python/ref/generated/nominal.core.Dataset.md#nominal.core.Dataset "nominal.core.dataset.Dataset") *|* [*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)"))

      The derived dataset, or its RID, to fetch the definition for.
    - **commit** ([*str*](https://docs.python.org/3/builtins/stdtypes.html#str "(in Python v3.15)") *|* *None*)

      If provided, fetch the definition at this specific commit rather than the latest.

Returns:
:   *The dataset’s derived definition* – its compute spec and the commit that produced it.

Return type:
:   *DerivedDefinition*
