Base
BaseDefinition
dataclass
Base class for all profiles classes (Definition
class in profiles files)
BaseStandard
Bases: Enum
Base class for all standards variants (Standard.<class>
in profile files)
data_sources
staticmethod
Optional list of references where the data about the standard or the variants can be found
human_name
staticmethod
matter
staticmethod
Helpers
Helper methods used in the library
T
class-attribute
instance-attribute
Represents a _BaseSize
subclass: a size variant from a profile file
definition_from
staticmethod
Parameters:
Name | Type | Description | Default |
---|---|---|---|
value
|
T | BaseStandard
|
Value to check |
required |
definition_class
|
type[T]
|
Allowed definition class |
required |
size_classes
|
list[type[BaseStandard]]
|
Allowed size classes |
required |
Returns:
Name | Type | Description |
---|---|---|
T |
T
|
Definition to use in section and beams |
Raises:
Type | Description |
---|---|
BaseException
|
when input value is unsupported (not a definition_class or not included in size_classes) |