jaaql-middleware-python 4.8.1__tar.gz → 4.8.2__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.
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/PKG-INFO +1 -1
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/constants.py +1 -1
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/db/db_interface.py +2 -4
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/model.py +9 -3
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/utils_no_project_imports.py +7 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql_middleware_python.egg-info/PKG-INFO +1 -1
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/LICENSE.txt +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/README.md +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config/config-docker.ini +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config/config-test.ini +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config/config.ini +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config_constants.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/db/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/db/db_pg_interface.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/db/db_utils.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/db/db_utils_no_circ.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/documentation/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/documentation/documentation_internal.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/documentation/documentation_public.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/documentation/documentation_shared.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/email/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/email/email_manager.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/email/email_manager_service.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/email/patch_ems.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/exceptions/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/exceptions/custom_http_status.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/exceptions/http_status_exception.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/exceptions/not_yet_implement_exception.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/interpreter/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/interpreter/interpret_jaaql.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/jaaql.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/migrations/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/migrations/migration_history.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/migrations/migrations.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/base_controller.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/base_model.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/controller.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/controller_interface.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/exception_queries.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/generated_queries.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/handmade_queries.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/model_interface.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/response.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/openapi/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/openapi/swagger_documentation.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/patch.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/01.install_domains.generated.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/02.install_super_user.exceptions.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/03.install_super_user.handwritten.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/04.install_jaaql_data_structures.generated.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/05.install_jaaql.exceptions.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/06.install_jaaql.handwritten.sql +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/swagger_template.html +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/services/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/services/cached_canned_query_service.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/services/migrations_manager_service.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/services/patch_mms.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/__init__.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/crypt_utils.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/options.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/utils.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/vault.py +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql_middleware_python.egg-info/SOURCES.txt +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql_middleware_python.egg-info/dependency_links.txt +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql_middleware_python.egg-info/requires.txt +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql_middleware_python.egg-info/top_level.txt +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/setup.cfg +0 -0
- {jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/setup.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jaaql-middleware-python
|
|
3
|
-
Version: 4.8.
|
|
3
|
+
Version: 4.8.2
|
|
4
4
|
Summary: The jaaql package, allowing for rapid development and deployment of RESTful HTTP applications
|
|
5
5
|
Home-page: https://github.com/JAAQL/JAAQL-middleware-python
|
|
6
6
|
Author: Software Quality Measurement and Improvement bv
|
|
@@ -4,6 +4,7 @@ from datetime import datetime
|
|
|
4
4
|
import logging
|
|
5
5
|
from jaaql.exceptions.http_status_exception import *
|
|
6
6
|
from typing import Optional
|
|
7
|
+
from jaaql.utilities.utils_no_project_imports import objectify
|
|
7
8
|
import queue
|
|
8
9
|
|
|
9
10
|
ERR__unknown_echo = "Unknown echo type '%s'. Please use either %s"
|
|
@@ -158,13 +159,10 @@ class DBInterface(ABC):
|
|
|
158
159
|
ret[RET__echo] = query
|
|
159
160
|
|
|
160
161
|
if as_objects:
|
|
161
|
-
return
|
|
162
|
+
return objectify(ret)
|
|
162
163
|
else:
|
|
163
164
|
return ret
|
|
164
165
|
|
|
165
|
-
def objectify(self, data):
|
|
166
|
-
return [dict(zip(data['columns'], row)) for row in data['rows']]
|
|
167
|
-
|
|
168
166
|
def execute_script_file(self, conn, file_loc: str = None, as_content: str = None, as_individual=False, commit=True):
|
|
169
167
|
ret = None
|
|
170
168
|
err = None
|
|
@@ -8,6 +8,7 @@ from os.path import join
|
|
|
8
8
|
from jaaql.constants import *
|
|
9
9
|
from jaaql.mvc.response import JAAQLResponse
|
|
10
10
|
from jaaql.utilities.utils import get_jaaql_root, get_base_url
|
|
11
|
+
from jaaql.utilities.utils_no_project_imports import objectify
|
|
11
12
|
from jaaql.db.db_utils import create_interface, jaaql__encrypt
|
|
12
13
|
from jaaql.db.db_utils_no_circ import submit
|
|
13
14
|
from jaaql.utilities import crypt_utils
|
|
@@ -667,6 +668,11 @@ WHERE
|
|
|
667
668
|
KG__security_event__event_lock: reg_env_ins[KG__security_event__event_lock]
|
|
668
669
|
}
|
|
669
670
|
|
|
670
|
-
def submit(self, inputs: dict, account_id: str, verification_hook: Queue = None):
|
|
671
|
-
|
|
672
|
-
|
|
671
|
+
def submit(self, inputs: dict, account_id: str, verification_hook: Queue = None, as_objects: bool = False, singleton: bool = False):
|
|
672
|
+
ret = submit(self.vault, self.config, self.get_db_crypt_key(), self.jaaql_lookup_connection, inputs, account_id, verification_hook,
|
|
673
|
+
self.cached_canned_query_service)
|
|
674
|
+
|
|
675
|
+
if as_objects:
|
|
676
|
+
ret = objectify(ret, singleton=singleton)
|
|
677
|
+
|
|
678
|
+
return ret
|
|
@@ -10,6 +10,13 @@ import re
|
|
|
10
10
|
ALLOWABLE_FILE_PATH = r'^[a-z0-9_\-\/]+(\.[a-zA-Z0-9]+)?$'
|
|
11
11
|
|
|
12
12
|
|
|
13
|
+
def objectify(data, singleton: bool = False):
|
|
14
|
+
if singleton:
|
|
15
|
+
return dict(zip(data['columns'], data['rows'][0]))
|
|
16
|
+
else:
|
|
17
|
+
return [dict(zip(data['columns'], row)) for row in data['rows']]
|
|
18
|
+
|
|
19
|
+
|
|
13
20
|
def time_delta_ms(start_time: datetime, end_time: datetime) -> int:
|
|
14
21
|
return int(round((end_time - start_time).total_seconds() * 1000))
|
|
15
22
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: jaaql-middleware-python
|
|
3
|
-
Version: 4.8.
|
|
3
|
+
Version: 4.8.2
|
|
4
4
|
Summary: The jaaql package, allowing for rapid development and deployment of RESTful HTTP applications
|
|
5
5
|
Home-page: https://github.com/JAAQL/JAAQL-middleware-python
|
|
6
6
|
Author: Software Quality Measurement and Improvement bv
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config/config-docker.ini
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/config/config-test.ini
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/db/db_utils_no_circ.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/documentation/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/email/email_manager.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/email/email_manager_service.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/exceptions/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/interpreter/__init__.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/interpreter/interpret_jaaql.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/migrations/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/migrations/migrations.py
RENAMED
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/base_controller.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/controller_interface.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/exception_queries.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/generated_queries.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/handmade_queries.py
RENAMED
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/mvc/model_interface.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
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/scripts/swagger_template.html
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{jaaql-middleware-python-4.8.1 → jaaql-middleware-python-4.8.2}/jaaql/utilities/crypt_utils.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
|