html_compose.attributes.meter_attrs

  1from . import BaseAttribute
  2
  3
  4class MeterAttrs:
  5    """
  6    This module contains functions for attributes in the 'meter' element.
  7    Which is inherited by a class so we can generate type hints
  8    """
  9
 10    @staticmethod
 11    def high(value: float) -> BaseAttribute:
 12        """
 13        "meter" attribute: high
 14        Low limit of high range
 15
 16        Args:
 17            value:
 18                Valid floating-point number*
 19
 20        Returns:
 21            An high attribute to be added to your element
 22
 23        """
 24
 25        return BaseAttribute("high", value)
 26
 27    @staticmethod
 28    def low(value: float) -> BaseAttribute:
 29        """
 30        "meter" attribute: low
 31        High limit of low range
 32
 33        Args:
 34            value:
 35                Valid floating-point number*
 36
 37        Returns:
 38            An low attribute to be added to your element
 39
 40        """
 41
 42        return BaseAttribute("low", value)
 43
 44    @staticmethod
 45    def max(value: float) -> BaseAttribute:
 46        """
 47        "meter" attribute: max
 48        Upper bound of range
 49
 50        Args:
 51            value:
 52                Valid floating-point number*
 53
 54        Returns:
 55            An max attribute to be added to your element
 56
 57        """
 58
 59        return BaseAttribute("max", value)
 60
 61    @staticmethod
 62    def min(value: float) -> BaseAttribute:
 63        """
 64        "meter" attribute: min
 65        Lower bound of range
 66
 67        Args:
 68            value:
 69                Valid floating-point number*
 70
 71        Returns:
 72            An min attribute to be added to your element
 73
 74        """
 75
 76        return BaseAttribute("min", value)
 77
 78    @staticmethod
 79    def optimum(value: float) -> BaseAttribute:
 80        """
 81        "meter" attribute: optimum
 82        Optimum value in gauge
 83
 84        Args:
 85            value:
 86                Valid floating-point number*
 87
 88        Returns:
 89            An optimum attribute to be added to your element
 90
 91        """
 92
 93        return BaseAttribute("optimum", value)
 94
 95    @staticmethod
 96    def value(value: float) -> BaseAttribute:
 97        """
 98        "meter" attribute: value
 99        Current value of the element
100
101        Args:
102            value:
103                Valid floating-point number
104
105        Returns:
106            An value attribute to be added to your element
107
108        """
109
110        return BaseAttribute("value", value)
class MeterAttrs:
  5class MeterAttrs:
  6    """
  7    This module contains functions for attributes in the 'meter' element.
  8    Which is inherited by a class so we can generate type hints
  9    """
 10
 11    @staticmethod
 12    def high(value: float) -> BaseAttribute:
 13        """
 14        "meter" attribute: high
 15        Low limit of high range
 16
 17        Args:
 18            value:
 19                Valid floating-point number*
 20
 21        Returns:
 22            An high attribute to be added to your element
 23
 24        """
 25
 26        return BaseAttribute("high", value)
 27
 28    @staticmethod
 29    def low(value: float) -> BaseAttribute:
 30        """
 31        "meter" attribute: low
 32        High limit of low range
 33
 34        Args:
 35            value:
 36                Valid floating-point number*
 37
 38        Returns:
 39            An low attribute to be added to your element
 40
 41        """
 42
 43        return BaseAttribute("low", value)
 44
 45    @staticmethod
 46    def max(value: float) -> BaseAttribute:
 47        """
 48        "meter" attribute: max
 49        Upper bound of range
 50
 51        Args:
 52            value:
 53                Valid floating-point number*
 54
 55        Returns:
 56            An max attribute to be added to your element
 57
 58        """
 59
 60        return BaseAttribute("max", value)
 61
 62    @staticmethod
 63    def min(value: float) -> BaseAttribute:
 64        """
 65        "meter" attribute: min
 66        Lower bound of range
 67
 68        Args:
 69            value:
 70                Valid floating-point number*
 71
 72        Returns:
 73            An min attribute to be added to your element
 74
 75        """
 76
 77        return BaseAttribute("min", value)
 78
 79    @staticmethod
 80    def optimum(value: float) -> BaseAttribute:
 81        """
 82        "meter" attribute: optimum
 83        Optimum value in gauge
 84
 85        Args:
 86            value:
 87                Valid floating-point number*
 88
 89        Returns:
 90            An optimum attribute to be added to your element
 91
 92        """
 93
 94        return BaseAttribute("optimum", value)
 95
 96    @staticmethod
 97    def value(value: float) -> BaseAttribute:
 98        """
 99        "meter" attribute: value
100        Current value of the element
101
102        Args:
103            value:
104                Valid floating-point number
105
106        Returns:
107            An value attribute to be added to your element
108
109        """
110
111        return BaseAttribute("value", value)

