python-general-be-lib 0.8.2__tar.gz → 0.8.3__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.
- {python_general_be_lib-0.8.2/python_general_be_lib.egg-info → python_general_be_lib-0.8.3}/PKG-INFO +1 -1
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/crud_repository.py +2 -4
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/pyproject.toml +1 -1
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3/python_general_be_lib.egg-info}/PKG-INFO +1 -1
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/setup.py +1 -1
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/LICENSE +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/README.md +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/__init__.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/__init__.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/access_exceptions.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/crud_exceptions.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/exception_interface.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/base/__init__.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/base/base_model.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/base/declarative_base.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/metadata/__init__.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/metadata/crud_metadata.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/metadata/geom_metadata.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/__init__.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/geometry_repository.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/__init__.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/base_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/ilike_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/interval_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/json_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/json_ilike_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/or_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/handler/statement_manager.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/many_to_many_repository.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/view_repository.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/logger.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/paginator_dto.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/python_general_be_lib.egg-info/SOURCES.txt +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/python_general_be_lib.egg-info/dependency_links.txt +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/python_general_be_lib.egg-info/requires.txt +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/python_general_be_lib.egg-info/top_level.txt +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/setup.cfg +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_caricamento_parziale.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_compiled_cache.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_logger.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_pipeline_handler.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_query_count.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_smoke_crud.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_sql_snapshot.py +0 -0
- {python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_view_repository.py +0 -0
{python_general_be_lib-0.8.2/python_general_be_lib.egg-info → python_general_be_lib-0.8.3}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-general-be-lib
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.3
|
|
4
4
|
Summary: General purpose backend library — SQLAlchemy CRUD/Geometry repositories, FastAPI exceptions, Pydantic base models, logger utilities.
|
|
5
5
|
Author-email: Andrea Di Placido <a.diplacido@arpes.it>, "Arpes S.r.l." <it.admin@arpes.it>
|
|
6
6
|
License: MIT
|
|
@@ -32,6 +32,7 @@ def _list_adapter(model: Type[BaseModel]) -> TypeAdapter:
|
|
|
32
32
|
"""
|
|
33
33
|
return TypeAdapter(list[model])
|
|
34
34
|
|
|
35
|
+
|
|
35
36
|
@lru_cache(maxsize=None)
|
|
36
37
|
def _reduced_model(entity: Type[Base], columns: frozenset[str]) -> Type[BaseModel]:
|
|
37
38
|
"""Modello ridotto alle colonne indicate, costruito una volta per combinazione.
|
|
@@ -129,9 +130,6 @@ class CrudRepository[Entity: Base | Type[Base]]:
|
|
|
129
130
|
|
|
130
131
|
# -------------------------
|
|
131
132
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
133
|
def _retrieve_parsing_model(self, columns=None, exclude_columns=None):
|
|
136
134
|
selected_columns = set(columns) if columns else set(inspect(self.entity).columns.keys())
|
|
137
135
|
if exclude_columns:
|
|
@@ -713,7 +711,7 @@ class CrudRepository[Entity: Base | Type[Base]]:
|
|
|
713
711
|
entities = self.execute(session, stmt)
|
|
714
712
|
|
|
715
713
|
len_entities = len(entities)
|
|
716
|
-
if limit == 0 or (len_entities < limit and page == 1):
|
|
714
|
+
if limit == 0 or limit is None or (len_entities < limit and page == 1):
|
|
717
715
|
count_ = len_entities
|
|
718
716
|
elif limit > len_entities > 0 and page > 1:
|
|
719
717
|
count_ = (page - 1) * limit + len_entities
|
|
@@ -4,7 +4,7 @@ build-backend = "setuptools.backends.legacy:build"
|
|
|
4
4
|
|
|
5
5
|
[project]
|
|
6
6
|
name = "python-general-be-lib"
|
|
7
|
-
version = "0.8.
|
|
7
|
+
version = "0.8.3"
|
|
8
8
|
description = "General purpose backend library — SQLAlchemy CRUD/Geometry repositories, FastAPI exceptions, Pydantic base models, logger utilities."
|
|
9
9
|
readme = "README.md"
|
|
10
10
|
license = { text = "MIT" }
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3/python_general_be_lib.egg-info}/PKG-INFO
RENAMED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: python-general-be-lib
|
|
3
|
-
Version: 0.8.
|
|
3
|
+
Version: 0.8.3
|
|
4
4
|
Summary: General purpose backend library — SQLAlchemy CRUD/Geometry repositories, FastAPI exceptions, Pydantic base models, logger utilities.
|
|
5
5
|
Author-email: Andrea Di Placido <a.diplacido@arpes.it>, "Arpes S.r.l." <it.admin@arpes.it>
|
|
6
6
|
License: MIT
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/access_exceptions.py
RENAMED
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/crud_exceptions.py
RENAMED
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/exception/exception_interface.py
RENAMED
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/base/__init__.py
RENAMED
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/base/base_model.py
RENAMED
|
File without changes
|
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/metadata/__init__.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/general/interface/repository/__init__.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
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{python_general_be_lib-0.8.2 → python_general_be_lib-0.8.3}/tests/test_caricamento_parziale.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
|