Categories:

System Functions (System Information)

GET_ANACONDA_PACKAGES_REPODATA

Returns a list of third-party packages that are available from Anaconda. For more information, see Packages Policies.

Syntax

SNOWFLAKE.SNOWPARK.GET_ANACONDA_PACKAGES_REPODATA( '<architecture>' )
Copy

Arguments

architecture

String specifying the architecture, which can be: linux-64, linux-aarch64, or noarch.

Returns

Returns a JSON string that contains the contents of repodata.json, which is an index of the packages in a subdir. A subdir represents a particular archtecture. Each subdir will have its own repodata.

For more information, see the Conda documentation

Access control requirements

You must use the ACCOUNTADMIN role to call this function.

Examples

The following example gets the list of third-party packages from Anaconda for linux-64.

USE ROLE ACCOUNTADMIN;

select SNOWFLAKE.SNOWPARK.GET_ANACONDA_PACKAGES_REPODATA('linux-64');
Copy