This module contains functions for attributes in the 'meter' element. Which is inherited by a class so we can generate type hints

@staticmethod
def high(value: float) -> html_compose.base_attribute.BaseAttribute:
11    @staticmethod
12    def high(value: float) -> BaseAttribute:
13        """
14        "meter" attribute: high
15        Low limit of high range
16
17        Args:
18            value:
19                Valid floating-point number*
20
21        Returns:
22            An high attribute to be added to your element
23
24        """
25
26        return BaseAttribute("high", value)

"meter" attribute: high Low limit of high range

Args: value: Valid floating-point number*

Returns: An high attribute to be added to your element

@staticmethod
def low(value: float) -> html_compose.base_attribute.BaseAttribute:
28    @staticmethod
29    def low(value: float) -> BaseAttribute:
30        """
31        "meter" attribute: low
32        High limit of low range
33
34        Args:
35            value:
36                Valid floating-point number*
37
38        Returns:
39            An low attribute to be added to your element
40
41        """
42
43        return BaseAttribute("low", value)

"meter" attribute: low High limit of low range

Args: value: Valid floating-point number*

Returns: An low attribute to be added to your element

@staticmethod
def max(value: float) -> html_compose.base_attribute.BaseAttribute:
45    @staticmethod
46    def max(value: float) -> BaseAttribute:
47        """
48        "meter" attribute: max
49        Upper bound of range
50
51        Args:
52            value:
53                Valid floating-point number*
54
55        Returns:
56            An max attribute to be added to your element
57
58        """
59
60        return BaseAttribute("max", value)

"meter" attribute: max Upper bound of range

Args: value: Valid floating-point number*

Returns: An max attribute to be added to your element

@staticmethod
def min(value: float) -> html_compose.base_attribute.BaseAttribute:
62    @staticmethod
63    def min(value: float) -> BaseAttribute:
64        """
65        "meter" attribute: min
66        Lower bound of range
67
68        Args:
69            value:
70                Valid floating-point number*
71
72        Returns:
73            An min attribute to be added to your element
74
75        """
76
77        return BaseAttribute("min", value)

"meter" attribute: min Lower bound of range

Args: value: Valid floating-point number*

Returns: An min attribute to be added to your element

@staticmethod
def optimum(value: float) -> html_compose.base_attribute.BaseAttribute:
79    @staticmethod
80    def optimum(value: float) -> BaseAttribute:
81        """
82        "meter" attribute: optimum
83        Optimum value in gauge
84
85        Args:
86            value:
87                Valid floating-point number*
88
89        Returns:
90            An optimum attribute to be added to your element
91
92        """
93
94        return BaseAttribute("optimum", value)

"meter" attribute: optimum Optimum value in gauge

Args: value: Valid floating-point number*

Returns: An optimum attribute to be added to your element

@staticmethod
def value(value: float) -> html_compose.base_attribute.BaseAttribute:
 96    @staticmethod
 97    def value(value: float) -> BaseAttribute:
 98        """
 99        "meter" attribute: value
100        Current value of the element
101
102        Args:
103            value:
104                Valid floating-point number
105
106        Returns:
107            An value attribute to be added to your element
108
109        """
110
111        return BaseAttribute("value", value)

"meter" attribute: value Current value of the element

Args: value: Valid floating-point number

Returns: An value attribute to be added to your element