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

classmethod __new__(*args, **kwargs)
__init__(*args, **kwargs)

Classes

class pyTooling.Configuration.Node[source]

Abstract node in a configuration data structure.

Inheritance

Inheritance diagram of Node

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 pyTooling.Configuration.Dictionary[source]

Abstract dictionary node in a configuration.

Inheritance

Inheritance diagram of Dictionary

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

Initializes a dictionary.

Parameters:
Return type:

None

DICT_TYPE

alias of Dictionary

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[source]

Abstract sequence node in a configuration.

Inheritance

Inheritance diagram of Sequence

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

Initializes a sequence.

Parameters:
Return type:

None

DICT_TYPE

alias of Dictionary

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[source]

Abstract root node in a configuration.

Inheritance

Inheritance diagram of Configuration

DICT_TYPE

alias of Dictionary

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