logger-36 2024.14__py3-none-any.whl → 2024.16__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. logger_36/__init__.py +55 -32
  2. logger_36/catalog/config/console_rich.py +58 -37
  3. logger_36/catalog/handler/console.py +64 -42
  4. logger_36/catalog/handler/console_rich.py +67 -45
  5. logger_36/catalog/handler/file.py +67 -45
  6. logger_36/catalog/handler/generic.py +72 -51
  7. logger_36/catalog/logging/chronos.py +56 -33
  8. logger_36/catalog/logging/exception.py +74 -0
  9. logger_36/catalog/logging/gpu.py +56 -33
  10. logger_36/catalog/logging/memory.py +66 -39
  11. logger_36/catalog/logging/system.py +56 -32
  12. logger_36/config/issue.py +51 -30
  13. logger_36/config/memory.py +51 -30
  14. logger_36/config/message.py +51 -30
  15. logger_36/config/system.py +51 -30
  16. logger_36/constant/error.py +51 -30
  17. logger_36/constant/generic.py +51 -30
  18. logger_36/constant/handler.py +51 -30
  19. logger_36/constant/issue.py +51 -30
  20. logger_36/constant/logger.py +51 -30
  21. logger_36/constant/memory.py +51 -30
  22. logger_36/constant/message.py +51 -30
  23. logger_36/constant/record.py +51 -30
  24. logger_36/constant/system.py +64 -36
  25. logger_36/instance/logger.py +55 -0
  26. logger_36/instance/loggers.py +56 -0
  27. logger_36/main.py +61 -33
  28. logger_36/task/format/memory.py +52 -30
  29. logger_36/task/format/message.py +52 -30
  30. logger_36/task/format/rule.py +51 -30
  31. logger_36/task/inspection.py +52 -30
  32. logger_36/task/measure/chronos.py +52 -30
  33. logger_36/task/measure/memory.py +52 -30
  34. logger_36/task/storage.py +60 -38
  35. logger_36/type/{extension.py → handler.py} +59 -37
  36. logger_36/type/issue.py +60 -31
  37. logger_36/type/logger.py +80 -52
  38. logger_36/type/loggers.py +78 -0
  39. logger_36/version.py +53 -32
  40. {logger_36-2024.14.dist-info → logger_36-2024.16.dist-info}/METADATA +48 -30
  41. logger_36-2024.16.dist-info/RECORD +43 -0
  42. {logger_36-2024.14.dist-info → logger_36-2024.16.dist-info}/WHEEL +1 -1
  43. logger_36/instance.py +0 -34
  44. logger_36-2024.14.dist-info/RECORD +0 -40
  45. {logger_36-2024.14.dist-info → logger_36-2024.16.dist-info}/top_level.txt +0 -0
@@ -1,35 +1,56 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
31
6
 
32
7
  import typing as h
33
8
 
34
9
  handler_codes_h = h.Literal["g", "c", "f", "a"]
35
10
  HANDLER_CODES: tuple[str, ...] = h.get_args(handler_codes_h)
11
+
12
+ """
13
+ COPYRIGHT NOTICE
14
+
15
+ This software is governed by the CeCILL license under French law and
16
+ abiding by the rules of distribution of free software. You can use,
17
+ modify and/ or redistribute the software under the terms of the CeCILL
18
+ license as circulated by CEA, CNRS and INRIA at the following URL
19
+ "http://www.cecill.info".
20
+
21
+ As a counterpart to the access to the source code and rights to copy,
22
+ modify and redistribute granted by the license, users are provided only
23
+ with a limited warranty and the software's author, the holder of the
24
+ economic rights, and the successive licensors have only limited
25
+ liability.
26
+
27
+ In this respect, the user's attention is drawn to the risks associated
28
+ with loading, using, modifying and/or developing or reproducing the
29
+ software by the user in light of its specific status of free software,
30
+ that may mean that it is complicated to manipulate, and that also
31
+ therefore means that it is reserved for developers and experienced
32
+ professionals having in-depth computer knowledge. Users are therefore
33
+ encouraged to load and test the software's suitability as regards their
34
+ requirements in conditions enabling the security of their systems and/or
35
+ data to be ensured and, more generally, to use and operate it in the
36
+ same conditions as regards security.
37
+
38
+ The fact that you are presently reading this means that you have had
39
+ knowledge of the CeCILL license and that you accept its terms.
40
+
41
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
42
+
43
+ This software is being developed by Eric Debreuve, a CNRS employee and
44
+ member of team Morpheme.
45
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
46
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
47
+ I3S, and Laboratory iBV.
48
+
49
+ CNRS: https://www.cnrs.fr/index.php/en
50
+ Inria: https://www.inria.fr/en/
51
+ UniCA: https://univ-cotedazur.eu/
52
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
53
+ I3S: https://www.i3s.unice.fr/en/
54
+ iBV: http://ibv.unice.fr/
55
+ Team Morpheme: https://team.inria.fr/morpheme/
56
+ """
@@ -1,35 +1,56 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
31
6
 
32
7
  import typing as h
33
8
 
34
9
  order_h = h.Literal["when", "context"]
35
10
  ORDER: tuple[str, ...] = h.get_args(order_h)
11
+
12
+ """
13
+ COPYRIGHT NOTICE
14
+
15
+ This software is governed by the CeCILL license under French law and
16
+ abiding by the rules of distribution of free software. You can use,
17
+ modify and/ or redistribute the software under the terms of the CeCILL
18
+ license as circulated by CEA, CNRS and INRIA at the following URL
19
+ "http://www.cecill.info".
20
+
21
+ As a counterpart to the access to the source code and rights to copy,
22
+ modify and redistribute granted by the license, users are provided only
23
+ with a limited warranty and the software's author, the holder of the
24
+ economic rights, and the successive licensors have only limited
25
+ liability.
26
+
27
+ In this respect, the user's attention is drawn to the risks associated
28
+ with loading, using, modifying and/or developing or reproducing the
29
+ software by the user in light of its specific status of free software,
30
+ that may mean that it is complicated to manipulate, and that also
31
+ therefore means that it is reserved for developers and experienced
32
+ professionals having in-depth computer knowledge. Users are therefore
33
+ encouraged to load and test the software's suitability as regards their
34
+ requirements in conditions enabling the security of their systems and/or
35
+ data to be ensured and, more generally, to use and operate it in the
36
+ same conditions as regards security.
37
+
38
+ The fact that you are presently reading this means that you have had
39
+ knowledge of the CeCILL license and that you accept its terms.
40
+
41
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
42
+
43
+ This software is being developed by Eric Debreuve, a CNRS employee and
44
+ member of team Morpheme.
45
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
46
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
47
+ I3S, and Laboratory iBV.
48
+
49
+ CNRS: https://www.cnrs.fr/index.php/en
50
+ Inria: https://www.inria.fr/en/
51
+ UniCA: https://univ-cotedazur.eu/
52
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
53
+ I3S: https://www.i3s.unice.fr/en/
54
+ iBV: http://ibv.unice.fr/
55
+ Team Morpheme: https://team.inria.fr/morpheme/
56
+ """
@@ -1,33 +1,8 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
31
6
 
32
7
  import logging as lggg
33
8
  import re as regx
@@ -48,3 +23,49 @@ HIDE_WHERE_KWARG = {"extra": {HIDE_WHERE_ATTR: True}}
48
23
  logger_handle_h = (
49
24
  h.Callable[[lggg.LogRecord], None] | h.Callable[[lggg.Logger, lggg.LogRecord], None]
50
25
  )
26
+
27
+ """
28
+ COPYRIGHT NOTICE
29
+
30
+ This software is governed by the CeCILL license under French law and
31
+ abiding by the rules of distribution of free software. You can use,
32
+ modify and/ or redistribute the software under the terms of the CeCILL
33
+ license as circulated by CEA, CNRS and INRIA at the following URL
34
+ "http://www.cecill.info".
35
+
36
+ As a counterpart to the access to the source code and rights to copy,
37
+ modify and redistribute granted by the license, users are provided only
38
+ with a limited warranty and the software's author, the holder of the
39
+ economic rights, and the successive licensors have only limited
40
+ liability.
41
+
42
+ In this respect, the user's attention is drawn to the risks associated
43
+ with loading, using, modifying and/or developing or reproducing the
44
+ software by the user in light of its specific status of free software,
45
+ that may mean that it is complicated to manipulate, and that also
46
+ therefore means that it is reserved for developers and experienced
47
+ professionals having in-depth computer knowledge. Users are therefore
48
+ encouraged to load and test the software's suitability as regards their
49
+ requirements in conditions enabling the security of their systems and/or
50
+ data to be ensured and, more generally, to use and operate it in the
51
+ same conditions as regards security.
52
+
53
+ The fact that you are presently reading this means that you have had
54
+ knowledge of the CeCILL license and that you accept its terms.
55
+
56
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
57
+
58
+ This software is being developed by Eric Debreuve, a CNRS employee and
59
+ member of team Morpheme.
60
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
61
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
62
+ I3S, and Laboratory iBV.
63
+
64
+ CNRS: https://www.cnrs.fr/index.php/en
65
+ Inria: https://www.inria.fr/en/
66
+ UniCA: https://univ-cotedazur.eu/
67
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
68
+ I3S: https://www.i3s.unice.fr/en/
69
+ iBV: http://ibv.unice.fr/
70
+ Team Morpheme: https://team.inria.fr/morpheme/
71
+ """
@@ -1,33 +1,8 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
31
6
 
32
7
  import typing as h
33
8
 
@@ -35,3 +10,49 @@ storage_units_h = h.Literal["b", "k", "m", "g", "a"]
35
10
  STORAGE_UNITS: tuple[str, ...] = h.get_args(storage_units_h)
36
11
 
37
12
  UNKNOWN_MEMORY_USAGE = -1
13
+
14
+ """
15
+ COPYRIGHT NOTICE
16
+
17
+ This software is governed by the CeCILL license under French law and
18
+ abiding by the rules of distribution of free software. You can use,
19
+ modify and/ or redistribute the software under the terms of the CeCILL
20
+ license as circulated by CEA, CNRS and INRIA at the following URL
21
+ "http://www.cecill.info".
22
+
23
+ As a counterpart to the access to the source code and rights to copy,
24
+ modify and redistribute granted by the license, users are provided only
25
+ with a limited warranty and the software's author, the holder of the
26
+ economic rights, and the successive licensors have only limited
27
+ liability.
28
+
29
+ In this respect, the user's attention is drawn to the risks associated
30
+ with loading, using, modifying and/or developing or reproducing the
31
+ software by the user in light of its specific status of free software,
32
+ that may mean that it is complicated to manipulate, and that also
33
+ therefore means that it is reserved for developers and experienced
34
+ professionals having in-depth computer knowledge. Users are therefore
35
+ encouraged to load and test the software's suitability as regards their
36
+ requirements in conditions enabling the security of their systems and/or
37
+ data to be ensured and, more generally, to use and operate it in the
38
+ same conditions as regards security.
39
+
40
+ The fact that you are presently reading this means that you have had
41
+ knowledge of the CeCILL license and that you accept its terms.
42
+
43
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
44
+
45
+ This software is being developed by Eric Debreuve, a CNRS employee and
46
+ member of team Morpheme.
47
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
48
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
49
+ I3S, and Laboratory iBV.
50
+
51
+ CNRS: https://www.cnrs.fr/index.php/en
52
+ Inria: https://www.inria.fr/en/
53
+ UniCA: https://univ-cotedazur.eu/
54
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
55
+ I3S: https://www.i3s.unice.fr/en/
56
+ iBV: http://ibv.unice.fr/
57
+ Team Morpheme: https://team.inria.fr/morpheme/
58
+ """
@@ -1,33 +1,8 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
31
6
 
32
7
  import time
33
8
  import typing as h
@@ -46,3 +21,49 @@ NEXT_LINE_PROLOGUE = "\n" + (CONTEXT_LENGTH + MESSAGE_MARKER.__len__() + 1) * "
46
21
 
47
22
  expected_op_h = h.Literal[": ", "=", "!=", ">=", "<="]
48
23
  EXPECTED_OP: tuple[str, ...] = h.get_args(expected_op_h)
