str-to-obj 2023.10__py3-none-any.whl → 2025.1__py3-none-any.whl

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,69 @@
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
+
8
+ class invalid_value_t:
9
+ """
10
+ Do not use invalid_value_t = object, for example, otherwise isinstance returns True
11
+ for anything.
12
+ """
13
+
14
+ TEXT = "INVALID VALUE"
15
+
16
+ def __str__(self) -> str:
17
+ """"""
18
+ return self.__class__.TEXT
19
+
20
+ def __rich__(self) -> str:
21
+ """"""
22
+ return f"[red]{self.__class__.TEXT}[/]"
23
+
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
+ """
str_to_obj/version.py CHANGED
@@ -1,34 +1,54 @@
1
- # Copyright CNRS/Inria/UCA
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
- __version__ = "2023.10"
33
-
34
- # TODO: Switch to issue-manager.
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__ = "2025.1"
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,54 +1,40 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: str-to-obj
3
- Version: 2023.10
3
+ Version: 2025.1
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
7
7
  Author-email: eric.debreuve@cnrs.fr
8
8
  License: CeCILL-2.1
9
- Project-URL: Documentation, https://src.koda.cnrs.fr/eric.debreuve/str-to-obj//-/wikis/home
9
+ Project-URL: Documentation, https://src.koda.cnrs.fr/eric.debreuve/str-to-obj/-/wikis/home
10
10
  Project-URL: Source, https://src.koda.cnrs.fr/eric.debreuve/str-to-obj/
11
11
  Keywords: str,character string,Python object,conversion,type hint,type annotation
12
12
  Classifier: Topic :: Software Development
13
13
  Classifier: Intended Audience :: Developers
14
14
  Classifier: License :: OSI Approved :: CEA CNRS Inria Logiciel Libre License, version 2.1 (CeCILL-2.1)
15
- Classifier: Programming Language :: Python :: 3.11
15
+ Classifier: Programming Language :: Python :: 3
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
21
+ Dynamic: author
22
+ Dynamic: author-email
23
+ Dynamic: classifier
24
+ Dynamic: description
25
+ Dynamic: description-content-type
26
+ Dynamic: home-page
27
+ Dynamic: keywords
28
+ Dynamic: license
29
+ Dynamic: project-url
30
+ Dynamic: requires-dist
31
+ Dynamic: requires-python
32
+ Dynamic: summary
20
33
 
21
34
  ..
22
- Copyright CNRS/Inria/UCA
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.
35
+ Copyright CNRS/Inria/UniCA
36
+ Contributor(s): Eric Debreuve (eric.debreuve@cnrs.fr) since 2023
37
+ SEE COPYRIGHT NOTICE BELOW
52
38
 
53
39
  .. |PROJECT_NAME| replace:: Str-to-Obj
54
40
  .. |SHORT_DESCRIPTION| replace:: Convert strings to Python objects guided by (potentially annotated) type hints
@@ -60,6 +46,9 @@ Requires-Dist: rich
60
46
  .. |DOCUMENTATION_URL| replace:: https://src.koda.cnrs.fr/eric.debreuve/str-to-obj/-/wikis/home
61
47
  .. _DOCUMENTATION_URL: https://src.koda.cnrs.fr/eric.debreuve/str-to-obj/-/wikis/home
62
48
 
49
+ .. |DEPENDENCIES_MANDATORY| replace:: logger_36, rich
50
+ .. |DEPENDENCIES_OPTIONAL| replace:: None
51
+
63
52
 
64
53
 
65
54
  ===================================
@@ -68,6 +57,13 @@ Requires-Dist: rich
68
57
 
69
58
 
70
59
 
60
+ Documentation
61
+ =============
62
+
63
+ The documentation is available at |DOCUMENTATION_URL|_.
64
+
65
+
66
+
71
67
  Installation
72
68
  ============
73
69
 
@@ -77,14 +73,6 @@ at: |PYPI_PROJECT_URL|_.
77
73
  It should be installable from Python distribution platforms or Integrated Development Environments (IDEs).
78
74
  Otherwise, it can be installed from a command console using `pip <https://pip.pypa.io/>`_:
79
75
 
80
- ..
81
- - For all users, after acquiring administrative rights:
82
- - First installation: ``pip install`` |PYPI_NAME_LITERAL|
83
- - Installation update: ``pip install --upgrade`` |PYPI_NAME_LITERAL|
84
- - For the current user (no administrative rights required):
85
- - First installation: ``pip install --user`` |PYPI_NAME_LITERAL|
86
- - Installation update: ``pip install --user --upgrade`` |PYPI_NAME_LITERAL|
87
-
88
76
  +--------------+-------------------------------------------------------+----------------------------------------------------------+
89
77
  | | For all users (after acquiring administrative rights) | For the current user (no administrative rights required) |
90
78
  +==============+=======================================================+==========================================================+
@@ -95,21 +83,75 @@ Otherwise, it can be installed from a command console using `pip <https://pip.py
95
83
 
96
84
 
97
85
 
98
- Documentation
99
- =============
86
+ Dependencies
87
+ ============
100
88
 
101
- The documentation is available at |DOCUMENTATION_URL|_.
89
+ The development relies on several packages:
90
+
91
+ - Mandatory: |DEPENDENCIES_MANDATORY|
92
+ - Optional: |DEPENDENCIES_OPTIONAL|
93
+
94
+ The mandatory dependencies, if any, are installed automatically by `pip <https://pip.pypa.io/>`_, if they are not already, as part of the installation of |PROJECT_NAME|.
95
+ Python distribution platforms or Integrated Development Environments (IDEs) should also take care of this.
96
+ The optional dependencies, if any, must be installed independently by following the related instructions, for added functionalities of |PROJECT_NAME|.
102
97
 
103
98
 
104
99
 
105
100
  Acknowledgments
106
101
  ===============
107
102
 
108
- The project is developed with `PyCharm Community <https://www.jetbrains.com/pycharm/>`_.
103
+ .. image:: https://img.shields.io/badge/code%20style-black-000000.svg
104
+ :target: https://github.com/psf/black
105
+ .. image:: https://img.shields.io/badge/%20imports-isort-%231674b1?style=flat&labelColor=ef8336
106
+ :target: https://pycqa.github.io/isort/
109
107
 
110
- The development relies on several open-source packages
111
- (see ``install_requires`` in ``setup.py``, if present; otherwise ``import`` statements should be searched for).
108
+ The project is developed with `PyCharm Community <https://www.jetbrains.com/pycharm/>`_.
112
109
 
113
110
  The code is formatted by `Black <https://github.com/psf/black/>`_, *The Uncompromising Code Formatter*.
114
111
 
115
112
  The imports are ordered by `isort <https://github.com/timothycrosley/isort/>`_... *your imports, so you don't have to*.
113
+
114
+ ..
115
+ COPYRIGHT NOTICE
116
+
117
+ This software is governed by the CeCILL license under French law and
118
+ abiding by the rules of distribution of free software. You can use,
119
+ modify and/ or redistribute the software under the terms of the CeCILL
120
+ license as circulated by CEA, CNRS and INRIA at the following URL
121
+ "http://www.cecill.info".
122
+
123
+ As a counterpart to the access to the source code and rights to copy,
124
+ modify and redistribute granted by the license, users are provided only
125
+ with a limited warranty and the software's author, the holder of the
126
+ economic rights, and the successive licensors have only limited
127
+ liability.
128
+
129
+ In this respect, the user's attention is drawn to the risks associated
130
+ with loading, using, modifying and/or developing or reproducing the
131
+ software by the user in light of its specific status of free software,
132
+ that may mean that it is complicated to manipulate, and that also
133
+ therefore means that it is reserved for developers and experienced
134
+ professionals having in-depth computer knowledge. Users are therefore
135
+ encouraged to load and test the software's suitability as regards their
136
+ requirements in conditions enabling the security of their systems and/or
137
+ data to be ensured and, more generally, to use and operate it in the
138
+ same conditions as regards security.
139
+
140
+ The fact that you are presently reading this means that you have had
141
+ knowledge of the CeCILL license and that you accept its terms.
142
+
143
+ SEE LICENCE NOTICE: file README-LICENCE-utf8.txt at project source root.
144
+
145
+ This software is being developed by Eric Debreuve, a CNRS employee and
146
+ member of team Morpheme.
147
+ Team Morpheme is a joint team between Inria, CNRS, and UniCA.
148
+ It is hosted by the Centre Inria d'Université Côte d'Azur, Laboratory
149
+ I3S, and Laboratory iBV.
150
+
151
+ CNRS: https://www.cnrs.fr/index.php/en
152
+ Inria: https://www.inria.fr/en/
153
+ UniCA: https://univ-cotedazur.eu/
154
+ Centre Inria d'Université Côte d'Azur: https://www.inria.fr/en/centre/sophia/
155
+ I3S: https://www.i3s.unice.fr/en/
156
+ iBV: http://ibv.unice.fr/
157
+ Team Morpheme: https://team.inria.fr/morpheme/
@@ -0,0 +1,26 @@
1
+ str_to_obj/__init__.py,sha256=R22_7BvT9x1iJjVZzl1MraNV1TR73TBxnmiYasVp_Kw,2645
2
+ str_to_obj/main.py,sha256=rzKdcK_qJ7IR29aIOZCDoNhQVfFV-EgF-pf35SNwDXA,3592
3
+ str_to_obj/version.py,sha256=xNV5y9HqVZrz1nqjMLfqnMFHZE0yv6lVMBi5BS2quKQ,2206
4
+ str_to_obj/api/catalog.py,sha256=6ka6JciGdHFP93lg0yq2LO3iZBHfq0upZfXxQSg1izk,2521
5
+ str_to_obj/api/type.py,sha256=yxD5wTtnh_h8Wa9_k1eex-nrkjtfh4ZJI6Db6hJHI9w,2468
6
+ str_to_obj/catalog/boolean.py,sha256=G2ZkLqf1e3cpMzjiGgd3E0aAVs6_xlpzG3U2LiOFbio,3508
7
+ str_to_obj/catalog/callable.py,sha256=NCoogYzVBUSqiYEj_DoG-szqQdnYhvSj0xdyvg1W7Jw,3626
8
+ str_to_obj/catalog/choices.py,sha256=eZp_id2gWxgnzw7_RVEgy01s86c0Ci4MbRFZsRJMjJ8,3855
9
+ str_to_obj/catalog/collection.py,sha256=OkwsgiMFrdvIvLqp1e_bgjBix677knrCSo-vOes86pQ,6767
10
+ str_to_obj/catalog/number.py,sha256=U__ZF9TYMuIlIyY1QHIK2f89cPPCvmrNMhK3sCA7n0E,5461
11
+ str_to_obj/catalog/path.py,sha256=xBrQJ-RMH-y_oaWP-uUTSpIKcL2vrtXoqrSaaS4HRpg,3857
12
+ str_to_obj/interface/console.py,sha256=t_prEhOHOOtsIld5orw2sIfaDjiy_kEO5Xy3Hr0Js3g,3037
13
+ str_to_obj/runtime/type.py,sha256=IGgBgvYu5QrxWKiEEwg5Hn1DNLYZrm6VX7b1o6_OMCI,2288
14
+ str_to_obj/runtime/value.py,sha256=l5I8_Aewu8Yzndnz03dUI_tfN0ZL-hMht2FmDYSUQL8,2268
15
+ str_to_obj/task/casting.py,sha256=GXwnnKnv8420nqlMb5sWkiWula5ZH-UxvWTjyr2Ra98,9138
16
+ str_to_obj/task/comparison.py,sha256=HBzv7gBtOnROsC6Sq-FYpgd_MKzVJreboNiqkza3vJ8,3178
17
+ str_to_obj/task/inspection.py,sha256=M8YnYq4A_Zz7rC2kgTYSSSawTnG2dCug5FBoCOBJ5g8,3127
18
+ str_to_obj/type/annotation.py,sha256=xXShME2Q344N3QlsqKtU6ttne54tTVC3b62CHU1TGUM,3838
19
+ str_to_obj/type/hint.py,sha256=w-yos8eD4CHQsXPfnqeqAc-ozyDWqzw46FOWDtAh7dM,2810
20
+ str_to_obj/type/hint_tree.py,sha256=0A0X-waAWLs8Q3MQ4FXlqQaIUXz6cDhBgw8vloIj0x4,7895
21
+ str_to_obj/type/type.py,sha256=ywc7GpzM1BsoQ3F0qk4wZ2DG1KZllw-PNv_umIGt8hA,4147
22
+ str_to_obj/type/value.py,sha256=r9Ko5HHant1JGbsO7vH1unRBr9guc61Jz2piuJT0BjM,2533
23
+ str_to_obj-2025.1.dist-info/METADATA,sha256=Lxej_DybExSfQvS6D5v_LVvvE7Gcd6GylHCpF4oHIUs,6717
24
+ str_to_obj-2025.1.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
25
+ str_to_obj-2025.1.dist-info/top_level.txt,sha256=h-6bR_TAnXRGVSLTeNPlivlaG64xYM3E__Xg7sCgeug,11
26
+ str_to_obj-2025.1.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.42.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,14 +0,0 @@
1
- str_to_obj/__init__.py,sha256=odgBU079fpQMu9GXhY0Lc19Rris-8Oa60Dd4F5SxGpQ,1735
2
- str_to_obj/main.py,sha256=YxjO1kyeZxGf_31KRZVZ39F7gr0gYM1OyOa7Y8m4iG8,2488
3
- str_to_obj/version.py,sha256=uPN8AFfSMa4EZJiULZi88nsmrgs1XMgDFs63OrNF60U,1610
4
- str_to_obj/interface/console.py,sha256=PHcDGFmscXYSrPOJRjmlBPglQUBBGUhe1Bov3pthGT0,2414
5
- str_to_obj/task/casting.py,sha256=74eIRKpokqq-JqEK0UwRSQs1F4Zdj8pRDQXAPkqg3Ug,8468
6
- str_to_obj/task/comparison.py,sha256=TLw6uPzBSx9Z3EocQYlbWhSrscaxY0wfrKFv_jtPG7g,2486
7
- str_to_obj/task/inspection.py,sha256=dwaK4uMN5iPgcWWVnFu86eSkuPy1G_phBAGTqEa_414,2488
8
- str_to_obj/type/annotation.py,sha256=bR7tQVfYmAohizn4APx_D0aNoPo6gMjyFRoa-QpDNKM,3241
9
- str_to_obj/type/hint.py,sha256=Jv3m1VbXICsUwPTCFidW6A1bX-xgNU2twRP_H1DX5v4,2221
10
- str_to_obj/type/hint_tree.py,sha256=0ELSPbnvaES_oI-Ze1nT195LO4HgkyZx1N38bOvrmCw,5715
11
- str_to_obj-2023.10.dist-info/METADATA,sha256=hM73PdF8rFOQP24H6ceXQD_U6wBZ2dvFakph2B_zY9w,5390
12
- str_to_obj-2023.10.dist-info/WHEEL,sha256=oiQVh_5PnQM0E3gPdiz09WCNmwiHDMaGer_elqB3coM,92
13
- str_to_obj-2023.10.dist-info/top_level.txt,sha256=h-6bR_TAnXRGVSLTeNPlivlaG64xYM3E__Xg7sCgeug,11
14
- str_to_obj-2023.10.dist-info/RECORD,,