Qucs-S S-parameter Viewer & RF Synthesis Tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
pip._vendor.distlib.compat.BaseConfigurator Class Reference
Inheritance diagram for pip._vendor.distlib.compat.BaseConfigurator:
Inheritance graph
[legend]
Collaboration diagram for pip._vendor.distlib.compat.BaseConfigurator:
Collaboration graph
[legend]

Public Member Functions

 __init__ (self, config)
 
 resolve (self, s)
 
 ext_convert (self, value)
 
 cfg_convert (self, value)
 
 convert (self, value)
 
 configure_custom (self, config)
 
 as_tuple (self, value)
 

Public Attributes

 config
 

Static Public Attributes

 CONVERT_PATTERN = re.compile(r'^(?P<prefix>[a-z]+)://(?P<suffix>.*)$')
 
 WORD_PATTERN = re.compile(r'^\s*(\w+)\s*')
 
 DOT_PATTERN = re.compile(r'^\.\s*(\w+)\s*')
 
 INDEX_PATTERN = re.compile(r'^\[\s*(\w+)\s*\]\s*')
 
 DIGIT_PATTERN = re.compile(r'^\d+$')
 
dict value_converters
 
 importer = staticmethod(__import__)
 

Detailed Description

The configurator base class which defines some useful defaults.

Member Function Documentation

◆ as_tuple()

pip._vendor.distlib.compat.BaseConfigurator.as_tuple (   self,
  value 
)
Utility function which converts lists to tuples.

◆ cfg_convert()

pip._vendor.distlib.compat.BaseConfigurator.cfg_convert (   self,
  value 
)
Default converter for the cfg:// protocol.

◆ configure_custom()

pip._vendor.distlib.compat.BaseConfigurator.configure_custom (   self,
  config 
)
Configure an object with a user-supplied factory.

Reimplemented in pip._vendor.distlib.util.Configurator.

◆ convert()

pip._vendor.distlib.compat.BaseConfigurator.convert (   self,
  value 
)
Convert values to an appropriate type. dicts, lists and tuples are
replaced by their converting alternatives. Strings are checked to
see if they have a conversion format and are converted if they do.

◆ ext_convert()

pip._vendor.distlib.compat.BaseConfigurator.ext_convert (   self,
  value 
)
Default converter for the ext:// protocol.

◆ resolve()

pip._vendor.distlib.compat.BaseConfigurator.resolve (   self,
  s 
)
Resolve strings to objects using standard import and attribute
syntax.

Member Data Documentation

◆ value_converters

dict pip._vendor.distlib.compat.BaseConfigurator.value_converters
static
Initial value:
= {
'ext': 'ext_convert',
'cfg': 'cfg_convert',
}

The documentation for this class was generated from the following file: