:py:mod:`index` =============== .. py:module:: conda.core.index .. autoapi-nested-parse:: Tools for fetching the current index. Functions --------- .. autoapisummary:: conda.core.index.check_allowlist conda.core.index.get_index conda.core.index.fetch_index conda.core.index.dist_str_in_index conda.core.index._supplement_index_with_prefix conda.core.index._supplement_index_with_cache conda.core.index._make_virtual_package conda.core.index._supplement_index_with_features conda.core.index._supplement_index_with_system conda.core.index.get_archspec_name conda.core.index.calculate_channel_urls conda.core.index.get_reduced_index Attributes ---------- .. autoapisummary:: conda.core.index.LAST_CHANNEL_URLS .. py:function:: check_allowlist(channel_urls) .. py:data:: LAST_CHANNEL_URLS :value: [] .. py:function:: get_index(channel_urls=(), prepend=True, platform=None, use_local=False, use_cache=False, unknown=None, prefix=None, repodata_fn=context.repodata_fns[-1]) Return the index of packages available on the channels If prepend=False, only the channels passed in as arguments are used. If platform=None, then the current platform is used. If prefix is supplied, then the packages installed in that prefix are added. .. py:function:: fetch_index(channel_urls, use_cache=False, index=None, repodata_fn=context.repodata_fns[-1]) .. py:function:: dist_str_in_index(index, dist_str) .. py:function:: _supplement_index_with_prefix(index, prefix) .. py:function:: _supplement_index_with_cache(index) .. py:function:: _make_virtual_package(name, version=None, build_string=None) .. py:function:: _supplement_index_with_features(index, features=()) .. py:function:: _supplement_index_with_system(index) Loads and populates virtual package records from conda plugins and adds them to the provided index, unless there is a naming conflict. .. py:function:: get_archspec_name() .. py:function:: calculate_channel_urls(channel_urls=(), prepend=True, platform=None, use_local=False) .. py:function:: get_reduced_index(prefix, channels, subdirs, specs, repodata_fn)