mloq.commands.requirements
Contents
mloq.commands.requirements
#
Mloq requirements command implementation.
Module Contents#
Classes#
Implement the functionality of the requirements Command. |
Attributes#
- mloq.commands.requirements.REQUIREMENTS_PATH#
- mloq.commands.requirements.requirements#
- mloq.commands.requirements.data_science_req#
- mloq.commands.requirements.data_viz_req#
- mloq.commands.requirements.pytorch_req#
- mloq.commands.requirements.tensorflow_req#
- mloq.commands.requirements.lint_req#
- mloq.commands.requirements.test_req#
- mloq.commands.requirements.dogfood_req#
- mloq.commands.requirements.docs_req#
- mloq.commands.requirements.REQUIREMENTS_FILES#
- mloq.commands.requirements.REQUIREMENT_CHOICES = ['data-science', 'data-viz', 'torch', 'tensorflow', 'none', 'dogfood', 'None']#
- class mloq.commands.requirements.RequirementsCMD(record, interactive=False)[source]#
Bases:
mloq.command.Command
Implement the functionality of the requirements Command.
- Parameters
record (mloq.record.CMDRecord) –
interactive (bool) –
- cmd_name = requirements#
- files#
- disable#
- requirements#
- REQUIREMENTS_ALIASES#
- classmethod get_aliased_requirements_file(option)[source]#
Get requirement file from aliased name.
- Parameters
option (str) –
- Return type
- classmethod read_requirements_file(option)[source]#
Return the content of the target requirements file form an aliased name.
- Parameters
option (str) –
- Return type
str
- classmethod compose_requirements(options)[source]#
Return the content requirements.txt file with pinned dependencies.
The returned string contains the combined dependencies for the different options sorted alphabetically.
- Parameters
options (Iterable[str]) – Iterable containing the aliased names of the target dependencies for the project.
- Returns
str containing the pinned versions of all the selected requirements.
- Return type
str
- interactive_config()[source]#
Generate the configuration of the project interactively.
- Return type
omegaconf.DictConfig