24
+
25
+ """
26
+ COPYRIGHT NOTICE
27
+
28
+ This software is governed by the CeCILL license under French law and
29
+ abiding by the rules of distribution of free software. You can use,
30
+ modify and/ or redistribute the software under the terms of the CeCILL
31
+ license as circulated by CEA, CNRS and INRIA at the following URL
32
+ "http://www.cecill.info".
33
+
34
+ As a counterpart to the access to the source code and rights to copy,
35
+ modify and redistribute granted by the license, users are provided only
36
+ with a limited warranty and the software's author, the holder of the
37
+ economic rights, and the successive licensors have only limited
38
+ liability.
39
+
40
+ In this respect, the user's attention is drawn to the risks associated
41
+ with loading, using, modifying and/or developing or reproducing the
42
+ software by the user in light of its specific status of free software,
43
+ that may mean that it is complicated to manipulate, and that also
44
+ therefore means that it is reserved for developers and experienced
45
+ professionals having in-depth computer knowledge. Users are therefore
46
+ encouraged to load and test the software's suitability as regards their
47
+ requirements in conditions enabling the security of their systems and/or
48
+ data to be ensured and, more generally, to use and operate it in the
49
+ same conditions as regards security.
50
+
51
+ The fact that you are presently reading this means that you have had
52
+ knowledge of the CeCILL license and that you accept its terms.
53
+
54
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
55
+
56
+ This software is being developed by Eric Debreuve, a CNRS employee and
57
+ member of team Morpheme.
58
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
59
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
60
+ I3S, and Laboratory iBV.
61
+
62
+ CNRS: https://www.cnrs.fr/index.php/en
63
+ Inria: https://www.inria.fr/en/
64
+ UniCA: https://univ-cotedazur.eu/
65
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
66
+ I3S: https://www.i3s.unice.fr/en/
67
+ iBV: http://ibv.unice.fr/
68
+ Team Morpheme: https://team.inria.fr/morpheme/
69
+ """
@@ -1,35 +1,56 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
31
6
 
32
7
  SHOW_W_RULE_ATTR = "show_w_rule"
33
8
  SHOW_WHERE_ATTR = "where"
34
9
  HIDE_WHERE_ATTR = "hide_where"
35
10
  SHOW_MEMORY_ATTR = "show_memory_usage"
11
+
12
+ """
13
+ COPYRIGHT NOTICE
14
+
15
+ This software is governed by the CeCILL license under French law and
16
+ abiding by the rules of distribution of free software. You can use,
17
+ modify and/ or redistribute the software under the terms of the CeCILL
18
+ license as circulated by CEA, CNRS and INRIA at the following URL
19
+ "http://www.cecill.info".
20
+
21
+ As a counterpart to the access to the source code and rights to copy,
22
+ modify and redistribute granted by the license, users are provided only
23
+ with a limited warranty and the software's author, the holder of the
24
+ economic rights, and the successive licensors have only limited
25
+ liability.
26
+
27
+ In this respect, the user's attention is drawn to the risks associated
28
+ with loading, using, modifying and/or developing or reproducing the
29
+ software by the user in light of its specific status of free software,
30
+ that may mean that it is complicated to manipulate, and that also
31
+ therefore means that it is reserved for developers and experienced
32
+ professionals having in-depth computer knowledge. Users are therefore
33
+ encouraged to load and test the software's suitability as regards their
34
+ requirements in conditions enabling the security of their systems and/or
35
+ data to be ensured and, more generally, to use and operate it in the
36
+ same conditions as regards security.
37
+
38
+ The fact that you are presently reading this means that you have had
39
+ knowledge of the CeCILL license and that you accept its terms.
40
+
41
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
42
+
43
+ This software is being developed by Eric Debreuve, a CNRS employee and
44
+ member of team Morpheme.
45
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
46
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
47
+ I3S, and Laboratory iBV.
48
+
49
+ CNRS: https://www.cnrs.fr/index.php/en
50
+ Inria: https://www.inria.fr/en/
51
+ UniCA: https://univ-cotedazur.eu/
52
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
53
+ I3S: https://www.i3s.unice.fr/en/
54
+ iBV: http://ibv.unice.fr/
55
+ Team Morpheme: https://team.inria.fr/morpheme/
56
+ """
@@ -1,39 +1,67 @@
1
- # Copyright CNRS/Inria/UniCA
2
- # Contributor(s): Eric Debreuve (since 2023)
3
- #
4
- # eric.debreuve@cnrs.fr
5
- #
6
- # This software is governed by the CeCILL license under French law and
7
- # abiding by the rules of distribution of free software. You can use,
8
- # modify and/ or redistribute the software under the terms of the CeCILL
9
- # license as circulated by CEA, CNRS and INRIA at the following URL
10
- # "http://www.cecill.info".
11
- #
12
- # As a counterpart to the access to the source code and rights to copy,
13
- # modify and redistribute granted by the license, users are provided only
14
- # with a limited warranty and the software's author, the holder of the
15
- # economic rights, and the successive licensors have only limited
16
- # liability.
17
- #
18
- # In this respect, the user's attention is drawn to the risks associated
19
- # with loading, using, modifying and/or developing or reproducing the
20
- # software by the user in light of its specific status of free software,
21
- # that may mean that it is complicated to manipulate, and that also
22
- # therefore means that it is reserved for developers and experienced
23
- # professionals having in-depth computer knowledge. Users are therefore
24
- # encouraged to load and test the software's suitability as regards their
25
- # requirements in conditions enabling the security of their systems and/or
26
- # data to be ensured and, more generally, to use and operate it in the
27
- # same conditions as regards security.
28
- #
29
- # The fact that you are presently reading this means that you have had
30
- # knowledge of the CeCILL license and that you accept its terms.
31
-
32
- import platform as pltf
1
+ """
2
+ Copyright CNRS/Inria/UniCA
3
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
4
+ SEE COPYRIGHT NOTICE BELOW
5
+ """
6
+
7
+ try:
8
+ import platform as pltf
9
+ except ModuleNotFoundError:
10
+ pltf = None
33
11
 
