Skip to content

Channel#

Channel #

base_url: str property #

Return the base URL of this channel.

Examples#
>>> channel = Channel("conda-forge")
>>> channel.base_url
'https://conda.anaconda.org/conda-forge/'
>>>

name: Optional[str] property #

Return the name of this channel.

Examples#
>>> channel = Channel("conda-forge")
>>> channel.name
'conda-forge'
>>>

__init__(name, channel_configuration=None) #

Create a new channel.

>>> channel = Channel("conda-forge")
>>> channel
Channel(name="conda-forge", base_url="https://conda.anaconda.org/conda-forge/")
>>>

__repr__() #

Return a string representation of this channel.

Examples#
>>> channel = Channel("conda-forge")
>>> channel
Channel(name="conda-forge", base_url="https://conda.anaconda.org/conda-forge/")
>>>

to_lock_channel() #

Returns a new [LockChannel] from existing channel.

>>> channel = Channel("conda-forge")
>>> channel.to_lock_channel()
LockChannel(url="https://conda.anaconda.org/conda-forge/")
>>>