4.6.2. pde.tools.config module¶
Handles configuration variables of the package
class handling the package configuration |
|
tries to load certain python packages and returns their version |
|
helper function converting a version string into a list of integers |
|
checks whether a package has a sufficient version |
|
read package names from a requirements file |
|
obtain information about the compute environment |
- class Config(items=None, mode='update')[source]¶
Bases:
UserDict
class handling the package configuration
- Parameters
items (dict, optional) – Configuration values that should be added or overwritten to initialize the configuration.
mode (str) –
Defines the mode in which the configuration is used. Possible values are
insert: any new configuration key can be inserted
update: only the values of pre-existing items can be updated
locked: no values can be changed
Note that the items specified by items will always be inserted, independent of the mode.
- check_package_version(package_name, min_version)[source]¶
checks whether a package has a sufficient version
- environment()[source]¶
obtain information about the compute environment
- Returns
information about the python installation and packages
- Return type
- get_package_versions(packages, *, na_str='not available')[source]¶
tries to load certain python packages and returns their version