pyTooling.Configuration

Abstract configuration reader.

Hint

See high-level help for explanations and usage examples.

Submodules

Exceptions

Classes

  • Node: Abstract node in a configuration data structure.

  • Dictionary: Abstract dictionary node in a configuration.

  • Sequence: Abstract sequence node in a configuration.

  • Configuration: Abstract root node in a configuration.


Exceptions

exception pyTooling.Configuration.ConfigurationException[source]

Inheritance

Inheritance diagram of ConfigurationException


Classes

class pyTooling.Configuration.Node(root=None, parent=None)[source]

Abstract node in a configuration data structure.

Inheritance

Inheritance diagram of Node

Parameters:
DICT_TYPE: ClassVar[Type[Dictionary]]

Type reference used when instantiating new dictionaries

SEQ_TYPE: ClassVar[Type[Sequence]]

Type reference used when instantiating new sequences

__init__(root=None, parent=None)[source]

Initializes a node.

Parameters:
Return type:

None

_root: Configuration

Reference to the root node.

_parent: Dictionary

Reference to a parent node.

__len__()[source]

Returns the number of sub-elements.

Return type:

int

Returns:

Number of sub-elements.

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

class pyTooling.Configuration.Dictionary(root=None, parent=None)[source]

Abstract dictionary node in a configuration.

Inheritance

Inheritance diagram of Dictionary

Parameters:
__init__(root=None, parent=None)[source]

Initializes a dictionary.

Parameters:
Return type:

None

DICT_TYPE

alias of Dictionary

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

SEQ_TYPE

alias of Sequence

__len__()

Returns the number of sub-elements.

Return type:

int

Returns:

Number of sub-elements.

_parent: Dictionary

Reference to a parent node.

_root: Configuration

Reference to the root node.

class pyTooling.Configuration.Sequence(root=None, parent=None)[source]

Abstract sequence node in a configuration.

Inheritance

Inheritance diagram of Sequence

Parameters:
__init__(root=None, parent=None)[source]

Initializes a sequence.

Parameters:
Return type:

None

DICT_TYPE

alias of Dictionary

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

SEQ_TYPE

alias of Sequence

__len__()

Returns the number of sub-elements.

Return type:

int

Returns:

Number of sub-elements.

_parent: Dictionary

Reference to a parent node.

_root: Configuration

Reference to the root node.

class pyTooling.Configuration.Configuration(configFile, root=None, parent=None)[source]

Abstract root node in a configuration.

Inheritance

Inheritance diagram of Configuration

Parameters:
DICT_TYPE

alias of Dictionary

class property HasClassAttributes: bool

Check if class has Attributes.

Returns:

True, if the class has Attributes.

class property HasMethodAttributes: bool

Check if class has any method with Attributes.

Returns:

True, if the class has any method with Attributes.

SEQ_TYPE

alias of Sequence

__len__()

Returns the number of sub-elements.

Return type:

int

Returns:

Number of sub-elements.

_parent: Dictionary

Reference to a parent node.

_root: Configuration

Reference to the root node.

__init__(configFile, root=None, parent=None)[source]

Initializes a configuration.

Parameters:
Return type:

None