Remote model

class Remote(name, url, verify_ssl=True, disabled=False, allowed_packages=None, remote_type=None, recipes_only=False)

The Remote class represents a remote registry of packages.

A Remote object can be constructed to be passed as an argument to RemotesAPI methods. When possible, it is better to use Remote objects returned by the API, but for the RemotesAPI.add() method, for which a new constructed object is necessary. It is recommended to use named arguments like Remote(..., verify_ssl=False) in the constructor.

Parameters:
  • name – The name of the remote.

  • url – The URL of the remote repository (or local folder for “local-recipes-index”).

  • verify_ssl – Enable SSL Certificate validation.

  • disabled – Disable the remote repository.

  • allowed_packages – List of patterns of allowed packages from this remote

  • remote_type – Type of the remote repository, use “local-recipes-index” or None

  • recipes_only – If True, binaries form this remote will be ignored and never used

invalidate_cache()

If external operations might have modified the remote since it was instantiated, this method can be called to invalidate the cache. Note that this is done automatically when the remote is used in any operation by Conan, such as uploading packages, so this method is not usually needed when only interacting with the Conan API