Dvc: Python API

Created on 8 Dec 2020  路  3Comments  路  Source: iterative/dvc

Hello, developers,
kudos to you for awesome work :champagne:
But was hoping if we can have all the cli command in python API too.
I like to experiment in jupyter notebooks and that python API will be more flexible to use in such cases.
Is there any roadmap for this, I would like to contribute if any need :smile:

awaiting response

Most helpful comment

Hi @hyperparameters !

See Repo class from dvc.repo. E.g.

from dvc.repo import Repo

repo = Repo(".")
repo.add("foo")

it is not officially released yet in the sense that there are no official docs for it, but our CLI has been using the same thing for years now, so it is more or less stable. Still, I have to stress that as it is not officially released yet, we don't give a 100% guarantee about it's stability and your mileage may vary.

We will definitely document this part of API in the future, but there is no particular timeframe for now :slightly_frowning_face:

All 3 comments

Hi @hyperparameters !

See Repo class from dvc.repo. E.g.

from dvc.repo import Repo

repo = Repo(".")
repo.add("foo")

it is not officially released yet in the sense that there are no official docs for it, but our CLI has been using the same thing for years now, so it is more or less stable. Still, I have to stress that as it is not officially released yet, we don't give a 100% guarantee about it's stability and your mileage may vary.

We will definitely document this part of API in the future, but there is no particular timeframe for now :slightly_frowning_face:

@efiop thanx for pointing me to class, will explore this part and share my feedback.

Closing for now.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

robguinness picture robguinness  路  3Comments

jorgeorpinel picture jorgeorpinel  路  3Comments

shcheklein picture shcheklein  路  3Comments

prihoda picture prihoda  路  3Comments

gregfriedland picture gregfriedland  路  3Comments