Read/use config/pyproject.toml file (config)#
Classes:
|
Class to parse toml file with [tool.pyproject2conda] section |
- class pyproject2conda.config.Config(data)[source]#
Bases:
objectClass to parse toml file with [tool.pyproject2conda] section
Methods:
get_in(*keys[, default])Utility to extract from nested dict.
channels([env_name, inherit])Channels getter
python([env_name, inherit, default])Python getter
extras(env_name)Extras getter
output([env_name])Output getter
sort([env_name, inherit, default])Sort getter
base(env_name[, default])Base getter.
header(env_name)Header getter
style([env_name, default])Style getter.
python_include([env_name])Flag python_include
python_version([env_name])Flag python_version
overwrite([env_name, default])Flag overwrite
verbose([env_name, default])Flag verbose
template(env_name[, default])Flag for template
template_python(env_name[, default])Flag for template_python.
user_config([env_name])Flag user_config
assign_user_config(user)Assign user_config to self.
iter([envs])Iterate over configs
from_toml_dict(data[, user_config])Create from toml dictionaries.
from_string(s[, user_config])Create from string representation of toml file.
from_file(path[, user_config])Create from toml file(s).
Attributes:
All overrides sections from [[tool.pyproject2conda.overrides]]
All environments
- property overrides#
All overrides sections from [[tool.pyproject2conda.overrides]]
- property envs#
All environments