34
12
  from logger_36.config.system import SYSTEM_DETAILS
35
13
 
36
- SYSTEM_DETAILS_AS_DICT = {
37
- _dtl.capitalize(): getattr(pltf, _dtl)() for _dtl in SYSTEM_DETAILS
38
- }
39
- MAX_DETAIL_NAME_LENGTH = max(map(len, SYSTEM_DETAILS_AS_DICT.keys()))
14
+ if pltf is None:
15
+ SYSTEM_DETAILS_AS_DICT = {}
16
+ MAX_DETAIL_NAME_LENGTH = 0
17
+ else:
18
+ SYSTEM_DETAILS_AS_DICT = {
19
+ _dtl.capitalize(): getattr(pltf, _dtl)() for _dtl in SYSTEM_DETAILS
20
+ }
21
+ MAX_DETAIL_NAME_LENGTH = max(map(len, SYSTEM_DETAILS_AS_DICT.keys()))
22
+
23
+ """
24
+ COPYRIGHT NOTICE
25
+
26
+ This software is governed by the CeCILL license under French law and
27
+ abiding by the rules of distribution of free software. You can use,
28
+ modify and/ or redistribute the software under the terms of the CeCILL
29
+ license as circulated by CEA, CNRS and INRIA at the following URL
30
+ "http://www.cecill.info".
31
+
32
+ As a counterpart to the access to the source code and rights to copy,
33
+ modify and redistribute granted by the license, users are provided only
34
+ with a limited warranty and the software's author, the holder of the
35
+ economic rights, and the successive licensors have only limited
36
+ liability.
37
+
38
+ In this respect, the user's attention is drawn to the risks associated
39
+ with loading, using, modifying and/or developing or reproducing the
40
+ software by the user in light of its specific status of free software,
41
+ that may mean that it is complicated to manipulate, and that also
42
+ therefore means that it is reserved for developers and experienced
43
+ professionals having in-depth computer knowledge. Users are therefore
44
+ encouraged to load and test the software's suitability as regards their
45
+ requirements in conditions enabling the security of their systems and/or
46
+ data to be ensured and, more generally, to use and operate it in the
47
+ same conditions as regards security.
48
+
49
+ The fact that you are presently reading this means that you have had
50
+ knowledge of the CeCILL license and that you accept its terms.
51
+
52
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
53
+
54
+ This software is being developed by Eric Debreuve, a CNRS employee and
55
+ member of team Morpheme.
56
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
57
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
58
+ I3S, and Laboratory iBV.
59
+
60
+ CNRS: https://www.cnrs.fr/index.php/en
61
+ Inria: https://www.inria.fr/en/
62
+ UniCA: https://univ-cotedazur.eu/
63
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
64
+ I3S: https://www.i3s.unice.fr/en/
65
+ iBV: http://ibv.unice.fr/
66
+ Team Morpheme: https://team.inria.fr/morpheme/
67
+ """