hexcore 2.0.2__tar.gz → 2.0.4__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.
- {hexcore-2.0.2/hexcore.egg-info → hexcore-2.0.4}/PKG-INFO +1 -1
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/use_cases/base.py +6 -5
- {hexcore-2.0.2 → hexcore-2.0.4/hexcore.egg-info}/PKG-INFO +1 -1
- {hexcore-2.0.2 → hexcore-2.0.4}/pyproject.toml +1 -1
- {hexcore-2.0.2 → hexcore-2.0.4}/LICENSE +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/MANIFEST.in +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/README.md +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/__main__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/dtos/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/dtos/base.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/dtos/query.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/use_cases/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/application/use_cases/query.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/config.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/auth/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/auth/permissions.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/auth/value_objects.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/base.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/events.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/exceptions.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/repositories.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/services.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/domain/uow.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/api/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/api/utils.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/cache/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/cache/cache_backends/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/cache/cache_backends/memory.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/cache/cache_backends/redis.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/cli.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/events/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/events/events_backends/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/events/events_backends/memory.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/base.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/decorators.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/implementations.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/beanie/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/beanie/utils.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/sqlalchemy/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/sqlalchemy/session.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/sqlalchemy/utils.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/utils.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/uow/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/uow/decorators.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/uow/helpers.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/py.typed +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore/types.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore.egg-info/SOURCES.txt +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore.egg-info/dependency_links.txt +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore.egg-info/entry_points.txt +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore.egg-info/requires.txt +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/hexcore.egg-info/top_level.txt +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/scripts/__init__.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/scripts/main.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/setup.cfg +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/conftest.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_basic.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_beanie_query_utils.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_config_loading.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_domain_service_query.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_infrastructure_query_path.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_query_field_validation.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_repositories_utils.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_uow_session_regression.py +0 -0
- {hexcore-2.0.2 → hexcore-2.0.4}/tests/test_use_cases_query.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hexcore
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4
|
|
4
4
|
Summary: Núcleo reutilizable para proyectos Python con arquitectura hexagonal y event handling. Provee abstracciones, utilidades y contratos para DDD, eventos y desacoplamiento de infraestructura.
|
|
5
5
|
Author-email: "David Latosefki (Indroic)" <indroic@outlook.com>
|
|
6
6
|
License-Expression: MIT
|
|
@@ -1,15 +1,16 @@
|
|
|
1
1
|
import typing as t
|
|
2
2
|
from abc import ABC, abstractmethod
|
|
3
|
+
from collections.abc import Sequence
|
|
3
4
|
from hexcore.application.dtos.base import DTO
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
T = t.TypeVar("T", bound=DTO)
|
|
6
|
+
type DTOType = DTO
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
T = t.TypeVar("T", bound=DTOType | Sequence[DTOType])
|
|
9
|
+
|
|
10
|
+
R = t.TypeVar("R")
|
|
10
11
|
|
|
11
12
|
|
|
12
13
|
class UseCase(ABC, t.Generic[T, R]):
|
|
13
14
|
@abstractmethod
|
|
14
|
-
async def execute(self, command: T
|
|
15
|
+
async def execute(self, command: T) -> R:
|
|
15
16
|
raise NotImplementedError("Subclasses must implement this method")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: hexcore
|
|
3
|
-
Version: 2.0.
|
|
3
|
+
Version: 2.0.4
|
|
4
4
|
Summary: Núcleo reutilizable para proyectos Python con arquitectura hexagonal y event handling. Provee abstracciones, utilidades y contratos para DDD, eventos y desacoplamiento de infraestructura.
|
|
5
5
|
Author-email: "David Latosefki (Indroic)" <indroic@outlook.com>
|
|
6
6
|
License-Expression: MIT
|
|
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
|
|
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
|
|
File without changes
|
|
File without changes
|
{hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/sqlalchemy/__init__.py
RENAMED
|
File without changes
|
{hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/sqlalchemy/session.py
RENAMED
|
File without changes
|
{hexcore-2.0.2 → hexcore-2.0.4}/hexcore/infrastructure/repositories/orms/sqlalchemy/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
|
|
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
|