enums
#
Collection of enums used throughout conda.
Classes#
Create a collection of name/value pairs. |
|
Create a collection of name/value pairs. |
|
Create a collection of name/value pairs. |
|
Create a collection of name/value pairs. |
|
Refers to if the file in question is hard linked or soft linked. Originally designed to be used |
|
Create a collection of name/value pairs. |
|
Create a collection of name/value pairs. |
- class Arch(*args, **kwds)#
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes -- see the documentation for details.
- x86 = 'x86'#
- x86_64 = 'x86_64'#
- arm64 = 'arm64'#
- armv6l = 'armv6l'#
- armv7l = 'armv7l'#
- aarch64 = 'aarch64'#
- ppc64 = 'ppc64'#
- ppc64le = 'ppc64le'#
- riscv64 = 'riscv64'#
- s390x = 's390x'#
- wasm32 = 'wasm32'#
- z = 'z'#
- classmethod from_sys()#
- __json__()#
- class Platform(*args, **kwds)#
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes -- see the documentation for details.
- freebsd = 'freebsd'#
- linux = 'linux'#
- win = 'win32'#
- openbsd = 'openbsd5'#
- osx = 'darwin'#
- zos = 'zos'#
- emscripten = 'emscripten'#
- wasi = 'wasi'#
- classmethod from_sys()#
- __json__()#
- class FileMode(*args, **kwds)#
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes -- see the documentation for details.
- text = 'text'#
- binary = 'binary'#
- __str__()#
Return str(self).
- class LinkType(*args, **kwds)#
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes -- see the documentation for details.
- hardlink = 1#
- softlink = 2#
- copy = 3#
- directory = 4#
- __int__()#
- __str__()#
Return str(self).
- __json__()#
- class PathType(*args, **kwds)#
Bases:
enum.Enum
Refers to if the file in question is hard linked or soft linked. Originally designed to be used in paths.json
- hardlink = 'hardlink'#
- softlink = 'softlink'#
- directory = 'directory'#
- linked_package_record = 'linked_package_record'#
- pyc_file = 'pyc_file'#
- unix_python_entry_point = 'unix_python_entry_point'#
- windows_python_entry_point_script = 'windows_python_entry_point_script'#
- windows_python_entry_point_exe = 'windows_python_entry_point_exe'#
- basic_types()#
- __str__()#
Return str(self).
- __json__()#
- class PackageType(*args, **kwds)#
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes -- see the documentation for details.
- NOARCH_GENERIC = 'noarch_generic'#
- NOARCH_PYTHON = 'noarch_python'#
- VIRTUAL_PRIVATE_ENV = 'virtual_private_env'#
- VIRTUAL_PYTHON_WHEEL = 'virtual_python_wheel'#
- VIRTUAL_PYTHON_EGG_MANAGEABLE = 'virtual_python_egg_manageable'#
- VIRTUAL_PYTHON_EGG_UNMANAGEABLE = 'virtual_python_egg_unmanageable'#
- VIRTUAL_PYTHON_EGG_LINK = 'virtual_python_egg_link'#
- VIRTUAL_SYSTEM = 'virtual_system'#
- static conda_package_types()#
- static unmanageable_package_types()#
- class NoarchType(*args, **kwds)#
Bases:
enum.Enum
Create a collection of name/value pairs.
Example enumeration:
>>> class Color(Enum): ... RED = 1 ... BLUE = 2 ... GREEN = 3
Access them by:
attribute access:
>>> Color.RED <Color.RED: 1>
value lookup:
>>> Color(1) <Color.RED: 1>
name lookup:
>>> Color['RED'] <Color.RED: 1>
Enumerations can be iterated over, and know how many members they have:
>>> len(Color) 3
>>> list(Color) [<Color.RED: 1>, <Color.BLUE: 2>, <Color.GREEN: 3>]
Methods can be added to enumerations, and members can have their own attributes -- see the documentation for details.
- generic = 'generic'#
- python = 'python'#
- static coerce(val)#