Skip to content

UniqueSection class

Bases: Section, ABC

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

Each UniqueSection implementation class defines a semantically consistent set of settings related to a particular aspect of the application. It differs from a regular Section in that it is designed to be unique, meaning only one instance can exist. Each UniqueSection is defined by a section name (related to the objects they configure) and a set of properties.

Here are the various unique sections in Taipy:

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.