jararaca 0.2.34__py3-none-any.whl → 0.2.36__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.
Potentially problematic release.
This version of jararaca might be problematic. Click here for more details.
- jararaca/__init__.py +3 -0
- jararaca/cli.py +2 -2
- jararaca/rpc/http/backends/httpx.py +1 -1
- jararaca/tools/typescript/interface_parser.py +1 -1
- {jararaca-0.2.34.dist-info → jararaca-0.2.36.dist-info}/METADATA +1 -1
- {jararaca-0.2.34.dist-info → jararaca-0.2.36.dist-info}/RECORD +10 -10
- pyproject.toml +1 -1
- {jararaca-0.2.34.dist-info → jararaca-0.2.36.dist-info}/LICENSE +0 -0
- {jararaca-0.2.34.dist-info → jararaca-0.2.36.dist-info}/WHEEL +0 -0
- {jararaca-0.2.34.dist-info → jararaca-0.2.36.dist-info}/entry_points.txt +0 -0
jararaca/__init__.py
CHANGED
|
@@ -41,6 +41,7 @@ if TYPE_CHECKING:
|
|
|
41
41
|
RequestAttribute,
|
|
42
42
|
RestClient,
|
|
43
43
|
RouteHttpErrorHandler,
|
|
44
|
+
RPCRequestNetworkError,
|
|
44
45
|
)
|
|
45
46
|
|
|
46
47
|
from .core.providers import ProviderSpec, Token
|
|
@@ -103,6 +104,7 @@ if TYPE_CHECKING:
|
|
|
103
104
|
from .tools.app_config.interceptor import AppConfigurationInterceptor
|
|
104
105
|
|
|
105
106
|
__all__ = [
|
|
107
|
+
"RPCRequestNetworkError",
|
|
106
108
|
"FILTER_SORT_ENTITY_ATTR_MAP",
|
|
107
109
|
"FilterModel",
|
|
108
110
|
"SortFilterRunner",
|
|
@@ -194,6 +196,7 @@ if TYPE_CHECKING:
|
|
|
194
196
|
__SPEC_PARENT__: str = __spec__.parent # type: ignore
|
|
195
197
|
# A mapping of {<member name>: (package, <module name>)} defining dynamic imports
|
|
196
198
|
_dynamic_imports: "dict[str, tuple[str, str, str | None]]" = {
|
|
199
|
+
"RPCRequestNetworkError": (__SPEC_PARENT__, "rpc.http.decorators", None),
|
|
197
200
|
"FILTER_SORT_ENTITY_ATTR_MAP": (__SPEC_PARENT__, "persistence.sort_filter", None),
|
|
198
201
|
"FilterModel": (__SPEC_PARENT__, "persistence.sort_filter", None),
|
|
199
202
|
"SortFilterRunner": (__SPEC_PARENT__, "persistence.sort_filter", None),
|
jararaca/cli.py
CHANGED
|
@@ -31,8 +31,8 @@ def find_item_by_module_path(
|
|
|
31
31
|
|
|
32
32
|
try:
|
|
33
33
|
module = importlib.import_module(module_name)
|
|
34
|
-
except ImportError:
|
|
35
|
-
raise
|
|
34
|
+
except ImportError as e:
|
|
35
|
+
raise ImportError("App module not found") from e
|
|
36
36
|
|
|
37
37
|
if not hasattr(module, app):
|
|
38
38
|
raise ValueError("module %s has no attribute %s" % (module, app))
|
|
@@ -113,7 +113,7 @@ def get_field_type_for_ts(field_type: Any) -> Any:
|
|
|
113
113
|
return get_field_type_for_ts(field_type.__args__[0])
|
|
114
114
|
if get_origin(field_type) == tuple:
|
|
115
115
|
return f"[{', '.join([get_field_type_for_ts(field) for field in field_type.__args__])}]"
|
|
116
|
-
if get_origin(field_type) == list:
|
|
116
|
+
if get_origin(field_type) == list or get_origin(field_type) == frozenset:
|
|
117
117
|
return f"Array<{get_field_type_for_ts(field_type.__args__[0])}>"
|
|
118
118
|
if get_origin(field_type) == set:
|
|
119
119
|
return f"Array<{get_field_type_for_ts(field_type.__args__[0])}> // Set"
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
2
2
|
README.md,sha256=mte30I-ZEJJp-Oax-OganNgl6G9GaCZPL6JVFAvZGz4,7034
|
|
3
|
-
pyproject.toml,sha256=
|
|
4
|
-
jararaca/__init__.py,sha256=
|
|
3
|
+
pyproject.toml,sha256=J8jl9rhTU5wrfQYdGUqML72igUL3qR8in2aLGmaSRwY,1837
|
|
4
|
+
jararaca/__init__.py,sha256=MbSXT_kddJ4hUNI43u3stzFzjG3ctkJewriZ6_NvaII,14019
|
|
5
5
|
jararaca/__main__.py,sha256=-O3vsB5lHdqNFjUtoELDF81IYFtR-DSiiFMzRaiSsv4,67
|
|
6
|
-
jararaca/cli.py,sha256=
|
|
6
|
+
jararaca/cli.py,sha256=JKk4xrRbtX2fM8yYw794lbxvJFH73bWw3GGIvrpAkeE,5706
|
|
7
7
|
jararaca/common/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
8
8
|
jararaca/core/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
9
9
|
jararaca/core/providers.py,sha256=wktH84FK7c1s2wNq-fudf1uMfi3CQBR0neU2czJ_L0U,434
|
|
@@ -46,7 +46,7 @@ jararaca/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
|
46
46
|
jararaca/rpc/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
47
47
|
jararaca/rpc/http/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
48
48
|
jararaca/rpc/http/backends/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
49
|
-
jararaca/rpc/http/backends/httpx.py,sha256=
|
|
49
|
+
jararaca/rpc/http/backends/httpx.py,sha256=2inHnHYF5f7HiidkwlPOK7ZFpc1jBklKxvVRla9knCE,1141
|
|
50
50
|
jararaca/rpc/http/backends/otel.py,sha256=Uc6CjHSCZ5hvnK1fNFv3ota5xzUFnvIl1JOpG380siA,807
|
|
51
51
|
jararaca/rpc/http/decorators.py,sha256=oUSzgMGI8w6SoKiz3GltDbd3BWAuyY60F23cdRRNeiw,11897
|
|
52
52
|
jararaca/rpc/http/httpx.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
|
|
@@ -57,9 +57,9 @@ jararaca/tools/app_config/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJW
|
|
|
57
57
|
jararaca/tools/app_config/decorators.py,sha256=-ckkMZ1dswOmECdo1rFrZ15UAku--txaNXMp8fd1Ndk,941
|
|
58
58
|
jararaca/tools/app_config/interceptor.py,sha256=nfFZiS80hrbnL7-XEYrwmp2rwaVYBqxvqu3Y-6o_ov4,2575
|
|
59
59
|
jararaca/tools/metadata.py,sha256=7nlCDYgItNybentPSSCc2MLqN7IpBd0VyQzfjfQycVI,1402
|
|
60
|
-
jararaca/tools/typescript/interface_parser.py,sha256=
|
|
61
|
-
jararaca-0.2.
|
|
62
|
-
jararaca-0.2.
|
|
63
|
-
jararaca-0.2.
|
|
64
|
-
jararaca-0.2.
|
|
65
|
-
jararaca-0.2.
|
|
60
|
+
jararaca/tools/typescript/interface_parser.py,sha256=l-QyPVntATcbL4JYm48xq2gNWfV1y2iArvOuIueFi8w,28829
|
|
61
|
+
jararaca-0.2.36.dist-info/LICENSE,sha256=OXLcl0T2SZ8Pmy2_dmlvKuetivmyPd5m1q-Gyd-zaYY,35149
|
|
62
|
+
jararaca-0.2.36.dist-info/METADATA,sha256=9vNEuIG1GmXeLV95m5_7VSLDcSlZBoXjy-uHNQtGb6A,8552
|
|
63
|
+
jararaca-0.2.36.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
64
|
+
jararaca-0.2.36.dist-info/entry_points.txt,sha256=WIh3aIvz8LwUJZIDfs4EeH3VoFyCGEk7cWJurW38q0I,45
|
|
65
|
+
jararaca-0.2.36.dist-info/RECORD,,
|
pyproject.toml
CHANGED
|
File without changes
|
|
File without changes
|
|
File without changes
|