pyTooling.GenericPath

A generic path to derive domain specific path libraries.

Submodules

Classes

  • Base: Base-class for all pyTooling.GenericPath path elements.

  • RootMixIn: Mixin-class for root elements in a path system.

  • ElementMixIn: Mixin-class for elements in a path system.

  • PathMixIn: Mixin-class for a path.

  • SystemMixIn: Mixin-class for a path system.


Classes

class pyTooling.GenericPath.Base(parent)[source]

Base-class for all pyTooling.GenericPath path elements.

Inheritance

Inheritance diagram of Base

Parameters:

parent (Base | None)

__init__(parent)[source]
Parameters:

parent (Base | None)

Return type:

None

class pyTooling.GenericPath.RootMixIn[source]

Mixin-class for root elements in a path system.

Inheritance

Inheritance diagram of RootMixIn

__init__()[source]
Return type:

None

class pyTooling.GenericPath.ElementMixIn(parent, elementName)[source]

Mixin-class for elements in a path system.

Inheritance

Inheritance diagram of ElementMixIn

Parameters:
__init__(parent, elementName)[source]
Parameters:
Return type:

None

__str__()[source]

Return str(self).

Return type:

str

class pyTooling.GenericPath.PathMixIn(elements, isAbsolute)[source]

Mixin-class for a path.

Inheritance

Inheritance diagram of PathMixIn

Parameters:
__init__(elements, isAbsolute)[source]
Parameters:
Return type:

None

__len__()[source]

Returns the number of path elements.

Return type:

int

Returns:

Number of path elements.

__str__()[source]

Return str(self).

Return type:

str

classmethod Parse(path, root, pathCls, elementCls)[source]

Parses a string representation of a path and returns a path instance.

Parameters:

path (str)

class pyTooling.GenericPath.SystemMixIn[source]

Mixin-class for a path system.

Inheritance

Inheritance diagram of SystemMixIn