Skip to content

Conda Datasource

Table of values

Name Value Notes
Identifier conda
Default versioning No default versioning
Custom registry support Yes
Release timestamp support Yes The release timestamp is determined from the upload_time field of the files of a version when using the Anaconda.org API, or from the createdAt field of the variants of a version when using prefix.dev. All files of a version are assumed to be published at roughly the same time.
Source URL support Yes The source URL is determined from the dev_url field in the results.

Description

This datasource returns releases for package from anaconda registry and prefix.dev. Other repositories are not supported currently.

This datasource support following cases:

Look up numpy in conda-forge channel on anaconda.

{
  packageName: 'conda-forge/numpy',
}

Look up numpy in conda-forge channel from prefix.dev using API https://prefix.dev/api/graphql.

{
  packageName: 'numpy',
  registryUrls: ["https://prefix.dev/conda-forge/"]
}

Multiple channels support

{
  packageName: 'some-package',
  registryUrls: [
    "https://api.anaconda.org/package/conda-forge/",
    "https://prefix.dev/conda-forge/",
  ]
}

The above example will lookup try to find the package on anaconda first, if the package can not be found on prefix.dev.