libentry 1.20.1__py3-none-any.whl → 1.21__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.
libentry/schema.py CHANGED
@@ -57,11 +57,15 @@ def parse_type(annotation, context: MutableMapping[str, Schema]) -> Union[str, L
57
57
  origin=origin
58
58
  )
59
59
 
60
- parser_list = _TYPE_PARSERS if isinstance(origin, type) else _GENERIC_PARSERS
61
- for parser in parser_list:
60
+ for parser in _GENERIC_PARSERS:
62
61
  output = parser(pc)
63
62
  if output is not None:
64
63
  return output
64
+ if isinstance(origin, type):
65
+ for parser in _TYPE_PARSERS:
66
+ output = parser(pc)
67
+ if output is not None:
68
+ return output
65
69
  raise TypeError(f"Unsupported type \"{origin}\".")
66
70
 
67
71
 
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: libentry
3
- Version: 1.20.1
3
+ Version: 1.21
4
4
  Summary: Entries for experimental utilities.
5
5
  Home-page: https://github.com/XoriieInpottn/libentry
6
6
  Author: xi
@@ -9,12 +9,23 @@ License: Apache-2.0 license
9
9
  Platform: any
10
10
  Classifier: Programming Language :: Python :: 3
11
11
  Description-Content-Type: text/markdown
12
- Requires-Dist: Flask
12
+ License-File: LICENSE
13
+ Requires-Dist: pydantic
13
14
  Requires-Dist: PyYAML
14
- Requires-Dist: gunicorn
15
15
  Requires-Dist: numpy
16
- Requires-Dist: pydantic
17
16
  Requires-Dist: urllib3
17
+ Requires-Dist: Flask
18
+ Requires-Dist: gunicorn
19
+ Dynamic: author
20
+ Dynamic: author-email
21
+ Dynamic: classifier
22
+ Dynamic: description
23
+ Dynamic: description-content-type
24
+ Dynamic: home-page
25
+ Dynamic: license
26
+ Dynamic: platform
27
+ Dynamic: requires-dist
28
+ Dynamic: summary
18
29
 
19
30
  # libentry
20
31
 
@@ -28,5 +39,3 @@ Requires-Dist: urllib3
28
39
  2. Use its post() or get() method to send the request.
29
40
 
30
41
 
31
-
32
-
@@ -6,7 +6,7 @@ libentry/executor.py,sha256=cTV0WxJi0nU1TP-cOwmeodN8DD6L1691M2HIQsJtGrU,6582
6
6
  libentry/experiment.py,sha256=ejgAHDXWIe9x4haUzIFuz1WasLY0_aD1z_vyEVGjTu8,4922
7
7
  libentry/json.py,sha256=1-Kv5ZRb5dBrOTU84n6sZtYZV3xE-O6wEt_--ynbSaU,1209
8
8
  libentry/logging.py,sha256=IiYoCUzm8XTK1fduA-NA0FI2Qz_m81NEPV3d3tEfgdI,1349
9
- libentry/schema.py,sha256=BO7EE7i43Cb4xn_OLsBM-HDwWOT6V5fPs91Am3QqnNQ,8178
9
+ libentry/schema.py,sha256=o6JcdR00Yj4_Qjmlo100OlQpMVnl0PgvvwVVrL9limw,8268
10
10
  libentry/server.py,sha256=gYPoZXd0umlDYZf-6ZV0_vJadg3YQvnLDc6JFDJh9jc,1503
11
11
  libentry/test_api.py,sha256=GFmirvxfCAQ-nhh6QXyB5EpF4WaENCc3Eoymuk5JxBQ,4448
12
12
  libentry/service/__init__.py,sha256=1oLL20yLB1GL9IbFiZD8OReDqiCpFr-yetIR6x1cNkI,23
@@ -16,10 +16,10 @@ libentry/service/list.py,sha256=ElHWhTgShGOhaxMUEwVbMXos0NQKjHsODboiQ-3AMwE,1397
16
16
  libentry/service/running.py,sha256=FrPJoJX6wYxcHIysoatAxhW3LajCCm0Gx6l7__6sULQ,5105
17
17
  libentry/service/start.py,sha256=mZT7b9rVULvzy9GTZwxWnciCHgv9dbGN2JbxM60OMn4,1270
18
18
  libentry/service/stop.py,sha256=wOpwZgrEJ7QirntfvibGq-XsTC6b3ELhzRW2zezh-0s,1187
19
- libentry-1.20.1.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
20
- libentry-1.20.1.dist-info/METADATA,sha256=WQ5nfZ5df2uQZ1OQiRcvGxTIPAn6WUHxAMGctv5ucsY,792
21
- libentry-1.20.1.dist-info/WHEEL,sha256=tZoeGjtWxWRfdplE7E3d45VPlLNQnvbKiYnx7gwAy8A,92
22
- libentry-1.20.1.dist-info/entry_points.txt,sha256=vgHmJZhM-kqM7U9S179UwDD3pM232tpzJ5NntncXi_8,62
23
- libentry-1.20.1.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
24
- libentry-1.20.1.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
25
- libentry-1.20.1.dist-info/RECORD,,
19
+ libentry-1.21.dist-info/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
20
+ libentry-1.21.dist-info/METADATA,sha256=_WRBE701A14mz9idf8wRi6UnN6ZSo9e8X1KyjNxj1zw,1017
21
+ libentry-1.21.dist-info/WHEEL,sha256=In9FTNxeP60KnTkGw7wk6mJPYd_dQSjEZmXdBdMCI-8,91
22
+ libentry-1.21.dist-info/entry_points.txt,sha256=1v_nLVDsjvVJp9SWhl4ef2zZrsLTBtFWgrYFgqvQBgc,61
23
+ libentry-1.21.dist-info/top_level.txt,sha256=u2uF6-X5fn2Erf9PYXOg_6tntPqTpyT-yzUZrltEd6I,9
24
+ libentry-1.21.dist-info/zip-safe,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
25
+ libentry-1.21.dist-info/RECORD,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: bdist_wheel (0.45.1)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,3 +1,2 @@
1
1
  [console_scripts]
2
2
  libentry_test_api = libentry.test_api:main
3
-