nsj-rest-lib2 0.0.25__tar.gz → 0.0.26__tar.gz
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.
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/PKG-INFO +1 -1
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/controller/dynamic_controller.py +9 -38
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2.egg-info/PKG-INFO +1 -1
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/setup.cfg +1 -1
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/README.md +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/__init__.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/__init__.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/ai_compiler.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/compiler.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/compiler_structures.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/dto_compiler.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/__init__.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/ai_entity_edl.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/api_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/column_meta_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/entity_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/entity_model_base.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/entity_model_root.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/index_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/primitives.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/property_meta_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/repository_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/trait_property_meta_model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/entity_compiler.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/model.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/property_compiler.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/util/__init__.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/util/str_util.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/util/type_naming_util.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/util/type_util.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/controller/__init__.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/exception.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/redis_config.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/service/__init__.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/service/entity_loader.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/settings.py +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2.egg-info/SOURCES.txt +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2.egg-info/dependency_links.txt +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2.egg-info/requires.txt +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2.egg-info/top_level.txt +0 -0
- {nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/pyproject.toml +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nsj_rest_lib2
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.26
|
|
4
4
|
Summary: Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
5
5
|
Home-page: https://github.com/Nasajon/nsj_rest_lib2
|
|
6
6
|
Author: Nasajon Sistemas
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/controller/dynamic_controller.py
RENAMED
|
@@ -22,11 +22,12 @@ from nsj_rest_lib2.exception import MissingEntityConfigException
|
|
|
22
22
|
from nsj_rest_lib2.service.entity_loader import EntityLoader
|
|
23
23
|
|
|
24
24
|
|
|
25
|
-
def
|
|
25
|
+
def _get_query_args() -> tuple[str, str, bool]:
|
|
26
26
|
# Tentando ler do query args
|
|
27
27
|
query_args = request.args
|
|
28
28
|
tenant = query_args.get("tenant")
|
|
29
29
|
grupo_empresarial = query_args.get("grupo_empresarial")
|
|
30
|
+
force_reload = query_args.get("force_reload", "false").lower() == "true"
|
|
30
31
|
|
|
31
32
|
# Tentando ler do corpo da requisição
|
|
32
33
|
try:
|
|
@@ -40,7 +41,7 @@ def _get_tenant_grupo() -> tuple[str, str]:
|
|
|
40
41
|
except:
|
|
41
42
|
pass
|
|
42
43
|
|
|
43
|
-
return (str(tenant), str(grupo_empresarial))
|
|
44
|
+
return (str(tenant), str(grupo_empresarial), force_reload)
|
|
44
45
|
|
|
45
46
|
|
|
46
47
|
def _endpoint_name(func: Any, multidb: bool, root: str) -> str:
|
|
@@ -81,13 +82,8 @@ def setup_dynamic_routes(
|
|
|
81
82
|
if "entity_escopo" in kwargs:
|
|
82
83
|
entity_escopo = kwargs.pop("entity_escopo")
|
|
83
84
|
|
|
84
|
-
# Verificando se foi solicitado reload forçado do código
|
|
85
|
-
force_reload = False
|
|
86
|
-
if "force_reload" in kwargs:
|
|
87
|
-
force_reload = kwargs.pop("force_reload").lower() == "true"
|
|
88
|
-
|
|
89
85
|
# Lendo tenant e grupo_empresarial
|
|
90
|
-
tenant, grupo_empresarial =
|
|
86
|
+
tenant, grupo_empresarial, force_reload = _get_query_args()
|
|
91
87
|
|
|
92
88
|
try:
|
|
93
89
|
# Recuperando o código do DTO e Entity correspondente
|
|
@@ -140,13 +136,8 @@ def setup_dynamic_routes(
|
|
|
140
136
|
if "entity_escopo" in kwargs:
|
|
141
137
|
entity_escopo = kwargs.pop("entity_escopo")
|
|
142
138
|
|
|
143
|
-
# Verificando se foi solicitado reload forçado do código
|
|
144
|
-
force_reload = False
|
|
145
|
-
if "force_reload" in kwargs:
|
|
146
|
-
force_reload = kwargs.pop("force_reload").lower() == "true"
|
|
147
|
-
|
|
148
139
|
# Lendo tenant e grupo_empresarial
|
|
149
|
-
tenant, grupo_empresarial =
|
|
140
|
+
tenant, grupo_empresarial, force_reload = _get_query_args()
|
|
150
141
|
|
|
151
142
|
try:
|
|
152
143
|
# Recuperando o código do DTO e Entity correspondente
|
|
@@ -198,13 +189,8 @@ def setup_dynamic_routes(
|
|
|
198
189
|
if "entity_escopo" in kwargs:
|
|
199
190
|
entity_escopo = kwargs.pop("entity_escopo")
|
|
200
191
|
|
|
201
|
-
# Verificando se foi solicitado reload forçado do código
|
|
202
|
-
force_reload = False
|
|
203
|
-
if "force_reload" in kwargs:
|
|
204
|
-
force_reload = kwargs.pop("force_reload").lower() == "true"
|
|
205
|
-
|
|
206
192
|
# Lendo tenant e grupo_empresarial
|
|
207
|
-
tenant, grupo_empresarial =
|
|
193
|
+
tenant, grupo_empresarial, force_reload = _get_query_args()
|
|
208
194
|
|
|
209
195
|
try:
|
|
210
196
|
# Recuperando o código do DTO e Entity correspondente
|
|
@@ -256,13 +242,8 @@ def setup_dynamic_routes(
|
|
|
256
242
|
if "entity_escopo" in kwargs:
|
|
257
243
|
entity_escopo = kwargs.pop("entity_escopo")
|
|
258
244
|
|
|
259
|
-
# Verificando se foi solicitado reload forçado do código
|
|
260
|
-
force_reload = False
|
|
261
|
-
if "force_reload" in kwargs:
|
|
262
|
-
force_reload = kwargs.pop("force_reload").lower() == "true"
|
|
263
|
-
|
|
264
245
|
# Lendo tenant e grupo_empresarial
|
|
265
|
-
tenant, grupo_empresarial =
|
|
246
|
+
tenant, grupo_empresarial, force_reload = _get_query_args()
|
|
266
247
|
|
|
267
248
|
try:
|
|
268
249
|
# Recuperando o código do DTO e Entity correspondente
|
|
@@ -314,13 +295,8 @@ def setup_dynamic_routes(
|
|
|
314
295
|
if "entity_escopo" in kwargs:
|
|
315
296
|
entity_escopo = kwargs.pop("entity_escopo")
|
|
316
297
|
|
|
317
|
-
# Verificando se foi solicitado reload forçado do código
|
|
318
|
-
force_reload = False
|
|
319
|
-
if "force_reload" in kwargs:
|
|
320
|
-
force_reload = kwargs.pop("force_reload").lower() == "true"
|
|
321
|
-
|
|
322
298
|
# Lendo tenant e grupo_empresarial
|
|
323
|
-
tenant, grupo_empresarial =
|
|
299
|
+
tenant, grupo_empresarial, force_reload = _get_query_args()
|
|
324
300
|
|
|
325
301
|
try:
|
|
326
302
|
# Recuperando o código do DTO e Entity correspondente
|
|
@@ -372,13 +348,8 @@ def setup_dynamic_routes(
|
|
|
372
348
|
if "entity_escopo" in kwargs:
|
|
373
349
|
entity_escopo = kwargs.pop("entity_escopo")
|
|
374
350
|
|
|
375
|
-
# Verificando se foi solicitado reload forçado do código
|
|
376
|
-
force_reload = False
|
|
377
|
-
if "force_reload" in kwargs:
|
|
378
|
-
force_reload = kwargs.pop("force_reload").lower() == "true"
|
|
379
|
-
|
|
380
351
|
# Lendo tenant e grupo_empresarial
|
|
381
|
-
tenant, grupo_empresarial =
|
|
352
|
+
tenant, grupo_empresarial, force_reload = _get_query_args()
|
|
382
353
|
|
|
383
354
|
try:
|
|
384
355
|
# Recuperando o código do DTO e Entity correspondente
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: nsj_rest_lib2
|
|
3
|
-
Version: 0.0.
|
|
3
|
+
Version: 0.0.26
|
|
4
4
|
Summary: Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
5
5
|
Home-page: https://github.com/Nasajon/nsj_rest_lib2
|
|
6
6
|
Author: Nasajon Sistemas
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
[metadata]
|
|
2
2
|
name = nsj_rest_lib2
|
|
3
|
-
version = 0.0.
|
|
3
|
+
version = 0.0.26
|
|
4
4
|
author = Nasajon Sistemas
|
|
5
5
|
author_email = contact.dev@nasajon.com.br
|
|
6
6
|
description = Biblioteca para permitir a distribuição de rotas dinâmicas numa API, configuradas por meio de EDLs declarativos (em formato JSON).
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/ai_entity_edl.py
RENAMED
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/column_meta_model.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/entity_model.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/entity_model_base.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/entity_model_root.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/index_model.py
RENAMED
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/primitives.py
RENAMED
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/edl_model/repository_model.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{nsj_rest_lib2-0.0.25 → nsj_rest_lib2-0.0.26}/nsj_rest_lib2/compiler/util/type_naming_util.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|