str-to-obj 2024.3__py3-none-any.whl → 2024.5__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.
- str_to_obj/__init__.py +52 -30
- str_to_obj/catalog/boolean.py +63 -37
- str_to_obj/catalog/callable.py +58 -34
- str_to_obj/catalog/choices.py +60 -37
- str_to_obj/catalog/collection.py +64 -41
- str_to_obj/catalog/number.py +63 -41
- str_to_obj/catalog/path.py +57 -34
- str_to_obj/interface/console.py +53 -30
- str_to_obj/main.py +52 -30
- str_to_obj/runtime/type.py +52 -30
- str_to_obj/runtime/value.py +52 -30
- str_to_obj/task/casting.py +52 -30
- str_to_obj/task/comparison.py +52 -30
- str_to_obj/task/inspection.py +53 -31
- str_to_obj/type/hint_tree.py +5 -3
- str_to_obj/version.py +54 -34
- {str_to_obj-2024.3.dist-info → str_to_obj-2024.5.dist-info}/METADATA +52 -31
- str_to_obj-2024.5.dist-info/RECORD +24 -0
- {str_to_obj-2024.3.dist-info → str_to_obj-2024.5.dist-info}/WHEEL +1 -1
- str_to_obj-2024.3.dist-info/RECORD +0 -24
- {str_to_obj-2024.3.dist-info → str_to_obj-2024.5.dist-info}/top_level.txt +0 -0
str_to_obj/catalog/number.py
CHANGED
@@ -1,44 +1,19 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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 dataclasses as dtcl
|
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
|
+
import dataclasses as d
|
33
8
|
import typing as h
|
34
9
|
|
35
|
-
from
|
36
|
-
from str_to_obj import annotation_t
|
10
|
+
from logger_36 import LOGGER
|
11
|
+
from str_to_obj.type.annotation import annotation_t
|
37
12
|
|
38
13
|
number_h = int | float
|
39
14
|
|
40
15
|
|
41
|
-
@
|
16
|
+
@d.dataclass(slots=True, repr=False, eq=False)
|
42
17
|
class number_t(annotation_t):
|
43
18
|
INFINITY_NEG: h.ClassVar[float] = -float("inf")
|
44
19
|
INFINITY_POS: h.ClassVar[float] = float("inf")
|
@@ -55,11 +30,11 @@ class number_t(annotation_t):
|
|
55
30
|
""""""
|
56
31
|
stripe = self.__class__
|
57
32
|
|
58
|
-
with
|
33
|
+
with LOGGER.AddedContextLevel("Number Annotation"):
|
59
34
|
if (self.min != stripe.INFINITY_NEG) and not isinstance(
|
60
35
|
self.min, number_h.__args__
|
61
36
|
):
|
62
|
-
|
37
|
+
LOGGER.StageIssue(
|
63
38
|
f"Invalid type for min value {self.min}",
|
64
39
|
actual=type(self.min).__name__,
|
65
40
|
expected=number_h,
|
@@ -67,7 +42,7 @@ class number_t(annotation_t):
|
|
67
42
|
if (self.max != stripe.INFINITY_POS) and not isinstance(
|
68
43
|
self.max, number_h.__args__
|
69
44
|
):
|
70
|
-
|
45
|
+
LOGGER.StageIssue(
|
71
46
|
f"Invalid type for max value {self.max}",
|
72
47
|
actual=type(self.max).__name__,
|
73
48
|
expected=number_h,
|
@@ -75,13 +50,13 @@ class number_t(annotation_t):
|
|
75
50
|
if (self.precision != stripe.INFINITE_PRECISION) and not isinstance(
|
76
51
|
self.precision, number_h.__args__
|
77
52
|
):
|
78
|
-
|
53
|
+
LOGGER.StageIssue(
|
79
54
|
f"Invalid type for precision {self.precision}",
|
80
55
|
actual=type(self.precision).__name__,
|
81
56
|
expected=number_h,
|
82
57
|
)
|
83
58
|
if self.precision < 0:
|
84
|
-
|
59
|
+
LOGGER.StageIssue(f"Invalid, negative precision {self.precision}")
|
85
60
|
if (self.min > self.max) or (
|
86
61
|
(self.min == self.max)
|
87
62
|
and not (self.min_inclusive and self.max_inclusive)
|
@@ -94,7 +69,7 @@ class number_t(annotation_t):
|
|
94
69
|
closing = "]"
|
95
70
|
else:
|
96
71
|
closing = "["
|
97
|
-
|
72
|
+
LOGGER.StageIssue(
|
98
73
|
f"Empty value interval {opening}{self.min},{self.max}{closing}"
|
99
74
|
)
|
100
75
|
|
@@ -118,3 +93,50 @@ class number_t(annotation_t):
|
|
118
93
|
return []
|
119
94
|
else:
|
120
95
|
return [f"{value}: Value outside prescribed interval."]
|
96
|
+
|
97
|
+
|
98
|
+
"""
|
99
|
+
COPYRIGHT NOTICE
|
100
|
+
|
101
|
+
This software is governed by the CeCILL license under French law and
|
102
|
+
abiding by the rules of distribution of free software. You can use,
|
103
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
104
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
105
|
+
"http://www.cecill.info".
|
106
|
+
|
107
|
+
As a counterpart to the access to the source code and rights to copy,
|
108
|
+
modify and redistribute granted by the license, users are provided only
|
109
|
+
with a limited warranty and the software's author, the holder of the
|
110
|
+
economic rights, and the successive licensors have only limited
|
111
|
+
liability.
|
112
|
+
|
113
|
+
In this respect, the user's attention is drawn to the risks associated
|
114
|
+
with loading, using, modifying and/or developing or reproducing the
|
115
|
+
software by the user in light of its specific status of free software,
|
116
|
+
that may mean that it is complicated to manipulate, and that also
|
117
|
+
therefore means that it is reserved for developers and experienced
|
118
|
+
professionals having in-depth computer knowledge. Users are therefore
|
119
|
+
encouraged to load and test the software's suitability as regards their
|
120
|
+
requirements in conditions enabling the security of their systems and/or
|
121
|
+
data to be ensured and, more generally, to use and operate it in the
|
122
|
+
same conditions as regards security.
|
123
|
+
|
124
|
+
The fact that you are presently reading this means that you have had
|
125
|
+
knowledge of the CeCILL license and that you accept its terms.
|
126
|
+
|
127
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
128
|
+
|
129
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
130
|
+
member of team Morpheme.
|
131
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
132
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
133
|
+
I3S, and Laboratory iBV.
|
134
|
+
|
135
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
136
|
+
Inria: https://www.inria.fr/en/
|
137
|
+
UniCA: https://univ-cotedazur.eu/
|
138
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
139
|
+
I3S: https://www.i3s.unice.fr/en/
|
140
|
+
iBV: http://ibv.unice.fr/
|
141
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
142
|
+
"""
|
str_to_obj/catalog/path.py
CHANGED
@@ -1,40 +1,15 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
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 dataclasses as dtcl
|
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
|
+
import dataclasses as d
|
33
8
|
import typing as h
|
34
9
|
from enum import Enum as enum_t
|
35
10
|
from pathlib import Path as pl_path_t
|
36
11
|
|
37
|
-
from str_to_obj import annotation_t
|
12
|
+
from str_to_obj.type.annotation import annotation_t
|
38
13
|
from str_to_obj.type.hint import annotated_hint_t
|
39
14
|
|
40
15
|
|
@@ -50,10 +25,11 @@ class path_purpose_e(enum_t):
|
|
50
25
|
any = 3
|
51
26
|
|
52
27
|
|
53
|
-
@
|
28
|
+
@d.dataclass(slots=True, repr=False, eq=False)
|
54
29
|
class path_t(annotation_t):
|
55
30
|
|
56
31
|
ACCEPTED_TYPES: h.ClassVar[tuple[type, ...]] = (pl_path_t,)
|
32
|
+
|
57
33
|
type_: path_type_e
|
58
34
|
purpose: path_purpose_e
|
59
35
|
|
@@ -92,3 +68,50 @@ class path_t(annotation_t):
|
|
92
68
|
f"{value}: Non-existent file or folder, or file for folder, "
|
93
69
|
f"or folder for file."
|
94
70
|
]
|
71
|
+
|
72
|
+
|
73
|
+
"""
|
74
|
+
COPYRIGHT NOTICE
|
75
|
+
|
76
|
+
This software is governed by the CeCILL license under French law and
|
77
|
+
abiding by the rules of distribution of free software. You can use,
|
78
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
79
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
80
|
+
"http://www.cecill.info".
|
81
|
+
|
82
|
+
As a counterpart to the access to the source code and rights to copy,
|
83
|
+
modify and redistribute granted by the license, users are provided only
|
84
|
+
with a limited warranty and the software's author, the holder of the
|
85
|
+
economic rights, and the successive licensors have only limited
|
86
|
+
liability.
|
87
|
+
|
88
|
+
In this respect, the user's attention is drawn to the risks associated
|
89
|
+
with loading, using, modifying and/or developing or reproducing the
|
90
|
+
software by the user in light of its specific status of free software,
|
91
|
+
that may mean that it is complicated to manipulate, and that also
|
92
|
+
therefore means that it is reserved for developers and experienced
|
93
|
+
professionals having in-depth computer knowledge. Users are therefore
|
94
|
+
encouraged to load and test the software's suitability as regards their
|
95
|
+
requirements in conditions enabling the security of their systems and/or
|
96
|
+
data to be ensured and, more generally, to use and operate it in the
|
97
|
+
same conditions as regards security.
|
98
|
+
|
99
|
+
The fact that you are presently reading this means that you have had
|
100
|
+
knowledge of the CeCILL license and that you accept its terms.
|
101
|
+
|
102
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
103
|
+
|
104
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
105
|
+
member of team Morpheme.
|
106
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
107
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
108
|
+
I3S, and Laboratory iBV.
|
109
|
+
|
110
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
111
|
+
Inria: https://www.inria.fr/en/
|
112
|
+
UniCA: https://univ-cotedazur.eu/
|
113
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
114
|
+
I3S: https://www.i3s.unice.fr/en/
|
115
|
+
iBV: http://ibv.unice.fr/
|
116
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
117
|
+
"""
|
str_to_obj/interface/console.py
CHANGED
@@ -1,33 +1,9 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
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
|
+
"""
|
6
|
+
|
31
7
|
|
32
8
|
import typing as h
|
33
9
|
|
@@ -53,3 +29,50 @@ def NameValueTypeAsRichStr(name: str, value: h.Any, /, *, separator: str = "=")
|
|
53
29
|
value = "[cyan]<empty>[/]"
|
54
30
|
|
55
31
|
return f"[blue]{name}[/]{separator}{value}{formatted_type}"
|
32
|
+
|
33
|
+
|
34
|
+
"""
|
35
|
+
COPYRIGHT NOTICE
|
36
|
+
|
37
|
+
This software is governed by the CeCILL license under French law and
|
38
|
+
abiding by the rules of distribution of free software. You can use,
|
39
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
40
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
41
|
+
"http://www.cecill.info".
|
42
|
+
|
43
|
+
As a counterpart to the access to the source code and rights to copy,
|
44
|
+
modify and redistribute granted by the license, users are provided only
|
45
|
+
with a limited warranty and the software's author, the holder of the
|
46
|
+
economic rights, and the successive licensors have only limited
|
47
|
+
liability.
|
48
|
+
|
49
|
+
In this respect, the user's attention is drawn to the risks associated
|
50
|
+
with loading, using, modifying and/or developing or reproducing the
|
51
|
+
software by the user in light of its specific status of free software,
|
52
|
+
that may mean that it is complicated to manipulate, and that also
|
53
|
+
therefore means that it is reserved for developers and experienced
|
54
|
+
professionals having in-depth computer knowledge. Users are therefore
|
55
|
+
encouraged to load and test the software's suitability as regards their
|
56
|
+
requirements in conditions enabling the security of their systems and/or
|
57
|
+
data to be ensured and, more generally, to use and operate it in the
|
58
|
+
same conditions as regards security.
|
59
|
+
|
60
|
+
The fact that you are presently reading this means that you have had
|
61
|
+
knowledge of the CeCILL license and that you accept its terms.
|
62
|
+
|
63
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
64
|
+
|
65
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
66
|
+
member of team Morpheme.
|
67
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
68
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
69
|
+
I3S, and Laboratory iBV.
|
70
|
+
|
71
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
72
|
+
Inria: https://www.inria.fr/en/
|
73
|
+
UniCA: https://univ-cotedazur.eu/
|
74
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
75
|
+
I3S: https://www.i3s.unice.fr/en/
|
76
|
+
iBV: http://ibv.unice.fr/
|
77
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
78
|
+
"""
|
str_to_obj/main.py
CHANGED
@@ -1,33 +1,8 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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 ast as bstr
|
33
8
|
import types as t
|
@@ -63,3 +38,50 @@ def ObjectFromStr(
|
|
63
38
|
return value, []
|
64
39
|
|
65
40
|
return CastValue(value, expected_type)
|
41
|
+
|
42
|
+
|
43
|
+
"""
|
44
|
+
COPYRIGHT NOTICE
|
45
|
+
|
46
|
+
This software is governed by the CeCILL license under French law and
|
47
|
+
abiding by the rules of distribution of free software. You can use,
|
48
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
49
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
50
|
+
"http://www.cecill.info".
|
51
|
+
|
52
|
+
As a counterpart to the access to the source code and rights to copy,
|
53
|
+
modify and redistribute granted by the license, users are provided only
|
54
|
+
with a limited warranty and the software's author, the holder of the
|
55
|
+
economic rights, and the successive licensors have only limited
|
56
|
+
liability.
|
57
|
+
|
58
|
+
In this respect, the user's attention is drawn to the risks associated
|
59
|
+
with loading, using, modifying and/or developing or reproducing the
|
60
|
+
software by the user in light of its specific status of free software,
|
61
|
+
that may mean that it is complicated to manipulate, and that also
|
62
|
+
therefore means that it is reserved for developers and experienced
|
63
|
+
professionals having in-depth computer knowledge. Users are therefore
|
64
|
+
encouraged to load and test the software's suitability as regards their
|
65
|
+
requirements in conditions enabling the security of their systems and/or
|
66
|
+
data to be ensured and, more generally, to use and operate it in the
|
67
|
+
same conditions as regards security.
|
68
|
+
|
69
|
+
The fact that you are presently reading this means that you have had
|
70
|
+
knowledge of the CeCILL license and that you accept its terms.
|
71
|
+
|
72
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
73
|
+
|
74
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
75
|
+
member of team Morpheme.
|
76
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
77
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
78
|
+
I3S, and Laboratory iBV.
|
79
|
+
|
80
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
81
|
+
Inria: https://www.inria.fr/en/
|
82
|
+
UniCA: https://univ-cotedazur.eu/
|
83
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
84
|
+
I3S: https://www.i3s.unice.fr/en/
|
85
|
+
iBV: http://ibv.unice.fr/
|
86
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
87
|
+
"""
|
str_to_obj/runtime/type.py
CHANGED
@@ -1,36 +1,58 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
from str_to_obj.type.type import any_type_t
|
35
10
|
|
36
11
|
ANY_TYPE = any_type_t.NewForHint(h.Any)
|
12
|
+
|
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
|
+
"""
|
str_to_obj/runtime/value.py
CHANGED
@@ -1,34 +1,56 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
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
|
from str_to_obj.type.value import invalid_value_t
|
33
8
|
|
34
9
|
INVALID_VALUE = invalid_value_t()
|
10
|
+
|
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
|
+
"""
|