hexcore 2.0.3__tar.gz → 2.0.5__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.
Files changed (71) hide show
  1. {hexcore-2.0.3/hexcore.egg-info → hexcore-2.0.5}/PKG-INFO +1 -1
  2. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/use_cases/base.py +1 -2
  3. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/orms/sqlalchemy/utils.py +1 -1
  4. {hexcore-2.0.3 → hexcore-2.0.5/hexcore.egg-info}/PKG-INFO +1 -1
  5. {hexcore-2.0.3 → hexcore-2.0.5}/pyproject.toml +1 -1
  6. {hexcore-2.0.3 → hexcore-2.0.5}/LICENSE +0 -0
  7. {hexcore-2.0.3 → hexcore-2.0.5}/MANIFEST.in +0 -0
  8. {hexcore-2.0.3 → hexcore-2.0.5}/README.md +0 -0
  9. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/__init__.py +0 -0
  10. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/__main__.py +0 -0
  11. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/__init__.py +0 -0
  12. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/dtos/__init__.py +0 -0
  13. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/dtos/base.py +0 -0
  14. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/dtos/query.py +0 -0
  15. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/use_cases/__init__.py +0 -0
  16. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/application/use_cases/query.py +0 -0
  17. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/config.py +0 -0
  18. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/__init__.py +0 -0
  19. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/auth/__init__.py +0 -0
  20. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/auth/permissions.py +0 -0
  21. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/auth/value_objects.py +0 -0
  22. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/base.py +0 -0
  23. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/events.py +0 -0
  24. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/exceptions.py +0 -0
  25. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/repositories.py +0 -0
  26. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/services.py +0 -0
  27. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/domain/uow.py +0 -0
  28. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/__init__.py +0 -0
  29. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/api/__init__.py +0 -0
  30. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/api/utils.py +0 -0
  31. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/cache/__init__.py +0 -0
  32. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/cache/cache_backends/__init__.py +0 -0
  33. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/cache/cache_backends/memory.py +0 -0
  34. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/cache/cache_backends/redis.py +0 -0
  35. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/cli.py +0 -0
  36. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/events/__init__.py +0 -0
  37. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/events/events_backends/__init__.py +0 -0
  38. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/events/events_backends/memory.py +0 -0
  39. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/__init__.py +0 -0
  40. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/base.py +0 -0
  41. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/decorators.py +0 -0
  42. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/implementations.py +0 -0
  43. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/orms/__init__.py +0 -0
  44. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/orms/beanie/__init__.py +0 -0
  45. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/orms/beanie/utils.py +0 -0
  46. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/orms/sqlalchemy/__init__.py +0 -0
  47. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/orms/sqlalchemy/session.py +0 -0
  48. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/repositories/utils.py +0 -0
  49. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/uow/__init__.py +0 -0
  50. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/uow/decorators.py +0 -0
  51. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/infrastructure/uow/helpers.py +0 -0
  52. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/py.typed +0 -0
  53. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore/types.py +0 -0
  54. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore.egg-info/SOURCES.txt +0 -0
  55. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore.egg-info/dependency_links.txt +0 -0
  56. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore.egg-info/entry_points.txt +0 -0
  57. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore.egg-info/requires.txt +0 -0
  58. {hexcore-2.0.3 → hexcore-2.0.5}/hexcore.egg-info/top_level.txt +0 -0
  59. {hexcore-2.0.3 → hexcore-2.0.5}/scripts/__init__.py +0 -0
  60. {hexcore-2.0.3 → hexcore-2.0.5}/scripts/main.py +0 -0
  61. {hexcore-2.0.3 → hexcore-2.0.5}/setup.cfg +0 -0
  62. {hexcore-2.0.3 → hexcore-2.0.5}/tests/conftest.py +0 -0
  63. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_basic.py +0 -0
  64. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_beanie_query_utils.py +0 -0
  65. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_config_loading.py +0 -0
  66. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_domain_service_query.py +0 -0
  67. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_infrastructure_query_path.py +0 -0
  68. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_query_field_validation.py +0 -0
  69. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_repositories_utils.py +0 -0
  70. {hexcore-2.0.3 → hexcore-2.0.5}/tests/test_uow_session_regression.py +0 -0
  71. {hexcore-2.0.3 → hexcore-2.0.5}/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
3
+ Version: 2.0.5
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
@@ -7,8 +7,7 @@ type DTOType = DTO
7
7
 
8
8
  T = t.TypeVar("T", bound=DTOType | Sequence[DTOType])
9
9
 
10
- R = t.TypeVar("R", bound=DTOType | Sequence[DTOType])
11
-
10
+ R = t.TypeVar("R")
12
11
 
13
12
  class UseCase(ABC, t.Generic[T, R]):
14
13
  @abstractmethod
@@ -40,7 +40,7 @@ def to_model(
40
40
  for field, (dest_field, serializer) in field_serializers.items():
41
41
  if hasattr(entity, field):
42
42
  entity_data[dest_field] = serializer(entity)
43
- if field in entity_data:
43
+ if field != dest_field and field in entity_data:
44
44
  del entity_data[field]
45
45
  model = model_cls(**entity_data)
46
46
  if set_domain and hasattr(model, "set_domain_entity"):
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: hexcore
3
- Version: 2.0.3
3
+ Version: 2.0.5
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,6 +1,6 @@
1
1
  [project]
2
2
  name = "hexcore"
3
- version = "2.0.3"
3
+ version = "2.0.5"
4
4
  authors = [
5
5
  { name="David Latosefki (Indroic)", email="indroic@outlook.com" },
6
6
  ]
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