Skip to content

Expose params/ ParamsDependency in the Python API. #6507

@daavoo

Description

@daavoo

params are easy to include in a pipeline via templating but using them inside a python script might not be that trivial and require several changes in the user's code (i.e. when a stage uses several params from different params files).

I think that it would be nice to expose some function in the public API that would take care of loading the params associated to a stage and returning them as python objects, directly usable in the python script.

It could be something like dvc.api.get_params() and would take care of loading only the params defined in the params section of the stage.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A: apiRelated to the dvc.apifeature requestRequesting a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions