Making DVC Repo API Public #7392
Replies: 5 comments 12 replies
-
I believe our command reference can also include API references if the API will have (almost) 1-1 correspondence with the CLI. There won't be duplicate efforts in that case. We'll simply list the API function along with the command, and the command options will be the arguments of these API functions. |
Beta Was this translation helpful? Give feedback.
-
Idk what's prevented us from publishing it. We can find a solution for the documentation if the core team decides to make it public. Maintenance is also probably not a concern since we need to maintain it (code-wise) anyway, or if you meant maintaining the docs then again we can find a low-overhead solution e.g. simple automatic docs (rel. iterative/dvc.org#2770). My Q is what would be the requirements to get to the point where we feel comfortable making it more official and visible. Complete docstrings? Refactoring something? I'm guessing it's mostly up to the core team for now. Thanks |
Beta Was this translation helpful? Give feedback.
-
I have remembered that I heavily used Repo API in https://github.com/iterative/dvc-streamlit but never made it public. We could make it public and use it as an excuse to showcase how the API can be used to build something on top. |
Beta Was this translation helpful? Give feedback.
-
I'd prefer making the purpose of |
Beta Was this translation helpful? Give feedback.
-
Relevant discussion: |
Beta Was this translation helpful? Give feedback.
-
We are developing some specific Python APIs to meet needs that the CLI doesn't (#6850), but users often want to mimic the DVC CLI inside Python. In that case, we direct them to use
dvc.repo.Repo
, which we have often noted as not yet released.This is a really common request and suggestion! See previous discussions and requests for background:
Way more users might find this helpful if they knew it existed, so what is preventing us from making this public?
dvc.repo.Repo
?Beta Was this translation helpful? Give feedback.
All reactions