str-to-obj 2024.3__py3-none-any.whl → 2024.4__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.4.dist-info}/METADATA +52 -31
- str_to_obj-2024.4.dist-info/RECORD +24 -0
- str_to_obj-2024.3.dist-info/RECORD +0 -24
- {str_to_obj-2024.3.dist-info → str_to_obj-2024.4.dist-info}/WHEEL +0 -0
- {str_to_obj-2024.3.dist-info → str_to_obj-2024.4.dist-info}/top_level.txt +0 -0
str_to_obj/task/casting.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
|
from __future__ import annotations
|
33
8
|
|
@@ -231,3 +206,50 @@ def CastValue(
|
|
231
206
|
hint = hint_tree_t.NewForHint(hint)
|
232
207
|
|
233
208
|
return value_tree.CastValue(hint, only_check_validity=only_check_validity)
|
209
|
+
|
210
|
+
|
211
|
+
"""
|
212
|
+
COPYRIGHT NOTICE
|
213
|
+
|
214
|
+
This software is governed by the CeCILL license under French law and
|
215
|
+
abiding by the rules of distribution of free software. You can use,
|
216
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
217
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
218
|
+
"http://www.cecill.info".
|
219
|
+
|
220
|
+
As a counterpart to the access to the source code and rights to copy,
|
221
|
+
modify and redistribute granted by the license, users are provided only
|
222
|
+
with a limited warranty and the software's author, the holder of the
|
223
|
+
economic rights, and the successive licensors have only limited
|
224
|
+
liability.
|
225
|
+
|
226
|
+
In this respect, the user's attention is drawn to the risks associated
|
227
|
+
with loading, using, modifying and/or developing or reproducing the
|
228
|
+
software by the user in light of its specific status of free software,
|
229
|
+
that may mean that it is complicated to manipulate, and that also
|
230
|
+
therefore means that it is reserved for developers and experienced
|
231
|
+
professionals having in-depth computer knowledge. Users are therefore
|
232
|
+
encouraged to load and test the software's suitability as regards their
|
233
|
+
requirements in conditions enabling the security of their systems and/or
|
234
|
+
data to be ensured and, more generally, to use and operate it in the
|
235
|
+
same conditions as regards security.
|
236
|
+
|
237
|
+
The fact that you are presently reading this means that you have had
|
238
|
+
knowledge of the CeCILL license and that you accept its terms.
|
239
|
+
|
240
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
241
|
+
|
242
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
243
|
+
member of team Morpheme.
|
244
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
245
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
246
|
+
I3S, and Laboratory iBV.
|
247
|
+
|
248
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
249
|
+
Inria: https://www.inria.fr/en/
|
250
|
+
UniCA: https://univ-cotedazur.eu/
|
251
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
252
|
+
I3S: https://www.i3s.unice.fr/en/
|
253
|
+
iBV: http://ibv.unice.fr/
|
254
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
255
|
+
"""
|
str_to_obj/task/comparison.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 types as t
|
33
8
|
import typing as h
|
@@ -66,3 +41,50 @@ def TypesAreCompatible(
|
|
66
41
|
return issubclass(one.type, another.type)
|
67
42
|
|
68
43
|
return issubclass(one.type, another.type) or issubclass(another.type, one.type)
|
44
|
+
|
45
|
+
|
46
|
+
"""
|
47
|
+
COPYRIGHT NOTICE
|
48
|
+
|
49
|
+
This software is governed by the CeCILL license under French law and
|
50
|
+
abiding by the rules of distribution of free software. You can use,
|
51
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
52
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
53
|
+
"http://www.cecill.info".
|
54
|
+
|
55
|
+
As a counterpart to the access to the source code and rights to copy,
|
56
|
+
modify and redistribute granted by the license, users are provided only
|
57
|
+
with a limited warranty and the software's author, the holder of the
|
58
|
+
economic rights, and the successive licensors have only limited
|
59
|
+
liability.
|
60
|
+
|
61
|
+
In this respect, the user's attention is drawn to the risks associated
|
62
|
+
with loading, using, modifying and/or developing or reproducing the
|
63
|
+
software by the user in light of its specific status of free software,
|
64
|
+
that may mean that it is complicated to manipulate, and that also
|
65
|
+
therefore means that it is reserved for developers and experienced
|
66
|
+
professionals having in-depth computer knowledge. Users are therefore
|
67
|
+
encouraged to load and test the software's suitability as regards their
|
68
|
+
requirements in conditions enabling the security of their systems and/or
|
69
|
+
data to be ensured and, more generally, to use and operate it in the
|
70
|
+
same conditions as regards security.
|
71
|
+
|
72
|
+
The fact that you are presently reading this means that you have had
|
73
|
+
knowledge of the CeCILL license and that you accept its terms.
|
74
|
+
|
75
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
76
|
+
|
77
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
78
|
+
member of team Morpheme.
|
79
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
80
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
81
|
+
I3S, and Laboratory iBV.
|
82
|
+
|
83
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
84
|
+
Inria: https://www.inria.fr/en/
|
85
|
+
UniCA: https://univ-cotedazur.eu/
|
86
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
87
|
+
I3S: https://www.i3s.unice.fr/en/
|
88
|
+
iBV: http://ibv.unice.fr/
|
89
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
90
|
+
"""
|
str_to_obj/task/inspection.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 typing as h
|
33
8
|
|
@@ -54,7 +29,7 @@ def AnnotationsOfAnnotatedHint(
|
|
54
29
|
return output
|
55
30
|
|
56
31
|
raise ValueError(
|
57
|
-
f'
|
32
|
+
f'Not all elements of {output} are of type "{annotation_t.__name__}".'
|
58
33
|
)
|
59
34
|
|
60
35
|
|
@@ -64,3 +39,50 @@ def HintComponents(hint: any_hint_h, /) -> tuple[raw_hint_h, tuple[h.Any, ...]]:
|
|
64
39
|
return TypeOfAnnotatedHint(hint), AnnotationsOfAnnotatedHint(hint)
|
65
40
|
|
66
41
|
return hint, ()
|
42
|
+
|
43
|
+
|
44
|
+
"""
|
45
|
+
COPYRIGHT NOTICE
|
46
|
+
|
47
|
+
This software is governed by the CeCILL license under French law and
|
48
|
+
abiding by the rules of distribution of free software. You can use,
|
49
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
50
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
51
|
+
"http://www.cecill.info".
|
52
|
+
|
53
|
+
As a counterpart to the access to the source code and rights to copy,
|
54
|
+
modify and redistribute granted by the license, users are provided only
|
55
|
+
with a limited warranty and the software's author, the holder of the
|
56
|
+
economic rights, and the successive licensors have only limited
|
57
|
+
liability.
|
58
|
+
|
59
|
+
In this respect, the user's attention is drawn to the risks associated
|
60
|
+
with loading, using, modifying and/or developing or reproducing the
|
61
|
+
software by the user in light of its specific status of free software,
|
62
|
+
that may mean that it is complicated to manipulate, and that also
|
63
|
+
therefore means that it is reserved for developers and experienced
|
64
|
+
professionals having in-depth computer knowledge. Users are therefore
|
65
|
+
encouraged to load and test the software's suitability as regards their
|
66
|
+
requirements in conditions enabling the security of their systems and/or
|
67
|
+
data to be ensured and, more generally, to use and operate it in the
|
68
|
+
same conditions as regards security.
|
69
|
+
|
70
|
+
The fact that you are presently reading this means that you have had
|
71
|
+
knowledge of the CeCILL license and that you accept its terms.
|
72
|
+
|
73
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
74
|
+
|
75
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
76
|
+
member of team Morpheme.
|
77
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
78
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
79
|
+
I3S, and Laboratory iBV.
|
80
|
+
|
81
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
82
|
+
Inria: https://www.inria.fr/en/
|
83
|
+
UniCA: https://univ-cotedazur.eu/
|
84
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
85
|
+
I3S: https://www.i3s.unice.fr/en/
|
86
|
+
iBV: http://ibv.unice.fr/
|
87
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
88
|
+
"""
|
str_to_obj/type/hint_tree.py
CHANGED
@@ -36,6 +36,7 @@ import re as regx
|
|
36
36
|
import types as t
|
37
37
|
import typing as h
|
38
38
|
|
39
|
+
from logger_36 import FormattedMessage
|
39
40
|
from str_to_obj.task.inspection import HintComponents
|
40
41
|
from str_to_obj.type.annotation import annotation_t
|
41
42
|
from str_to_obj.type.hint import (
|
@@ -72,8 +73,9 @@ class hint_tree_t(_hint_node_t):
|
|
72
73
|
if isinstance(hint, annotation_t):
|
73
74
|
# This is a common mistake in specifications.
|
74
75
|
raise ValueError(
|
75
|
-
|
76
|
-
|
76
|
+
FormattedMessage(
|
77
|
+
"Invalid hint type", actual=type(hint).__name__, expected=any_hint_h
|
78
|
+
)
|
77
79
|
)
|
78
80
|
|
79
81
|
# Dealing with complex_hint_additions_h first
|
@@ -90,7 +92,7 @@ class hint_tree_t(_hint_node_t):
|
|
90
92
|
|
91
93
|
# Handled types: list, set, tuple, with sets using the dict delimiters { and }.
|
92
94
|
if origin is dict:
|
93
|
-
raise TypeError(f"{origin.__name__}
|
95
|
+
raise TypeError(f"Unhandled type: {origin.__name__}.")
|
94
96
|
|
95
97
|
if origin is h.Union:
|
96
98
|
origin = t.UnionType
|
str_to_obj/version.py
CHANGED
@@ -1,34 +1,54 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
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
|
+
__version__ = "2024.4"
|
8
|
+
|
9
|
+
|
10
|
+
"""
|
11
|
+
COPYRIGHT NOTICE
|
12
|
+
|
13
|
+
This software is governed by the CeCILL license under French law and
|
14
|
+
abiding by the rules of distribution of free software. You can use,
|
15
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
16
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
17
|
+
"http://www.cecill.info".
|
18
|
+
|
19
|
+
As a counterpart to the access to the source code and rights to copy,
|
20
|
+
modify and redistribute granted by the license, users are provided only
|
21
|
+
with a limited warranty and the software's author, the holder of the
|
22
|
+
economic rights, and the successive licensors have only limited
|
23
|
+
liability.
|
24
|
+
|
25
|
+
In this respect, the user's attention is drawn to the risks associated
|
26
|
+
with loading, using, modifying and/or developing or reproducing the
|
27
|
+
software by the user in light of its specific status of free software,
|
28
|
+
that may mean that it is complicated to manipulate, and that also
|
29
|
+
therefore means that it is reserved for developers and experienced
|
30
|
+
professionals having in-depth computer knowledge. Users are therefore
|
31
|
+
encouraged to load and test the software's suitability as regards their
|
32
|
+
requirements in conditions enabling the security of their systems and/or
|
33
|
+
data to be ensured and, more generally, to use and operate it in the
|
34
|
+
same conditions as regards security.
|
35
|
+
|
36
|
+
The fact that you are presently reading this means that you have had
|
37
|
+
knowledge of the CeCILL license and that you accept its terms.
|
38
|
+
|
39
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
40
|
+
|
41
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
42
|
+
member of team Morpheme.
|
43
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
44
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
45
|
+
I3S, and Laboratory iBV.
|
46
|
+
|
47
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
48
|
+
Inria: https://www.inria.fr/en/
|
49
|
+
UniCA: https://univ-cotedazur.eu/
|
50
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
51
|
+
I3S: https://www.i3s.unice.fr/en/
|
52
|
+
iBV: http://ibv.unice.fr/
|
53
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
54
|
+
"""
|
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: str-to-obj
|
3
|
-
Version: 2024.
|
3
|
+
Version: 2024.4
|
4
4
|
Summary: Convert strings to Python objects guided by (potentially annotated) type hints
|
5
5
|
Home-page: https://src.koda.cnrs.fr/eric.debreuve/str-to-obj/
|
6
6
|
Author: Eric Debreuve
|
@@ -16,39 +16,13 @@ Classifier: Programming Language :: Python :: 3.11
|
|
16
16
|
Classifier: Development Status :: 4 - Beta
|
17
17
|
Requires-Python: >=3.11
|
18
18
|
Description-Content-Type: text/x-rst
|
19
|
+
Requires-Dist: logger-36
|
19
20
|
Requires-Dist: rich
|
20
21
|
|
21
22
|
..
|
22
|
-
Copyright CNRS/Inria/
|
23
|
-
Contributor(s): Eric Debreuve (since 2023
|
24
|
-
|
25
|
-
eric.debreuve@cnrs.fr
|
26
|
-
|
27
|
-
This software is governed by the CeCILL license under French law and
|
28
|
-
abiding by the rules of distribution of free software. You can use,
|
29
|
-
modify and/ or redistribute the software under the terms of the CeCILL
|
30
|
-
license as circulated by CEA, CNRS and INRIA at the following URL
|
31
|
-
"http://www.cecill.info".
|
32
|
-
|
33
|
-
As a counterpart to the access to the source code and rights to copy,
|
34
|
-
modify and redistribute granted by the license, users are provided only
|
35
|
-
with a limited warranty and the software's author, the holder of the
|
36
|
-
economic rights, and the successive licensors have only limited
|
37
|
-
liability.
|
38
|
-
|
39
|
-
In this respect, the user's attention is drawn to the risks associated
|
40
|
-
with loading, using, modifying and/or developing or reproducing the
|
41
|
-
software by the user in light of its specific status of free software,
|
42
|
-
that may mean that it is complicated to manipulate, and that also
|
43
|
-
therefore means that it is reserved for developers and experienced
|
44
|
-
professionals having in-depth computer knowledge. Users are therefore
|
45
|
-
encouraged to load and test the software's suitability as regards their
|
46
|
-
requirements in conditions enabling the security of their systems and/or
|
47
|
-
data to be ensured and, more generally, to use and operate it in the
|
48
|
-
same conditions as regards security.
|
49
|
-
|
50
|
-
The fact that you are presently reading this means that you have had
|
51
|
-
knowledge of the CeCILL license and that you accept its terms.
|
23
|
+
Copyright CNRS/Inria/UniCA
|
24
|
+
Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
|
25
|
+
SEE COPYRIGHT NOTICE BELOW
|
52
26
|
|
53
27
|
.. |PROJECT_NAME| replace:: Str-to-Obj
|
54
28
|
.. |SHORT_DESCRIPTION| replace:: Convert strings to Python objects guided by (potentially annotated) type hints
|
@@ -113,3 +87,50 @@ The development relies on several open-source packages
|
|
113
87
|
The code is formatted by `Black <https://github.com/psf/black/>`_, *The Uncompromising Code Formatter*.
|
114
88
|
|
115
89
|
The imports are ordered by `isort <https://github.com/timothycrosley/isort/>`_... *your imports, so you don't have to*.
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
..
|
94
|
+
COPYRIGHT NOTICE
|
95
|
+
|
96
|
+
This software is governed by the CeCILL license under French law and
|
97
|
+
abiding by the rules of distribution of free software. You can use,
|
98
|
+
modify and/ or redistribute the software under the terms of the CeCILL
|
99
|
+
license as circulated by CEA, CNRS and INRIA at the following URL
|
100
|
+
"http://www.cecill.info".
|
101
|
+
|
102
|
+
As a counterpart to the access to the source code and rights to copy,
|
103
|
+
modify and redistribute granted by the license, users are provided only
|
104
|
+
with a limited warranty and the software's author, the holder of the
|
105
|
+
economic rights, and the successive licensors have only limited
|
106
|
+
liability.
|
107
|
+
|
108
|
+
In this respect, the user's attention is drawn to the risks associated
|
109
|
+
with loading, using, modifying and/or developing or reproducing the
|
110
|
+
software by the user in light of its specific status of free software,
|
111
|
+
that may mean that it is complicated to manipulate, and that also
|
112
|
+
therefore means that it is reserved for developers and experienced
|
113
|
+
professionals having in-depth computer knowledge. Users are therefore
|
114
|
+
encouraged to load and test the software's suitability as regards their
|
115
|
+
requirements in conditions enabling the security of their systems and/or
|
116
|
+
data to be ensured and, more generally, to use and operate it in the
|
117
|
+
same conditions as regards security.
|
118
|
+
|
119
|
+
The fact that you are presently reading this means that you have had
|
120
|
+
knowledge of the CeCILL license and that you accept its terms.
|
121
|
+
|
122
|
+
SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
|
123
|
+
|
124
|
+
This software is being developed by Eric Debreuve, a CNRS employee and
|
125
|
+
member of team Morpheme.
|
126
|
+
Team Morpheme is a joint team between Inria, CNRS, and UniCA.
|
127
|
+
It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
|
128
|
+
I3S, and Laboratory iBV.
|
129
|
+
|
130
|
+
CNRS: https://www.cnrs.fr/index.php/en
|
131
|
+
Inria: https://www.inria.fr/en/
|
132
|
+
UniCA: https://univ-cotedazur.eu/
|
133
|
+
Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
|
134
|
+
I3S: https://www.i3s.unice.fr/en/
|
135
|
+
iBV: http://ibv.unice.fr/
|
136
|
+
Team Morpheme: https://team.inria.fr/morpheme/
|
@@ -0,0 +1,24 @@
|
|
1
|
+
str_to_obj/__init__.py,sha256=kNBfT5wXbdCVGkV3X5dsFRQlyKOZNWkcQZ66qVQuOvM,2457
|
2
|
+
str_to_obj/main.py,sha256=5XDr99VfwrHeK1cCbfsjRymYGVWhdTOX6zv37mw28uY,3112
|
3
|
+
str_to_obj/version.py,sha256=aTeq7VS44HQH_4_o0oDkd9qALDOYV21GXwluTQ7iTmY,2206
|
4
|
+
str_to_obj/catalog/boolean.py,sha256=06q5CqJrWj_HvNj5XiVu-28e0l6_6QqNRVFW_QEmJ-w,3482
|
5
|
+
str_to_obj/catalog/callable.py,sha256=NCoogYzVBUSqiYEj_DoG-szqQdnYhvSj0xdyvg1W7Jw,3626
|
6
|
+
str_to_obj/catalog/choices.py,sha256=YvRkgThmUhGVOl-SeNXrVC5Gwg9shCDdU0-dJ9Zk_zw,3798
|
7
|
+
str_to_obj/catalog/collection.py,sha256=rceqOpiTRX9YqYoZGr0DNlVxSEv5nVOQeQUCCk_aCVc,6809
|
8
|
+
str_to_obj/catalog/number.py,sha256=U__ZF9TYMuIlIyY1QHIK2f89cPPCvmrNMhK3sCA7n0E,5461
|
9
|
+
str_to_obj/catalog/path.py,sha256=xBrQJ-RMH-y_oaWP-uUTSpIKcL2vrtXoqrSaaS4HRpg,3857
|
10
|
+
str_to_obj/interface/console.py,sha256=jiN5ffXfMo_N4Me2BHGZyau9yfR_H9xAnrJMMK3q6Dg,3038
|
11
|
+
str_to_obj/runtime/type.py,sha256=IGgBgvYu5QrxWKiEEwg5Hn1DNLYZrm6VX7b1o6_OMCI,2288
|
12
|
+
str_to_obj/runtime/value.py,sha256=l5I8_Aewu8Yzndnz03dUI_tfN0ZL-hMht2FmDYSUQL8,2268
|
13
|
+
str_to_obj/task/casting.py,sha256=n_GffWFlNPlN9xhevq4_VOqaQsI-jWkXDTBTGhDNz7w,9232
|
14
|
+
str_to_obj/task/comparison.py,sha256=UfAagi4dYtOstJYW9V4B3lZ3jwMVDMVZI1xk5hzrJ2I,3193
|
15
|
+
str_to_obj/task/inspection.py,sha256=M8YnYq4A_Zz7rC2kgTYSSSawTnG2dCug5FBoCOBJ5g8,3127
|
16
|
+
str_to_obj/type/annotation.py,sha256=dmLMtOnbP4NP7pPYEy9r7YhHF21EoTyz2BaO4vkB7qk,3216
|
17
|
+
str_to_obj/type/hint.py,sha256=jlQgGosqoszkreJYFS_pga5RpqrUiLYALoxtzrB5rPU,2180
|
18
|
+
str_to_obj/type/hint_tree.py,sha256=KXm_-_tiD0EZr4OAl5JShW2Zoet_owK0PioVi-XsCaU,6119
|
19
|
+
str_to_obj/type/type.py,sha256=6KZgHRKZi1zzJ9KiW2LLvUXVr0EALUM4Yz8cwvgFeBg,3459
|
20
|
+
str_to_obj/type/value.py,sha256=9sXtYf0kVHVpcczS_ZtVZa9_M17pIlYSZjYYE33sS1Y,1904
|
21
|
+
str_to_obj-2024.4.dist-info/METADATA,sha256=8SxgoB9FfLufWJh6Ts4nUZgW-n78l7s5qvMW9SMsgmM,6130
|
22
|
+
str_to_obj-2024.4.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
23
|
+
str_to_obj-2024.4.dist-info/top_level.txt,sha256=h-6bR_TAnXRGVSLTeNPlivlaG64xYM3E__Xg7sCgeug,11
|
24
|
+
str_to_obj-2024.4.dist-info/RECORD,,
|
@@ -1,24 +0,0 @@
|
|
1
|
-
str_to_obj/__init__.py,sha256=Lmbi2FLFg5Tma54APGsz7NUPCLA3Zslq13SdluTqRyk,1826
|
2
|
-
str_to_obj/main.py,sha256=ZcH2KpO9AO6Ozoroin_KkY78P5kV625sALf-ffbIOkE,2481
|
3
|
-
str_to_obj/version.py,sha256=RHtzTU05mIGO6twdijPeFO7ZnW72tfwbHKpkbUhztEw,1609
|
4
|
-
str_to_obj/catalog/boolean.py,sha256=-1k39odWGgm42cotKxdV00i_M4UbKByK_V8gawgYmjY,2724
|
5
|
-
str_to_obj/catalog/callable.py,sha256=mYj-qNGY0ncvFBNzzbphb0hOF1YMqPaXX1iRr6rev1c,2985
|
6
|
-
str_to_obj/catalog/choices.py,sha256=CxBngQYiC7Pct-sLQHmtDaPr93gt_H_DreO9-s3Znv0,3176
|
7
|
-
str_to_obj/catalog/collection.py,sha256=rOUtBkfL6KV05HtkHaMOrTls0bXRIq1lCECLvN_B37Q,6193
|
8
|
-
str_to_obj/catalog/number.py,sha256=UmUkOwnwNZyNxDeXzm_rZHFHpnzc5ovg3Us47Uord5c,4840
|
9
|
-
str_to_obj/catalog/path.py,sha256=rri5nZbZClINC__VzS4a6CpRvaLvkSVqcattuWGP9Ys,3217
|
10
|
-
str_to_obj/interface/console.py,sha256=YF95b31qPqzeG4lnYtoJ7awQM3QDSOhIjZUeadGd7L4,2406
|
11
|
-
str_to_obj/runtime/type.py,sha256=diT38JyuZHJb5-uzIf97s9iDzp_ADyLto5LGg0H3tyc,1657
|
12
|
-
str_to_obj/runtime/value.py,sha256=cj7RvdAEy9Xc6INaGGq0CirjZ9gv-moFFUlXuFbzvP8,1637
|
13
|
-
str_to_obj/task/casting.py,sha256=0CEVkXXLR9-8ilL3IbnrTTWx-q8Wvkx1VLPVEuCXgx8,8601
|
14
|
-
str_to_obj/task/comparison.py,sha256=j6YHHRrkR2oucQnwshl0fMQm7ReuaJFVpwqMHgld5X0,2562
|
15
|
-
str_to_obj/task/inspection.py,sha256=9wllLu9WmkB3LfduBnT4Wa47M4UzGy5bJK9OTnPfOgI,2494
|
16
|
-
str_to_obj/type/annotation.py,sha256=dmLMtOnbP4NP7pPYEy9r7YhHF21EoTyz2BaO4vkB7qk,3216
|
17
|
-
str_to_obj/type/hint.py,sha256=jlQgGosqoszkreJYFS_pga5RpqrUiLYALoxtzrB5rPU,2180
|
18
|
-
str_to_obj/type/hint_tree.py,sha256=-24_WCPX94K5ryY6DZKV-_4vnTyaqPV3vJ-OVX-iuxQ,6052
|
19
|
-
str_to_obj/type/type.py,sha256=6KZgHRKZi1zzJ9KiW2LLvUXVr0EALUM4Yz8cwvgFeBg,3459
|
20
|
-
str_to_obj/type/value.py,sha256=9sXtYf0kVHVpcczS_ZtVZa9_M17pIlYSZjYYE33sS1Y,1904
|
21
|
-
str_to_obj-2024.3.dist-info/METADATA,sha256=0Tz93wp4VmDSrNNiHUTIK6C0jdtTPX-794C9--Sbzyg,5389
|
22
|
-
str_to_obj-2024.3.dist-info/WHEEL,sha256=cpQTJ5IWu9CdaPViMhC9YzF8gZuS5-vlfoFihTBC86A,91
|
23
|
-
str_to_obj-2024.3.dist-info/top_level.txt,sha256=h-6bR_TAnXRGVSLTeNPlivlaG64xYM3E__Xg7sCgeug,11
|
24
|
-
str_to_obj-2024.3.dist-info/RECORD,,
|
File without changes
|
File without changes
|