sincpro-framework 3.37.2__tar.gz → 3.38.0__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.
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/PKG-INFO +21 -29
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/README.md +20 -28
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/pyproject.toml +1 -1
- sincpro_framework-3.38.0/sincpro_framework/aio/__init__.py +10 -0
- sincpro_framework-3.38.0/sincpro_framework/aio/async_threads.py +82 -0
- sincpro_framework-3.38.0/sincpro_framework/aio/bus.py +65 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/aio/bus.pyi +5 -6
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/conf/sincpro_framework_conf.yml +1 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/facade.py +17 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/threads.py +13 -1
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/entrypoint/models.py +16 -2
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/infrastructure/registry.py +20 -2
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/calling.py +12 -16
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/wire.py +7 -9
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/mcp/mcp.py +17 -10
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/wire.py +8 -7
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rest/serving.py +5 -3
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rpc/serving.py +44 -8
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/fastapi.py +3 -8
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/introspection/operations.py +3 -2
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/introspection/schemas.py +46 -6
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/domain.py +21 -14
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/errors/setup.py +4 -6
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/entrypoint/http.py +6 -5
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/domain/config.py +5 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/sincpro_abstractions.py +2 -16
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/sincpro_abstractions.pyi +0 -14
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/use_bus.py +21 -6
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/use_bus.pyi +6 -3
- sincpro_framework-3.37.2/sincpro_framework/aio/__init__.py +0 -10
- sincpro_framework-3.37.2/sincpro_framework/aio/bus.py +0 -89
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/LICENSE.md +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/adapters/api_key_provider.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/adapters/role_permissions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/adapters/service_token_provider.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/adapters/static_provider.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/domain/identity.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/domain/permissions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/domain/provider.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/entrypoint/access_control.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/entrypoint/asgi.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/entrypoint/security.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/infrastructure/security_context.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/auth/services/guard.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus.pyi +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/events.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/incomes/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/incomes/events.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/incomes/incomes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/incomes/listeners.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/incomes/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/incomes/mixins/bus_incomes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/interceptors/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/interceptors/interceptor.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/interceptors/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/interceptors/mixins/bus_interceptors.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/listeners.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/outcomes/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/outcomes/events.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/outcomes/listeners.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/outcomes/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/outcomes/mixins/bus_outcomes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/bus_pipeline/outcomes/outcomes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/circuit_breaker/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/circuit_breaker/circuit_breaker.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/aws/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/aws/clients.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/failures/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/failures/classification.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/failures/problem.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/ids/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/ids/uuid7.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/naming/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/naming/case.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/naming/registered_name.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/ordering/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/ordering/placement.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/reads/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/reads/noting.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/serialization/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/serialization/values.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/transport/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/common/transport/grpc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/adapters/codecs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/adapters/entries.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/adapters/propagation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/adapters/stores.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/codec.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/drafts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/execution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/keys.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/level.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/node.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/owner.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/providers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/sessions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/store.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/domain/travel.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/bus.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/bus_context.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/bus_store.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/executions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/propagation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/providers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/resolution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/scopes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/closed_scopes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/distributed.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/outage.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/shared.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/travel.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/infrastructure/tree.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/drafts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/executions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/nodes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/propagation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/providers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/services/sessions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/adapters/eviction.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/adapters/json_codec.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/adapters/key_value_records.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/adapters/keys.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/adapters/observers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/codec.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/eviction.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/failure.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/freshness.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/idempotency_records.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/idempotent_command.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/observer.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/policies.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/domain/validation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/entrypoint/bus_caching.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/entrypoint/facades.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/infrastructure/clock.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/infrastructure/flight.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/services/cache.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/services/idempotency.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/caching/services/query_caching.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/data_analysis/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/data_analysis/arrow.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/data_analysis/cache.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/data_analysis/export.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/data_analysis/frame.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/adapters/in_memory.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/adapters/manifest.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/domain/context_migrations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/domain/engine.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/domain/status.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/domain/step.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/entrypoint/command_line.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/entrypoint/orchestrator.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/infrastructure/step_ids.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/services/authoring.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/services/moves.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/services/system.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/migrations/services/timeline.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/adapters/http_source.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/adapters/in_memory.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/adapters/local.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/adapters/s3_compatible.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/domain/fetch.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/domain/object_store.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/domain/publication.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/entrypoint/object_storage.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/services/contents.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/services/ids.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/services/objects.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/services/publications.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/object_storage/services/transfers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/migrations/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/migrations/engine.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/migrations/environment/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/migrations/environment/env.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/migrations/environment/script.py.mako +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/numbering.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/adapters/runtime_use_cases.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/domain/consolidation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/domain/custom_fields.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/domain/relations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/domain/transaction.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/aggregate_repository.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/idempotency_records.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/mapping.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/repository.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/archive.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/audit.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/entity.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/events.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/external_keys.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/idempotency.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/numbering.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/properties.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/entrypoint/template_table/runtime_use_cases.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/change_tracking.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/database.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/engine_errors.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/flushing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/in_place_changes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/mapping_registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/observability.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/read_before_commit.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/read_tracking.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/transaction_hooks.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/transaction_opening.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/infrastructure/unit_in_play.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/aggregation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/cache_invalidation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/cascade.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/data_mapper.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/event_mapping.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/extension_mapping.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/extension_typing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/extension_writing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/model_introspection.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/relation_resolver.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/sql_translator.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/upsert.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/workflows/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/workflows/reading.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/workflows/repository_state.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/workflows/unit_of_work.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/orm/sqlalchemy/services/workflows/writing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/repositories/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/repositories/memory_numbering.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/repositories/memory_repository.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/repositories/memory_unit.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/adapters/dynamodb.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/adapters/in_memory.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/adapters/memcached.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/adapters/redis.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/domain/key_value.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/domain/lease.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/infrastructure/client.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/services/bypass.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/data_layer/store/services/leases.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/accents.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/criteria.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/expression.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/grouping.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/pagination.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/resolution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/sort.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/strict.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/domain/values.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/entrypoint/aggregation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/entrypoint/evaluation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/entrypoint/formulas.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/entrypoint/predicates.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/entrypoint/resolution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/axes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/comparison.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/dynamic_values.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/evaluation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/formulas.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/predicates.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/programs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/criteria/services/reading.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/editing/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/editing/bulk_rules.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/editing/drafts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/editing/editing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/editing/edits.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/editing/preview.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/checks.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/computations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/computed.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/entity.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/entity_collection.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/entity_id.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/entity_meta.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/entity_ref.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/extensions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/mixins/archivable.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/mixins/audited.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/mixins/event_sourced.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/presentation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/relations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/utils/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/entity/utils/annotations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/events/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/events/domain_event.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/events/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/events/mixins/change_tracking.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/events/mixins/deliverable.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/exchange_rates.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/excel.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/external_key.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/imports.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/reading.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/shaping.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/importing/writing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/iso_4217.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/domain/declaration.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/domain/facts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/domain/model.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/services/compiler.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/services/contract.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/metamodel/services/description.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/money.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/multi_currency.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/multi_language.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/query.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/reads/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/reads/defaults.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/reads/reads.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/reads/violations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/aggregate_repository.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/capabilities.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/fingerprint.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/hooks.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/mixins/change_tracking.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/numbering.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/publication.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/repositories/repository.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ddd/value_object.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/dependencies.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/__main__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/aws_lambda/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/aws_lambda/sqs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/adapters/clocks.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/adapters/in_memory_runs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/adapters/key_value_runs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/domain/clock.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/domain/cron.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/domain/runs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/domain/schedule.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/gateway/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/gateway/gateway.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/gateway/process.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/cron/registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/contracts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/problems.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/fastapi/tagged.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/grpc/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/grpc/client.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/grpc/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/grpc/naming.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/grpc/proto.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/grpc/wire.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/mcp/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/mcp/auth.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/mcp/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/mcp/wire.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/channels.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/flavours.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/inbox.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/sqs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/queue/verdicts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rest/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rest/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rest/openapi.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rest/routing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rpc/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rpc/errors.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rpc/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rpc/jrpc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/adapters/rpc/wire.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/bindings.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/layers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/packed.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/readiness.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/domain/surface.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/aws_lambda.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/decorators.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/grpc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/mcp.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/queue.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/rest.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/rpc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/entrypoint/workers.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/infrastructure/http.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/infrastructure/json_schema.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/infrastructure/registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/services/catalog.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/services/client_contract.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/services/gateway.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/services/readiness.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/entrypoints/services/scalar_execution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/error_handler.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/aws/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/aws/attributes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/aws/queues.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/background_queue.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/faststream/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/faststream/queue.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/adapters/sync_queue.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/domain/broker.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/domain/envelope.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/domain/forwarding.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/domain/queue.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/domain/subscribes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/entrypoint/publisher.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/entrypoint/subscriber.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/services/dispatch.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/services/forwarding.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/event_driven/services/publication.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/introspection/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/introspection/entity_tags.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/introspection/inspector.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/introspection/metamodel.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/ioc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/api.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/correlation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/errors/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/errors/record_error.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/failure.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/field_paths.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/http.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/adapters/in_memory.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/adapters/otel.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/adapters/prometheus.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/domain/bus_observability.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/domain/declarations.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/domain/instruments.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/domain/naming.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/domain/recorder.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/entrypoint/facade.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/infrastructure/active.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/infrastructure/registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/services/declaring.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/services/labels.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/services/measuring.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/services/outcomes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/services/recording.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/metrics/testing.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/mixins/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/mixins/bus_observability.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/otlp.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/attributes.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/propagation.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/setup.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/span_context.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/span_error.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/observability/tracing/span_execution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/domain/reads.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/domain/recipe.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/domain/run.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/entrypoint/bus_pipelines.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/entrypoint/pipeline.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/entrypoint/reads.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/services/recorder.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/pipelines/services/runs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/py.typed +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/references/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/references/entity_refs.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/references/resolve.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/adapters/grpc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/adapters/http.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/domain/address.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/domain/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/domain/failure_codec.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/domain/payload.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/domain/transport.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/entrypoint/grpc.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/entrypoint/host_process.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/entrypoint/hosted_context.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/entrypoint/hosts.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/infrastructure/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/infrastructure/configuration.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/services/hosted_execution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/remote_execution/services/transports.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/runtime_use_cases/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/runtime_use_cases/domain.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/runtime_use_cases/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/runtime_use_cases/in_memory.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/runtime_use_cases/loading.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/runtime_use_cases/registry.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/analysis/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/analysis/architecture.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/analysis/function_order.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/analysis/settings_scope.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/auth_provider.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/caching_strategies.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/computed_fields.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/exchange_rates.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/extension.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/idempotency_records.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/key_value_store.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/contracts/object_store.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/doubles/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/doubles/auth.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/doubles/clock.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/doubles/context.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/doubles/dependencies.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/doubles/events.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/runtime/testing/exceptions.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/adapters/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/adapters/aws.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/adapters/environment.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/adapters/yaml_file.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/domain/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/domain/description.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/entrypoint/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/entrypoint/building.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/services/__init__.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/services/building.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/services/description.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/settings/services/resolution.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/sincpro_conf.py +0 -0
- {sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/sincpro_logger.py +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: sincpro-framework
|
|
3
|
-
Version: 3.
|
|
3
|
+
Version: 3.38.0
|
|
4
4
|
Summary: Sincpro framework to use DDD, Clean architecture, Hexagonal architecture
|
|
5
5
|
License: MIT
|
|
6
6
|
License-File: LICENSE.md
|
|
@@ -346,43 +346,34 @@ class SyncManyFeature(ApplicationService):
|
|
|
346
346
|
|
|
347
347
|
#### Async fan-out with `get_async_bus()`
|
|
348
348
|
|
|
349
|
-
|
|
350
|
-
`
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
`
|
|
357
|
-
- Solves the same context-propagation problem as `thread_context()`, via `asyncio.to_thread`
|
|
358
|
-
itself (stdlib already propagates `contextvars` into the worker thread). Opposite reuse
|
|
359
|
-
rule: an `AsyncBus` is stateless, so get it **once** and `await`/`asyncio.gather` many calls
|
|
360
|
-
on it — each call gets its own fresh context snapshot, unlike `thread_context()`'s
|
|
361
|
-
single-use-per-snapshot restriction.
|
|
362
|
-
- Runs each call via `asyncio.to_thread` (stdlib), so `Feature`/`ApplicationService` stay
|
|
363
|
-
100% sync — no "async Feature" variant to maintain.
|
|
349
|
+
- `thread_context()` is for **sync** code managing a `ThreadPoolExecutor` of its own. A caller
|
|
350
|
+
that is already `async def` (an async host handler, a script) fans out with
|
|
351
|
+
`framework.get_async_bus()`: get it **once** and await it from as many tasks as wanted — each
|
|
352
|
+
call takes its own copy of the caller's context.
|
|
353
|
+
- Each call runs on one of the bus's async threads — the pool REST, JSON-RPC, MCP, a queue and a
|
|
354
|
+
hosted context run on too: the process's, `SINCPRO_FRAMEWORK_ASYNC_THREADS` of them (40 by
|
|
355
|
+
default), or the bus's own with `UseFramework("sandbox", async_threads=8)`.
|
|
356
|
+
`Feature`/`ApplicationService` stay 100% sync: no "async Feature" variant to maintain.
|
|
364
357
|
|
|
365
358
|
```python
|
|
366
359
|
import asyncio
|
|
367
360
|
|
|
368
361
|
async def handle_request(framework, dto_a, dto_b, dto_c):
|
|
369
362
|
async_bus = framework.get_async_bus()
|
|
370
|
-
|
|
371
|
-
async_bus(dto_a
|
|
372
|
-
)
|
|
373
|
-
return result_a, result_b, result_c
|
|
363
|
+
async with asyncio.TaskGroup() as group:
|
|
364
|
+
tasks = [group.create_task(async_bus(dto)) for dto in (dto_a, dto_b, dto_c)]
|
|
365
|
+
return [task.result() for task in tasks]
|
|
374
366
|
```
|
|
375
367
|
|
|
376
368
|
**Cancellation and fan-out reliability**
|
|
377
369
|
|
|
378
|
-
- Cancelling the awaiting coroutine (
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
all-but-the-first exception unless `return_exceptions=True` is passed.
|
|
370
|
+
- Cancelling the awaiting coroutine (an `asyncio.timeout`, a failed `TaskGroup` sibling) drops a
|
|
371
|
+
call still waiting its turn; one already running runs to its end — Python cannot stop a
|
|
372
|
+
thread — with `self.context.cancelled` set, so a use case that works in steps may stop itself.
|
|
373
|
+
Design for that: idempotency, and no assumption that a timeout aborted the work.
|
|
374
|
+
- Prefer `asyncio.TaskGroup` (3.11+) over `asyncio.gather`: it cancels its siblings on the first
|
|
375
|
+
failure and raises an `ExceptionGroup`, where `gather` leaves them running.
|
|
376
|
+
- The whole picture: [docs/core/async-threads.md](docs/core/async-threads.md).
|
|
386
377
|
|
|
387
378
|
### ⚠️ Error Handling at Different Levels
|
|
388
379
|
|
|
@@ -1911,7 +1902,8 @@ attempts it.** Everything below was verified hands-on (3.14.7 vs. 3.14.7t), not
|
|
|
1911
1902
|
GIL-build-specific assumption and would legitimately fail if that suite is ever run on a
|
|
1912
1903
|
free-threaded interpreter.
|
|
1913
1904
|
- **`asyncio`'s free-threading support only matured in 3.14.** Relevant to `get_async_bus()`
|
|
1914
|
-
|
|
1905
|
+
and every async door, which hand calls from the event loop to the async threads: prefer 3.14+
|
|
1906
|
+
over 3.13t for that path.
|
|
1915
1907
|
- Registries built once at startup (`feature_registry`, `app_service_registry`,
|
|
1916
1908
|
`dynamic_dep_registry`, the interceptor chains) are safe as long as nothing mutates them
|
|
1917
1909
|
concurrently with in-flight executions — true today, not enforced. See the docstring on
|
|
@@ -286,43 +286,34 @@ class SyncManyFeature(ApplicationService):
|
|
|
286
286
|
|
|
287
287
|
#### Async fan-out with `get_async_bus()`
|
|
288
288
|
|
|
289
|
-
|
|
290
|
-
`
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
`
|
|
297
|
-
- Solves the same context-propagation problem as `thread_context()`, via `asyncio.to_thread`
|
|
298
|
-
itself (stdlib already propagates `contextvars` into the worker thread). Opposite reuse
|
|
299
|
-
rule: an `AsyncBus` is stateless, so get it **once** and `await`/`asyncio.gather` many calls
|
|
300
|
-
on it — each call gets its own fresh context snapshot, unlike `thread_context()`'s
|
|
301
|
-
single-use-per-snapshot restriction.
|
|
302
|
-
- Runs each call via `asyncio.to_thread` (stdlib), so `Feature`/`ApplicationService` stay
|
|
303
|
-
100% sync — no "async Feature" variant to maintain.
|
|
289
|
+
- `thread_context()` is for **sync** code managing a `ThreadPoolExecutor` of its own. A caller
|
|
290
|
+
that is already `async def` (an async host handler, a script) fans out with
|
|
291
|
+
`framework.get_async_bus()`: get it **once** and await it from as many tasks as wanted — each
|
|
292
|
+
call takes its own copy of the caller's context.
|
|
293
|
+
- Each call runs on one of the bus's async threads — the pool REST, JSON-RPC, MCP, a queue and a
|
|
294
|
+
hosted context run on too: the process's, `SINCPRO_FRAMEWORK_ASYNC_THREADS` of them (40 by
|
|
295
|
+
default), or the bus's own with `UseFramework("sandbox", async_threads=8)`.
|
|
296
|
+
`Feature`/`ApplicationService` stay 100% sync: no "async Feature" variant to maintain.
|
|
304
297
|
|
|
305
298
|
```python
|
|
306
299
|
import asyncio
|
|
307
300
|
|
|
308
301
|
async def handle_request(framework, dto_a, dto_b, dto_c):
|
|
309
302
|
async_bus = framework.get_async_bus()
|
|
310
|
-
|
|
311
|
-
async_bus(dto_a
|
|
312
|
-
)
|
|
313
|
-
return result_a, result_b, result_c
|
|
303
|
+
async with asyncio.TaskGroup() as group:
|
|
304
|
+
tasks = [group.create_task(async_bus(dto)) for dto in (dto_a, dto_b, dto_c)]
|
|
305
|
+
return [task.result() for task in tasks]
|
|
314
306
|
```
|
|
315
307
|
|
|
316
308
|
**Cancellation and fan-out reliability**
|
|
317
309
|
|
|
318
|
-
- Cancelling the awaiting coroutine (
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
all-but-the-first exception unless `return_exceptions=True` is passed.
|
|
310
|
+
- Cancelling the awaiting coroutine (an `asyncio.timeout`, a failed `TaskGroup` sibling) drops a
|
|
311
|
+
call still waiting its turn; one already running runs to its end — Python cannot stop a
|
|
312
|
+
thread — with `self.context.cancelled` set, so a use case that works in steps may stop itself.
|
|
313
|
+
Design for that: idempotency, and no assumption that a timeout aborted the work.
|
|
314
|
+
- Prefer `asyncio.TaskGroup` (3.11+) over `asyncio.gather`: it cancels its siblings on the first
|
|
315
|
+
failure and raises an `ExceptionGroup`, where `gather` leaves them running.
|
|
316
|
+
- The whole picture: [docs/core/async-threads.md](docs/core/async-threads.md).
|
|
326
317
|
|
|
327
318
|
### ⚠️ Error Handling at Different Levels
|
|
328
319
|
|
|
@@ -1851,7 +1842,8 @@ attempts it.** Everything below was verified hands-on (3.14.7 vs. 3.14.7t), not
|
|
|
1851
1842
|
GIL-build-specific assumption and would legitimately fail if that suite is ever run on a
|
|
1852
1843
|
free-threaded interpreter.
|
|
1853
1844
|
- **`asyncio`'s free-threading support only matured in 3.14.** Relevant to `get_async_bus()`
|
|
1854
|
-
|
|
1845
|
+
and every async door, which hand calls from the event loop to the async threads: prefer 3.14+
|
|
1846
|
+
over 3.13t for that path.
|
|
1855
1847
|
- Registries built once at startup (`feature_registry`, `app_service_registry`,
|
|
1856
1848
|
`dynamic_dep_registry`, the interceptor chains) are safe as long as nothing mutates them
|
|
1857
1849
|
concurrently with in-flight executions — true today, not enforced. See the docstring on
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"""Async-facing pieces of the framework: anything meant for an `async def` caller.
|
|
2
|
+
|
|
3
|
+
`AsyncBus` (`bus.py`) is the async door of a bus — `billing.get_async_bus()`. `async_threads.py`
|
|
4
|
+
holds the async threads: where it and every other async door (REST, JSON-RPC, MCP, a queue, a
|
|
5
|
+
hosted context) run the buses — the process's pool, or a bus's own.
|
|
6
|
+
"""
|
|
7
|
+
|
|
8
|
+
from sincpro_framework.aio.bus import AsyncBus
|
|
9
|
+
|
|
10
|
+
__all__ = ["AsyncBus"]
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
"""The async threads: where every async door runs the buses. One pool for the process, shared by
|
|
2
|
+
every bus, and a pool of its own for a bus that asks for one — a slow context then waits on its
|
|
3
|
+
own threads, never on the others'.
|
|
4
|
+
|
|
5
|
+
SINCPRO_FRAMEWORK_ASYNC_THREADS=150 the process's pool (40 when unset)
|
|
6
|
+
UseFramework("sandbox", async_threads=8) sandbox's own eight
|
|
7
|
+
self.context.cancelled inside a call: did its caller leave?
|
|
8
|
+
|
|
9
|
+
Context: a bus is synchronous and an async door — a REST route, a JSON-RPC body, an MCP tool, a
|
|
10
|
+
queue's message, a hosted context, `get_async_bus()` — runs on an event loop that serves every
|
|
11
|
+
request at once. The door cannot run `execute` on the loop without stopping every other request
|
|
12
|
+
while it waits, so it hands the call to a thread and awaits it. A call that waits on I/O holds its
|
|
13
|
+
thread the whole wait: the threads are how many calls run at once, and the next ones wait their
|
|
14
|
+
turn. A synchronous caller — Odoo, a script, a cron, a Feature calling another bus — runs the bus
|
|
15
|
+
in its own thread and never comes here.
|
|
16
|
+
|
|
17
|
+
A caller that stops waiting — `CancelledError` in the awaiting task — leaves its call one of two
|
|
18
|
+
ways: still waiting its turn, it never runs; already running, it runs on, its context's `cancelled`
|
|
19
|
+
set, so a use case that works in steps may stop itself.
|
|
20
|
+
"""
|
|
21
|
+
|
|
22
|
+
import asyncio
|
|
23
|
+
import threading
|
|
24
|
+
import weakref
|
|
25
|
+
from collections.abc import Callable
|
|
26
|
+
from typing import Any
|
|
27
|
+
|
|
28
|
+
from sincpro_framework.context.entrypoint.threads import ContextExecutor, call_cancelled
|
|
29
|
+
from sincpro_framework.sincpro_conf import settings
|
|
30
|
+
|
|
31
|
+
_shared: ContextExecutor | None = None
|
|
32
|
+
"""The process's pool, started by the first call that needs it — sized then by
|
|
33
|
+
`settings.async_threads`, so the settings a project hands over at its start are the ones used."""
|
|
34
|
+
_owned: weakref.WeakKeyDictionary[Any, ContextExecutor] = weakref.WeakKeyDictionary()
|
|
35
|
+
"""Each pool of a bus that declared `async_threads`, by the bus — let go with it."""
|
|
36
|
+
_starting = threading.Lock()
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
async def on_async_thread[R](
|
|
40
|
+
bus: Any, function: Callable[..., R], *args: Any, **kwargs: Any
|
|
41
|
+
) -> R:
|
|
42
|
+
"""`function(*args, **kwargs)` on one of `bus`'s async threads, in a copy of the caller's
|
|
43
|
+
context.
|
|
44
|
+
|
|
45
|
+
await on_async_thread(route.bus, call_route, route, payload) -> (200, {...})
|
|
46
|
+
await on_async_thread(None, dispatch, surface, body) the process's pool
|
|
47
|
+
|
|
48
|
+
1. The pool: `bus`'s own when it declared `async_threads`, started the first time; else the
|
|
49
|
+
process's — for a bus that declared none, and for a call no bus answers (`None`).
|
|
50
|
+
2. The call's flag, set into the copy of the context the thread runs it in — the caller's
|
|
51
|
+
own context is never written.
|
|
52
|
+
3. Awaited. The caller stops waiting (`CancelledError`): a call still waiting its turn is
|
|
53
|
+
dropped, a running one has its flag set; the cancellation raised either way.
|
|
54
|
+
Final: what `function` answered, or what it raised.
|
|
55
|
+
"""
|
|
56
|
+
global _shared
|
|
57
|
+
own = getattr(bus, "async_threads", None)
|
|
58
|
+
with _starting:
|
|
59
|
+
if own is not None:
|
|
60
|
+
pool = _owned.get(bus)
|
|
61
|
+
if pool is None:
|
|
62
|
+
pool = _owned[bus] = ContextExecutor(
|
|
63
|
+
max_workers=own, thread_name_prefix=f"sincpro-async-{bus.name}"
|
|
64
|
+
)
|
|
65
|
+
else:
|
|
66
|
+
if _shared is None:
|
|
67
|
+
_shared = ContextExecutor(
|
|
68
|
+
max_workers=settings.async_threads, thread_name_prefix="sincpro-async"
|
|
69
|
+
)
|
|
70
|
+
pool = _shared
|
|
71
|
+
flag = threading.Event()
|
|
72
|
+
|
|
73
|
+
def flagged() -> R:
|
|
74
|
+
"""The call, with its flag in the context it runs in."""
|
|
75
|
+
call_cancelled.set(flag)
|
|
76
|
+
return function(*args, **kwargs)
|
|
77
|
+
|
|
78
|
+
try:
|
|
79
|
+
return await asyncio.get_running_loop().run_in_executor(pool, flagged)
|
|
80
|
+
except asyncio.CancelledError:
|
|
81
|
+
flag.set()
|
|
82
|
+
raise
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"""AsyncBus: the async door of the bus a project holds — `await billing.get_async_bus()(dto)`.
|
|
2
|
+
|
|
3
|
+
A bus is synchronous end to end, so a caller that is itself `async def` hands each call to a
|
|
4
|
+
thread, and keeps its event loop free while the use case runs. The thread is one of the bus's
|
|
5
|
+
async threads (`aio/async_threads.py`) — its own when it declared `async_threads`, the process's
|
|
6
|
+
otherwise —, each call in a copy of its caller's context: `self.context` reads what the caller had
|
|
7
|
+
set, and nothing the call sets leaks back.
|
|
8
|
+
"""
|
|
9
|
+
|
|
10
|
+
from collections.abc import Callable
|
|
11
|
+
from typing import TYPE_CHECKING, Any, Type
|
|
12
|
+
|
|
13
|
+
from sincpro_framework.aio.async_threads import on_async_thread
|
|
14
|
+
|
|
15
|
+
if TYPE_CHECKING:
|
|
16
|
+
from ..sincpro_abstractions import TypeDTO, TypeDTOResponse
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
class AsyncBus:
|
|
20
|
+
"""Async facade over a sync bus.
|
|
21
|
+
|
|
22
|
+
Stateless and safe to reuse concurrently (`asyncio.gather`, a `TaskGroup`): every call takes
|
|
23
|
+
its own copy of the caller's context, so there is nothing shared to race on between calls.
|
|
24
|
+
|
|
25
|
+
async_bus = billing.get_async_bus()
|
|
26
|
+
async with asyncio.TaskGroup() as group:
|
|
27
|
+
for dto in dtos:
|
|
28
|
+
group.create_task(async_bus(dto))
|
|
29
|
+
|
|
30
|
+
As many calls run at once as the bus has async threads; the next ones wait their turn. A
|
|
31
|
+
caller that stops waiting — a `TaskGroup` sibling failed, an `asyncio.timeout` passed — drops
|
|
32
|
+
a call still waiting its turn; one already running runs to its end, its
|
|
33
|
+
`self.context.cancelled` set, since a thread cannot be stopped from outside.
|
|
34
|
+
Design for that: idempotency, and no assumption that a timeout stopped the work.
|
|
35
|
+
|
|
36
|
+
Prefer `asyncio.TaskGroup` (3.11+) over `asyncio.gather` to fan out: it cancels its siblings
|
|
37
|
+
on the first failure and raises an `ExceptionGroup`, where `gather` leaves them running.
|
|
38
|
+
"""
|
|
39
|
+
|
|
40
|
+
def __init__(self, run: Callable[..., Any]) -> None:
|
|
41
|
+
"""Wrap whatever runs a DTO synchronously — nothing else is stored, so one instance
|
|
42
|
+
serves any number of concurrent awaits."""
|
|
43
|
+
self._run = run
|
|
44
|
+
"""What runs a DTO on an async thread: the `UseFramework` itself — which builds on first
|
|
45
|
+
use, opens the call's scope and forwards a context hosted elsewhere —, and whose async
|
|
46
|
+
threads it runs on."""
|
|
47
|
+
|
|
48
|
+
async def execute(
|
|
49
|
+
self, dto: "TypeDTO", return_type: "Type[TypeDTOResponse] | None" = None
|
|
50
|
+
) -> "TypeDTOResponse | None":
|
|
51
|
+
"""Run the DTO on one of the bus's async threads, in a copy of the caller's context.
|
|
52
|
+
|
|
53
|
+
await billing.get_async_bus().execute(CommandIssue(total=10), Issued) -> Issued
|
|
54
|
+
"""
|
|
55
|
+
return await on_async_thread(self._run, self._run, dto, return_type)
|
|
56
|
+
|
|
57
|
+
async def __call__(
|
|
58
|
+
self, dto: "TypeDTO", return_type: "Type[TypeDTOResponse] | None" = None
|
|
59
|
+
) -> "TypeDTOResponse | None":
|
|
60
|
+
"""`await async_bus(dto)` — the same as `await async_bus.execute(dto)`, as a sync
|
|
61
|
+
`Bus` is called.
|
|
62
|
+
|
|
63
|
+
await billing.get_async_bus()(CreateInvoice(amount=10)) -> InvoiceCreated(...)
|
|
64
|
+
"""
|
|
65
|
+
return await self.execute(dto, return_type)
|
|
@@ -6,13 +6,12 @@ if TYPE_CHECKING:
|
|
|
6
6
|
|
|
7
7
|
class AsyncBus:
|
|
8
8
|
"""
|
|
9
|
-
|
|
9
|
+
The async door of the bus a project holds — `await billing.get_async_bus()(dto)`.
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
`
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
context snapshot from `asyncio.to_thread` itself.
|
|
11
|
+
Each call runs on one of the bus's async threads — its own (`async_threads=`), or the
|
|
12
|
+
process's (`SINCPRO_FRAMEWORK_ASYNC_THREADS`) — in a copy of the caller's context. Stateless and safe to reuse concurrently (`asyncio.TaskGroup`,
|
|
13
|
+
`asyncio.gather`). A caller that stops waiting drops a call still waiting its turn; one
|
|
14
|
+
already running runs to its end, its `self.context.cancelled` set.
|
|
16
15
|
"""
|
|
17
16
|
|
|
18
17
|
def __init__(self, run: Callable[..., Any]) -> None: ...
|
{sincpro_framework-3.37.2 → sincpro_framework-3.38.0}/sincpro_framework/context/entrypoint/facade.py
RENAMED
|
@@ -35,6 +35,7 @@ from sincpro_framework.context.domain.level import ContextLevel, EntrypointKind,
|
|
|
35
35
|
from sincpro_framework.context.domain.node import REMOVED, ContextNode
|
|
36
36
|
from sincpro_framework.context.domain.owner import Owner
|
|
37
37
|
from sincpro_framework.context.domain.store import ContextStore
|
|
38
|
+
from sincpro_framework.context.entrypoint.threads import call_cancelled
|
|
38
39
|
from sincpro_framework.context.infrastructure.shared import SharedValues
|
|
39
40
|
from sincpro_framework.context.infrastructure.travel import travelling
|
|
40
41
|
from sincpro_framework.context.infrastructure.tree import ROOT, current, entered
|
|
@@ -115,6 +116,22 @@ class Context(dict[Any, Any]):
|
|
|
115
116
|
"""The execution this node is, or stands in."""
|
|
116
117
|
return next((node.execution for node in self._node.chain() if node.execution), None)
|
|
117
118
|
|
|
119
|
+
@property
|
|
120
|
+
def cancelled(self) -> bool:
|
|
121
|
+
"""Whether whoever awaits this call stopped waiting — an agent cancelled the tool call, a
|
|
122
|
+
queue's time limit passed. Nothing is stopped for it: a use case that works in steps reads
|
|
123
|
+
it between two of them and stops itself, or finishes what it started.
|
|
124
|
+
|
|
125
|
+
for page in pages:
|
|
126
|
+
if self.context.cancelled:
|
|
127
|
+
break
|
|
128
|
+
...
|
|
129
|
+
|
|
130
|
+
Always `False` for a call run where no event loop awaits it (`bus(dto)` from sync code).
|
|
131
|
+
"""
|
|
132
|
+
flag = call_cancelled.get()
|
|
133
|
+
return flag is not None and flag.is_set()
|
|
134
|
+
|
|
118
135
|
def _identity_written(self, key: Any, value: Any) -> None:
|
|
119
136
|
"""`correlation_id` names the flow from here on: the execution in play takes it. The other
|
|
120
137
|
two are minted by the framework — written here they only name what a root is handed.
|
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
ContextThread(target=work).start() a thread that starts where its creator stood
|
|
4
4
|
ContextExecutor(max_workers=8) a pool that hands each task the submitter's context
|
|
5
5
|
executor.submit(in_context(work), …) one function, for a pool the project owns
|
|
6
|
+
call_cancelled the flag a call handed off by an async door carries
|
|
6
7
|
|
|
7
8
|
**Why the framework does it, and not the interpreter.** An asyncio task starts from a copy of its
|
|
8
9
|
creator's context (PEP 567). A `threading.Thread` starts from none on the default build, and from a
|
|
@@ -19,9 +20,20 @@ copy-on-write: what a task sees is never half written, and what it sets stays in
|
|
|
19
20
|
import threading
|
|
20
21
|
from collections.abc import Callable
|
|
21
22
|
from concurrent.futures import Future, ThreadPoolExecutor
|
|
22
|
-
from contextvars import Context, copy_context
|
|
23
|
+
from contextvars import Context, ContextVar, copy_context
|
|
23
24
|
from typing import Any
|
|
24
25
|
|
|
26
|
+
call_cancelled: ContextVar[threading.Event | None] = ContextVar(
|
|
27
|
+
"sincpro_call_cancelled", default=None
|
|
28
|
+
)
|
|
29
|
+
"""Whether whoever awaits the call in play stopped waiting — what `Context.cancelled` reads.
|
|
30
|
+
|
|
31
|
+
An async door that hands a call to a worker (`sincpro_framework.aio.async_threads`) sets it in that
|
|
32
|
+
call's own copy of the context, so every thread the call hands work to here reads the same flag.
|
|
33
|
+
A thread cannot be stopped from outside: a call whose caller went away — an agent that cancelled a
|
|
34
|
+
tool call, a queue's time limit that passed — runs on, and the flag is how it can know. `None` for
|
|
35
|
+
a call no event loop awaits: it can never be cancelled."""
|
|
36
|
+
|
|
25
37
|
|
|
26
38
|
def in_context[R](function: Callable[..., R]) -> Callable[..., R]:
|
|
27
39
|
"""`function`, run in a copy of the context it was wrapped in — whichever thread calls it.
|
|
@@ -7,6 +7,7 @@ description_of(Sale, StoreFacts(identity="id", …)) as a store that knows m
|
|
|
7
7
|
contract_of(Sale) what a client is published
|
|
8
8
|
"""
|
|
9
9
|
|
|
10
|
+
import copy
|
|
10
11
|
from typing import Any
|
|
11
12
|
|
|
12
13
|
from sincpro_framework.ddd.entity.entity import Entity
|
|
@@ -54,6 +55,10 @@ def description_of(declared: type, facts: StoreFacts | None = None) -> Meta:
|
|
|
54
55
|
)
|
|
55
56
|
|
|
56
57
|
|
|
58
|
+
_contracts: dict[type, tuple[int, dict[str, Any]]] = {}
|
|
59
|
+
"""Each contract `contract_of` rendered, with the models' revision it was rendered at."""
|
|
60
|
+
|
|
61
|
+
|
|
57
62
|
def contract_of(declared: type) -> dict[str, Any]:
|
|
58
63
|
"""The published contract of `declared`: its JSON Schema 2020-12 with one `x-sincpro` per
|
|
59
64
|
schema and per property, and the entities its relations point at under `$defs`.
|
|
@@ -70,8 +75,16 @@ def contract_of(declared: type) -> dict[str, Any]:
|
|
|
70
75
|
another entity a relation no filter crosses —, and rendered with the fingerprint of its
|
|
71
76
|
model as its version; each shape a record holds inside written once, by its class's name
|
|
72
77
|
(`shapes`), the entities' names taken from the start.
|
|
73
|
-
|
|
78
|
+
3. Held with the models' revision: rendered again only once a model was let go or a store
|
|
79
|
+
said something new (`models.revision`) — a gateway asks for the same contract from every
|
|
80
|
+
route, catalog and document it builds.
|
|
81
|
+
Final: a copy of the schema of `declared` — the caller may write on it —; the entities and
|
|
82
|
+
the shapes beside it under `$defs`.
|
|
74
83
|
"""
|
|
84
|
+
revision = models.revision
|
|
85
|
+
held = _contracts.get(declared)
|
|
86
|
+
if held is not None and held[0] == revision:
|
|
87
|
+
return copy.deepcopy(held[1])
|
|
75
88
|
reached: list[type] = [declared]
|
|
76
89
|
for one in reached:
|
|
77
90
|
for annotation in models.of(one).annotations.values():
|
|
@@ -99,4 +112,5 @@ def contract_of(declared: type) -> dict[str, Any]:
|
|
|
99
112
|
beside.pop(declared.__name__)
|
|
100
113
|
if beside:
|
|
101
114
|
contract["$defs"] = beside
|
|
102
|
-
|
|
115
|
+
_contracts[declared] = (revision, contract)
|
|
116
|
+
return copy.deepcopy(contract)
|
|
@@ -30,6 +30,16 @@ class Models:
|
|
|
30
30
|
self._facts: dict[type, StoreFacts] = {}
|
|
31
31
|
self._versions: dict[type, str] = {}
|
|
32
32
|
self._lock = threading.Lock()
|
|
33
|
+
self._revision = 0
|
|
34
|
+
"""Grows each time a model is let go or a store says something new of a class — what a
|
|
35
|
+
reader that keeps something rendered from the models (`contract_of`) checks."""
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def revision(self) -> int:
|
|
39
|
+
"""How many times what the models say has changed: a model let go, a store's new facts.
|
|
40
|
+
Equal to what it was when something was rendered from them, that rendering still holds.
|
|
41
|
+
"""
|
|
42
|
+
return self._revision
|
|
33
43
|
|
|
34
44
|
def of(self, declared: type) -> Model:
|
|
35
45
|
"""The model of `declared`, compiled the first time it is asked for.
|
|
@@ -67,11 +77,19 @@ class Models:
|
|
|
67
77
|
self._held.clear()
|
|
68
78
|
for one in declared:
|
|
69
79
|
self._held.pop(one, None)
|
|
80
|
+
self._revision += 1
|
|
70
81
|
|
|
71
82
|
def learn(self, declared: type, facts: StoreFacts) -> None:
|
|
72
83
|
"""Hold what a store said of `declared` — the last one said wins —, with nothing that
|
|
73
|
-
reaches back into the store: what the published contract is rendered with.
|
|
74
|
-
|
|
84
|
+
reaches back into the store: what the published contract is rendered with. Facts equal to
|
|
85
|
+
the held ones change nothing: a store that describes a class on every read leaves what was
|
|
86
|
+
rendered from them standing."""
|
|
87
|
+
learned = dataclasses.replace(facts, related=None)
|
|
88
|
+
if self._facts.get(declared) == learned:
|
|
89
|
+
return
|
|
90
|
+
with self._lock:
|
|
91
|
+
self._facts[declared] = learned
|
|
92
|
+
self._revision += 1
|
|
75
93
|
|
|
76
94
|
def facts_of(self, declared: type) -> StoreFacts | None:
|
|
77
95
|
"""What the last store that described `declared` said of it; `None` when none did."""
|
|
@@ -8,22 +8,20 @@ of the project's runs through `Depends(bus_call(bus))` — so neither skips a co
|
|
|
8
8
|
Context — the contextvar trap. Identity is a `ContextVar`, and FastAPI runs each synchronous
|
|
9
9
|
dependency in a worker thread with a *copy* of the context: an identity set there is gone in the
|
|
10
10
|
next thread. So the credentials are only read here, in an async dependency with no I/O, and
|
|
11
|
-
authentication and `bus(dto)` run together
|
|
12
|
-
called, never `execute`: the access guard, idempotency, caching, the Feature's span and
|
|
13
|
-
apply by construction. A FastAPI dependency is never authorization — `AccessControl` inside
|
|
14
|
-
bus stays the only guard.
|
|
11
|
+
authentication and `bus(dto)` run together on one of the bus's async threads (`on_async_thread`).
|
|
12
|
+
The bus is called, never `execute`: the access guard, idempotency, caching, the Feature's span and
|
|
13
|
+
Sentry apply by construction. A FastAPI dependency is never authorization — `AccessControl` inside
|
|
14
|
+
the bus stays the only guard.
|
|
15
15
|
"""
|
|
16
16
|
|
|
17
17
|
from collections.abc import Awaitable, Callable, Mapping
|
|
18
18
|
from contextlib import ExitStack
|
|
19
|
-
from functools import partial
|
|
20
19
|
from typing import Any
|
|
21
20
|
|
|
22
|
-
import anyio.to_thread
|
|
23
|
-
from anyio import CapacityLimiter
|
|
24
21
|
from fastapi import Depends, Request
|
|
25
22
|
from pydantic import ConfigDict, Field
|
|
26
23
|
|
|
24
|
+
from sincpro_framework.aio.async_threads import on_async_thread
|
|
27
25
|
from sincpro_framework.auth import Credentials, security
|
|
28
26
|
from sincpro_framework.context import EntrypointKind, context_executions, context_propagation
|
|
29
27
|
from sincpro_framework.data_layer.caching import (
|
|
@@ -194,11 +192,10 @@ def run_on_bus(
|
|
|
194
192
|
raise
|
|
195
193
|
|
|
196
194
|
|
|
197
|
-
def bus_call(
|
|
198
|
-
bus: UseFramework, limiter: CapacityLimiter | None = None
|
|
199
|
-
) -> Callable[..., Awaitable[BusCall]]:
|
|
195
|
+
def bus_call(bus: UseFramework) -> Callable[..., Awaitable[BusCall]]:
|
|
200
196
|
"""A FastAPI dependency answering `call`: `await call(dto)` runs `dto` on `bus` the way
|
|
201
|
-
every generated route does
|
|
197
|
+
every generated route does — on the bus's async threads: its own (`async_threads=`), or the
|
|
198
|
+
process's (`SINCPRO_FRAMEWORK_ASYNC_THREADS`).
|
|
202
199
|
|
|
203
200
|
Context: a hand-written route that called `bus(dto)` itself would run in the event loop,
|
|
204
201
|
lose the identity to a thread copy and skip the problem's trace id; through `call` it is
|
|
@@ -213,7 +210,7 @@ def bus_call(
|
|
|
213
210
|
2.1 the bus noted on the request state, so a 401 names its challenges;
|
|
214
211
|
2.2 a use case that runs once, with no `Idempotency-Key` and a Command that does not
|
|
215
212
|
identify itself — `IdempotencyKeyMissing`, before the bus;
|
|
216
|
-
2.3 `run_on_bus`
|
|
213
|
+
2.3 `run_on_bus` on the bus's async threads;
|
|
217
214
|
2.4 on failure, the trace it belongs to stored on the request state.
|
|
218
215
|
Final: `provide` — FastAPI calls it, the route gets `call`.
|
|
219
216
|
"""
|
|
@@ -232,7 +229,7 @@ def bus_call(
|
|
|
232
229
|
1. The bus is noted on the request state — a 401 names its challenges.
|
|
233
230
|
2. A use case that runs once, with no `Idempotency-Key` and a Command that does
|
|
234
231
|
not identify itself, is refused before the bus (400).
|
|
235
|
-
3. `run_on_bus`
|
|
232
|
+
3. `run_on_bus` on the bus's async threads.
|
|
236
233
|
4. Final: on failure, the trace it belongs to is stored on the request state, so the
|
|
237
234
|
problem answered names it.
|
|
238
235
|
"""
|
|
@@ -244,9 +241,8 @@ def bus_call(
|
|
|
244
241
|
)
|
|
245
242
|
seen: dict[str, str | None] = {}
|
|
246
243
|
try:
|
|
247
|
-
return await
|
|
248
|
-
|
|
249
|
-
limiter=limiter,
|
|
244
|
+
return await on_async_thread(
|
|
245
|
+
bus, run_on_bus, bus, dto, credentials, context, seen
|
|
250
246
|
)
|
|
251
247
|
finally:
|
|
252
248
|
if seen.get("trace_id"):
|