![]() |
Qucs-S S-parameter Viewer & RF Synthesis Tools
|
Public Member Functions | |
| None | __init__ (self, bool isolated, Optional[Kind] load_only=None) |
| None | load (self) |
| Optional[str] | get_file_to_edit (self) |
| Iterable[Tuple[str, Any]] | items (self) |
| Any | get_value (self, str key) |
| None | set_value (self, str key, Any value) |
| None | unset_value (self, str key) |
| None | save (self) |
| Iterable[Tuple[str, str]] | get_environ_vars (self) |
| Iterable[Tuple[Kind, List[str]]] | iter_config_files (self) |
| Dict[str, Any] | get_values_in_config (self, Kind variant) |
| str | __repr__ (self) |
Public Attributes | |
| isolated | |
| load_only | |
Protected Member Functions | |
| None | _ensure_have_load_only (self) |
| Dict[str, Any] | _dictionary (self) |
| None | _load_config_files (self) |
| RawConfigParser | _load_file (self, Kind variant, str fname) |
| RawConfigParser | _construct_parser (self, str fname) |
| None | _load_environment_vars (self) |
| Dict[str, Any] | _normalized_keys (self, str section, Iterable[Tuple[str, Any]] items) |
| Tuple[str, RawConfigParser] | _get_parser_to_modify (self) |
| None | _mark_as_modified (self, str fname, RawConfigParser parser) |
Handles management of configuration. Provides an interface to accessing and managing configuration files. This class converts provides an API that takes "section.key-name" style keys and stores the value associated with it as "key-name" under the section "section". This allows for a clean interface wherein the both the section and the key-name are preserved in an easy to manage form in the configuration files and the data stored is also nice.
|
protected |
A dictionary representing the loaded configuration.
|
protected |
Loads configuration from configuration files
|
protected |
Loads configuration from environment variables
|
protected |
Normalizes items to construct a dictionary with normalized keys. This routine is where the names become keys and are made the same regardless of source - configuration files or environment.
| Iterable[Tuple[str, str]] pip._internal.configuration.Configuration.get_environ_vars | ( | self | ) |
Returns a generator with all environmental vars with prefix PIP_
| Optional[str] pip._internal.configuration.Configuration.get_file_to_edit | ( | self | ) |
Returns the file with highest priority in configuration
| Any pip._internal.configuration.Configuration.get_value | ( | self, | |
| str | key | ||
| ) |
Get a value from the configuration.
| Dict[str, Any] pip._internal.configuration.Configuration.get_values_in_config | ( | self, | |
| Kind | variant | ||
| ) |
Get values present in a config file
| Iterable[Tuple[str, Any]] pip._internal.configuration.Configuration.items | ( | self | ) |
Returns key-value pairs like dict.items() representing the loaded configuration
| Iterable[Tuple[Kind, List[str]]] pip._internal.configuration.Configuration.iter_config_files | ( | self | ) |
Yields variant and configuration files associated with it. This should be treated like items of a dictionary. The order here doesn't affect what gets overridden. That is controlled by OVERRIDE_ORDER. However this does control the order they are displayed to the user. It's probably most ergononmic to display things in the same order as OVERRIDE_ORDER
| None pip._internal.configuration.Configuration.load | ( | self | ) |
Loads configuration from configuration files and environment
| None pip._internal.configuration.Configuration.save | ( | self | ) |
Save the current in-memory state.
| None pip._internal.configuration.Configuration.set_value | ( | self, | |
| str | key, | ||
| Any | value | ||
| ) |
Modify a value in the configuration.
| None pip._internal.configuration.Configuration.unset_value | ( | self, | |
| str | key | ||
| ) |
Unset a value in the configuration.