Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature proposal: dvc artifacts get --show-url #10420

Closed
tibor-mach opened this issue May 9, 2024 · 1 comment · Fixed by #10423
Closed

Feature proposal: dvc artifacts get --show-url #10420

tibor-mach opened this issue May 9, 2024 · 1 comment · Fixed by #10423
Labels
A: artifacts Related to `artifacts` section in `dvc.yaml` enhancement Enhances DVC

Comments

@tibor-mach
Copy link
Contributor

DVC currently supports dvc get --show-url as a way to retrieve just the URL of a DVC-versioned object as opposed to the object itself.

However, there is no equivalent for dvc artifacts get. This came as a customer request (to allow easier sharing of results even to people who are not DVC/DVC Studio users). It also has advantages e.g. in model deployment to Sagemaker (which requires the artifact URL on S3).

@tibor-mach tibor-mach added enhancement Enhances DVC A: artifacts Related to `artifacts` section in `dvc.yaml` labels May 9, 2024
@dberenbaum
Copy link
Contributor

There is a Python workaround for now:

import dvc.api

artifact = dvc.api.artifacts_show(
    'text-classification',
    version='v1.0.0',
    repo='https://github.com/iterative/example-get-started.git',
)
url = dvc.api.get_url(
    artifact['path'],
    rev=artifact['rev'],
    repo='https://github.com/iterative/example-get-started.git',
)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A: artifacts Related to `artifacts` section in `dvc.yaml` enhancement Enhances DVC
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants