Description
dvc.api.all_tags() returns a list of all Git tags in a DVC repository. Tags typically mark important milestones like releases or significant experiments, making this function useful for retrieving versioned data, models, and metrics.
Signature
Parameters
Location of the DVC repository. Defaults to the current project (found by walking up from the current working directory tree).Can be:
- Local file system path
- URL (HTTP/HTTPS)
- Git SSH URL (e.g.,
user@server:project.git)
Returns
List of Git tag names in the repository
Examples
List tags in current repository
Compare metrics across release tags
Download model from specific release
Track metrics evolution across releases
Compare production models
Use cases
Release comparison
Compare metrics and data across different releases
Model registry
Use tags as a simple model registry for versioned models
Reproducibility
Retrieve exact data and model versions from tagged releases
Deployment
Deploy specific tagged versions to production
Related functions
all_branches()- List all branches in a repositoryall_commits()- List all commits in a repositoryparams_show()- Get parameters for a specific tagmetrics_show()- Get metrics for a specific tagopen()- Open files from a specific tag