Skip to content

Section class

An abstract class representing a subdivision of the configuration class Config.

The role of the subclasses of this class is to define semantically consistent sets of settings related to a particular aspect of the application.

Here are the various sections in Taipy:

Each Section implementation is defined by a section name (related to the objects they configure), a unique identifier, and a set of properties.

Some of the Section implementations are designed to be unique, meaning only one instance can exist. They are subclasses of the UniqueSection abstract class such as:

Attributes

id instance-attribute

id: str = _validate_id(id)

A valid python identifier that uniquely identifies the section.

name abstractmethod property

name

The name of the section.

This property is used to identify the section in the configuration. It is used as a key in the dictionary of sections in the Config class. Note also that the name of the section is exposed as a Config property.

properties property writable

properties

A dictionary of additional properties.