Skip to content

Channel#

Channel #

base_url property #

base_url

Return the base URL of this channel.

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

name property #

name

Return the name of this channel.

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

__init__ #

__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__ #

__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 #

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/")
>>>