haiway 0.24.3__tar.gz → 0.25.1__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.
- {haiway-0.24.3 → haiway-0.25.1}/Makefile +1 -1
- {haiway-0.24.3 → haiway-0.25.1}/PKG-INFO +1 -1
- haiway-0.25.1/junit/test-results.xml +1 -0
- {haiway-0.24.3 → haiway-0.25.1}/pyproject.toml +1 -1
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/__init__.py +4 -1
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/__init__.py +4 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/access.py +312 -70
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/disposables.py +5 -119
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/identifier.py +19 -44
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/observability.py +22 -142
- haiway-0.25.1/src/haiway/context/presets.py +337 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/state.py +38 -84
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/tasks.py +7 -10
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/observability.py +4 -6
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/opentelemetry/observability.py +5 -5
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/state/__init__.py +2 -0
- haiway-0.25.1/src/haiway/state/immutable.py +127 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/state/structure.py +63 -117
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/state/validation.py +95 -60
- haiway-0.25.1/tests/test_context_presets.py +464 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_disposables.py +0 -35
- haiway-0.25.1/tests/test_state_typing.py +66 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_state_validation.py +5 -47
- {haiway-0.24.3 → haiway-0.25.1}/uv.lock +10 -10
- haiway-0.24.3/junit/test-results.xml +0 -1
- {haiway-0.24.3 → haiway-0.25.1}/.claude/settings.json +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/.github/workflows/ci.yml +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/.github/workflows/publish.yml +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/.gitignore +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/CLAUDE.md +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/LICENSE +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/README.md +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/config/pre-push +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/guidelines/functionalities.md +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/guidelines/llms.txt +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/guidelines/packages.md +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/guidelines/state.md +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/context/types.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/__init__.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/asynchrony.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/caching.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/concurrent.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/files.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/retries.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/throttling.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/timeouting.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/helpers/tracing.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/opentelemetry/__init__.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/py.typed +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/state/attributes.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/state/path.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/state/requirement.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/types/__init__.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/types/default.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/types/missing.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/__init__.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/always.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/collections.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/env.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/formatting.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/logs.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/mimic.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/noop.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/queue.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/src/haiway/utils/stream.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/__init__.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_async_queue.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_async_stream.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_attribute_path.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_attribute_requirement.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_auto_retry.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_cache.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_context.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_execute_concurrently.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_process_concurrently.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_state.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_stream_concurrently.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_streaming.py +0 -0
- {haiway-0.24.3 → haiway-0.25.1}/tests/test_timeout.py +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: haiway
|
3
|
-
Version: 0.
|
3
|
+
Version: 0.25.1
|
4
4
|
Summary: Framework for dependency injection and state management within structured concurrency model.
|
5
5
|
Project-URL: Homepage, https://miquido.com
|
6
6
|
Project-URL: Repository, https://github.com/miquido/haiway.git
|
@@ -0,0 +1 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?><testsuites name="pytest tests"><testsuite name="pytest" errors="0" failures="0" skipped="0" tests="199" time="3.835" timestamp="2025-07-14T12:07:09.886834+00:00" hostname="fv-az2233-526"><testcase classname="tests.test_async_queue" name="test_fails_when_stream_fails" time="0.001" /><testcase classname="tests.test_async_queue" name="test_cancels_when_iteration_cancels" time="0.001" /><testcase classname="tests.test_async_queue" name="test_ends_when_stream_ends" time="0.001" /><testcase classname="tests.test_async_queue" name="test_buffers_values_when_not_reading" time="0.001" /><testcase classname="tests.test_async_queue" name="test_delivers_buffer_when_streaming_fails" time="0.001" /><testcase classname="tests.test_async_queue" name="test_delivers_updates_when_sending" time="0.001" /><testcase classname="tests.test_async_queue" name="test_fails_when_sending_to_finished" time="0.001" /><testcase classname="tests.test_async_queue" name="test_ignores_when_finishing_when_finished" time="0.001" /><testcase classname="tests.test_async_stream" name="test_fails_when_stream_fails" time="0.001" /><testcase classname="tests.test_async_stream" name="test_cancels_when_iteration_cancels" time="0.001" /><testcase classname="tests.test_async_stream" name="test_ends_when_stream_ends" time="0.001" /><testcase classname="tests.test_async_stream" name="test_finishes_without_buffer" time="0.001" /><testcase classname="tests.test_async_stream" name="test_fails_without_buffer" time="0.001" /><testcase classname="tests.test_async_stream" name="test_delivers_updates_when_sending" time="0.001" /><testcase classname="tests.test_async_stream" name="test_ignores_when_sending_to_finished" time="0.001" /><testcase classname="tests.test_async_stream" name="test_ignores_when_sending_to_failed" time="0.001" /><testcase classname="tests.test_async_stream" name="test_ignores_when_finishing_when_finished" time="0.001" /><testcase classname="tests.test_async_stream" name="test_delivers_all_when_sending_async" time="0.001" /><testcase classname="tests.test_attribute_path" name="test_id_path_points_to_self" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_attribute_path_points_to_attribute" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_nested_attribute_path_points_to_nested_attribute" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_recursive_attribute_path_points_to_attribute" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_list_item_path_points_to_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_tuple_item_path_points_to_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_mixed_tuple_item_path_points_to_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_dict_item_path_points_to_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_id_path_set_updates_self" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_attribute_path_set_updates_attribute" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_nested_attribute_path_set_updates_nested_attribute" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_recursive_attribute_set_updates_attribute" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_list_item_path_set_updates_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_tuple_item_path_set_updates_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_mixed_tuple_item_set_updates_item" time="0.000" /><testcase classname="tests.test_attribute_path" name="test_dict_item_path_set_updates_item" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_equal_requirement" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_not_equal_requirement" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_contains_requirement" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_contains_any_requirement" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_contained_in_requirement" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_logical_and_or_requirements" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_filter" time="0.000" /><testcase classname="tests.test_attribute_requirement" name="test_immutability" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_returns_value_without_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_retries_with_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_logs_issue_with_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_fails_with_exceeding_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_fails_with_cancellation" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_retries_with_selected_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_fails_with_not_selected_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_returns_value_without_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_retries_with_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_fails_with_exceeding_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_fails_with_cancellation" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_fails_when_cancelled" time="0.021" /><testcase classname="tests.test_auto_retry" name="test_async_uses_delay_with_errors" time="0.102" /><testcase classname="tests.test_auto_retry" name="test_async_uses_computed_delay_with_errors" time="0.106" /><testcase classname="tests.test_auto_retry" name="test_async_logs_issue_with_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_retries_with_selected_errors" time="0.001" /><testcase classname="tests.test_auto_retry" name="test_async_fails_with_not_selected_errors" time="0.001" /><testcase classname="tests.test_cache" name="test_returns_cache_value_with_same_argument" time="0.000" /><testcase classname="tests.test_cache" name="test_returns_fresh_value_with_different_argument" time="0.000" /><testcase classname="tests.test_cache" name="test_returns_fresh_value_with_limit_exceed" time="0.000" /><testcase classname="tests.test_cache" name="test_returns_same_value_with_repeating_argument" time="0.000" /><testcase classname="tests.test_cache" name="test_fails_with_error" time="0.000" /><testcase classname="tests.test_cache" name="test_returns_fresh_value_with_expiration_time_exceed" time="0.020" /><testcase classname="tests.test_cache" name="test_async_returns_cache_value_with_same_argument" time="0.001" /><testcase classname="tests.test_cache" name="test_async_returns_fresh_value_with_different_argument" time="0.001" /><testcase classname="tests.test_cache" name="test_async_returns_fresh_value_with_limit_exceed" time="0.001" /><testcase classname="tests.test_cache" name="test_async_returns_same_value_with_repeating_argument" time="0.001" /><testcase classname="tests.test_cache" name="test_async_returns_fresh_value_with_expiration_time_exceed" time="0.021" /><testcase classname="tests.test_cache" name="test_async_cancel_waiting_does_not_cancel_task" time="0.502" /><testcase classname="tests.test_cache" name="test_async_expiration_does_not_cancel_task" time="0.021" /><testcase classname="tests.test_cache" name="test_async_fails_with_error" time="0.001" /><testcase classname="tests.test_context" name="test_state_is_available_according_to_context" time="0.001" /><testcase classname="tests.test_context" name="test_state_update_updates_local_context" time="0.001" /><testcase classname="tests.test_context" name="test_exceptions_are_propagated" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_creation" time="0.000" /><testcase classname="tests.test_context_presets" name="test_preset_with_state" time="0.000" /><testcase classname="tests.test_context_presets" name="test_preset_with_disposable" time="0.000" /><testcase classname="tests.test_context_presets" name="test_preset_extended" time="0.000" /><testcase classname="tests.test_context_presets" name="test_preset_prepare_with_static_state" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_prepare_with_state_factory" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_prepare_with_multiple_states_factory" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_prepare_with_disposables" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_prepare_with_multiple_disposables" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_prepare_mixed_state_and_disposables" time="0.001" /><testcase classname="tests.test_context_presets" name="test_registry_creation" time="0.000" /><testcase classname="tests.test_context_presets" name="test_registry_immutable" time="0.000" /><testcase classname="tests.test_context_presets" name="test_scope_with_preset" time="0.001" /><testcase classname="tests.test_context_presets" name="test_scope_preset_with_override" time="0.001" /><testcase classname="tests.test_context_presets" name="test_scope_preset_not_found" time="0.001" /><testcase classname="tests.test_context_presets" name="test_sync_scope_with_preset_fails" time="0.000" /><testcase classname="tests.test_context_presets" name="test_preset_with_async_state_factory" time="0.021" /><testcase classname="tests.test_context_presets" name="test_preset_with_disposable_lifecycle" time="0.001" /><testcase classname="tests.test_context_presets" name="test_nested_preset_registries" time="0.001" /><testcase classname="tests.test_context_presets" name="test_preset_with_mixed_state_sources" time="0.011" /><testcase classname="tests.test_disposables" name="test_empty_initialization" time="0.000" /><testcase classname="tests.test_disposables" name="test_single_disposable_initialization" time="0.000" /><testcase classname="tests.test_disposables" name="test_multiple_disposables_initialization" time="0.000" /><testcase classname="tests.test_disposables" name="test_cannot_set_attributes" time="0.000" /><testcase classname="tests.test_disposables" name="test_cannot_delete_attributes" time="0.000" /><testcase classname="tests.test_disposables" name="test_empty_disposables_is_falsy" time="0.000" /><testcase classname="tests.test_disposables" name="test_non_empty_disposables_is_truthy" time="0.000" /><testcase classname="tests.test_disposables" name="test_setup_with_no_disposables" time="0.001" /><testcase classname="tests.test_disposables" name="test_setup_with_disposable_returning_none" time="0.001" /><testcase classname="tests.test_disposables" name="test_setup_with_disposable_returning_single_state" time="0.001" /><testcase classname="tests.test_disposables" name="test_setup_with_disposable_returning_multiple_states" time="0.001" /><testcase classname="tests.test_disposables" name="test_setup_with_multiple_disposables_mixed_returns" time="0.001" /><testcase classname="tests.test_disposables" name="test_setup_sets_loop_correctly" time="0.001" /><testcase classname="tests.test_disposables" name="test_dispose_with_no_disposables" time="0.001" /><testcase classname="tests.test_disposables" name="test_dispose_with_successful_cleanup" time="0.001" /><testcase classname="tests.test_disposables" name="test_dispose_with_exception_context" time="0.001" /><testcase classname="tests.test_disposables" name="test_dispose_with_multiple_exceptions_creates_group" time="0.001" /><testcase classname="tests.test_disposables" name="test_dispose_with_single_exception_is_risen" time="0.001" /><testcase classname="tests.test_disposables" name="test_dispose_resets_loop_even_on_exception" time="0.001" /><testcase classname="tests.test_disposables" name="test_same_loop_cleanup" time="0.001" /><testcase classname="tests.test_disposables" name="test_exception_during_setup_phase" time="0.001" /><testcase classname="tests.test_disposables" name="test_assertion_on_doubleprepare" time="0.001" /><testcase classname="tests.test_disposables" name="test_assertion_on_dispose_withoutprepare" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_processes_all_elements" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_preserves_order" time="0.302" /><testcase classname="tests.test_execute_concurrently" name="test_handles_empty_collection" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_propagates_handler_exceptions" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_returns_exceptions_when_configured" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_cancels_running_tasks_on_cancellation" time="0.101" /><testcase classname="tests.test_execute_concurrently" name="test_respects_concurrency_limit" time="0.202" /><testcase classname="tests.test_execute_concurrently" name="test_works_with_different_types" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_handles_mixed_success_and_failure" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_works_with_sets_and_tuples" time="0.001" /><testcase classname="tests.test_execute_concurrently" name="test_exception_details_preserved" time="0.001" /><testcase classname="tests.test_process_concurrently" name="test_processes_all_elements" time="0.001" /><testcase classname="tests.test_process_concurrently" name="test_processes_elements_concurrently" time="0.302" /><testcase classname="tests.test_process_concurrently" name="test_handles_empty_source" time="0.001" /><testcase classname="tests.test_process_concurrently" name="test_propagates_handler_exceptions" time="0.001" /><testcase classname="tests.test_process_concurrently" name="test_ignores_handler_exceptions_when_configured" time="0.001" /><testcase classname="tests.test_process_concurrently" name="test_handles_source_exception" time="0.001" /><testcase classname="tests.test_process_concurrently" name="test_cancels_running_tasks_on_cancellation" time="0.101" /><testcase classname="tests.test_process_concurrently" name="test_respects_concurrency_limit" time="0.202" /><testcase classname="tests.test_process_concurrently" name="test_processes_elements_from_queue" time="0.052" /><testcase classname="tests.test_state" name="test_basic_initializes_with_arguments" time="0.002" /><testcase classname="tests.test_state" name="test_basic_initializes_with_defaults" time="0.001" /><testcase classname="tests.test_state" name="test_basic_equals_checks_properties" time="0.000" /><testcase classname="tests.test_state" name="test_basic_initializes_with_arguments_and_defaults" time="0.001" /><testcase classname="tests.test_state" name="test_parametrized_initializes_with_proper_parameters" time="0.000" /><testcase classname="tests.test_state" name="test_nested_initializes_with_proper_arguments" time="0.001" /><testcase classname="tests.test_state" name="test_dict_skips_missing_properties" time="0.000" /><testcase classname="tests.test_state" name="test_initialization_allows_missing_properties" time="0.000" /><testcase classname="tests.test_state" name="test_generic_subtypes_validation" time="0.002" /><testcase classname="tests.test_state" name="test_copying_leaves_same_object" time="0.000" /><testcase classname="tests.test_state" name="test_hash_consistency_with_missing_values" time="0.000" /><testcase classname="tests.test_state" name="test_hash_with_unhashable_attributes" time="0.001" /><testcase classname="tests.test_state" name="test_hash_with_dict_key_order_independence" time="0.000" /><testcase classname="tests.test_state" name="test_hash_with_custom_objects" time="0.000" /><testcase classname="tests.test_state" name="test_hash_performance_with_many_attributes" time="0.001" /><testcase classname="tests.test_state" name="test_hash_with_nested_unhashable_collections" time="0.000" /><testcase classname="tests.test_state" name="test_hash_stability_across_instances" time="0.000" /><testcase classname="tests.test_state" name="test_hash_excludes_missing_values" time="0.000" /><testcase classname="tests.test_state_typing" name="test_state_typing_subclass_and_instance_checks" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validator_basic_types" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validator_none_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_missing_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_literal_type" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validator_enum_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_sequence_type" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validator_set_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_mapping_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_tuple_type" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validator_union_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_callable_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_typed_dict" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_state_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_complex_types" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validator_recursive_state" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_generic_state" time="0.001" /><testcase classname="tests.test_state_validation" name="test_validation_error_messages" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validation_any_type" time="0.000" /><testcase classname="tests.test_state_validation" name="test_validator_with_defaults" time="0.000" /><testcase classname="tests.test_state_validation" name="test_attribute_validator_direct_usage" time="0.000" /><testcase classname="tests.test_state_validation" name="test_unsupported_type_annotation" time="0.000" /><testcase classname="tests.test_stream_concurrently" name="test_merges_two_streams" time="0.001" /><testcase classname="tests.test_stream_concurrently" name="test_interleaves_based_on_timing" time="0.152" /><testcase classname="tests.test_stream_concurrently" name="test_handles_empty_iterators" time="0.001" /><testcase classname="tests.test_stream_concurrently" name="test_handles_different_lengths" time="0.001" /><testcase classname="tests.test_stream_concurrently" name="test_propagates_exceptions_from_source_a" time="0.001" /><testcase classname="tests.test_stream_concurrently" name="test_propagates_exceptions_from_source_b" time="0.001" /><testcase classname="tests.test_stream_concurrently" name="test_cancellation_cancels_both_sources" time="0.201" /><testcase classname="tests.test_stream_concurrently" name="test_works_with_different_types" time="0.001" /><testcase classname="tests.test_stream_concurrently" name="test_immediate_yield" time="0.601" /><testcase classname="tests.test_stream_concurrently" name="test_concurrent_execution" time="0.201" /><testcase classname="tests.test_streaming" name="test_fails_when_generator_fails" time="0.001" /><testcase classname="tests.test_streaming" name="test_cancels_when_iteration_cancels" time="0.001" /><testcase classname="tests.test_streaming" name="test_ends_when_generator_ends" time="0.001" /><testcase classname="tests.test_streaming" name="test_delivers_updates_when_generating" time="0.001" /><testcase classname="tests.test_streaming" name="test_streaming_context_variables_access_is_preserved" time="0.001" /><testcase classname="tests.test_streaming" name="test_nested_streaming_streams_correctly" time="0.001" /><testcase classname="tests.test_timeout" name="test_returns_result_when_returning_value" time="0.001" /><testcase classname="tests.test_timeout" name="test_raises_with_error" time="0.001" /><testcase classname="tests.test_timeout" name="test_raises_with_cancel" time="0.011" /><testcase classname="tests.test_timeout" name="test_raises_with_timeout" time="0.011" /></testsuite></testsuites>
|
@@ -5,7 +5,7 @@ build-backend = "hatchling.build"
|
|
5
5
|
[project]
|
6
6
|
name = "haiway"
|
7
7
|
description = "Framework for dependency injection and state management within structured concurrency model."
|
8
|
-
version = "0.
|
8
|
+
version = "0.25.1"
|
9
9
|
readme = "README.md"
|
10
10
|
maintainers = [
|
11
11
|
{ name = "Kacper Kaliński", email = "kacper.kalinski@miquido.com" },
|
@@ -1,4 +1,5 @@
|
|
1
1
|
from haiway.context import (
|
2
|
+
ContextPresets,
|
2
3
|
Disposable,
|
3
4
|
Disposables,
|
4
5
|
MissingContext,
|
@@ -26,7 +27,7 @@ from haiway.helpers import (
|
|
26
27
|
timeout,
|
27
28
|
traced,
|
28
29
|
)
|
29
|
-
from haiway.state import AttributePath, AttributeRequirement, State
|
30
|
+
from haiway.state import AttributePath, AttributeRequirement, Immutable, State
|
30
31
|
from haiway.types import (
|
31
32
|
MISSING,
|
32
33
|
Default,
|
@@ -64,12 +65,14 @@ __all__ = (
|
|
64
65
|
"AsyncStream",
|
65
66
|
"AttributePath",
|
66
67
|
"AttributeRequirement",
|
68
|
+
"ContextPresets",
|
67
69
|
"Default",
|
68
70
|
"DefaultValue",
|
69
71
|
"Disposable",
|
70
72
|
"Disposables",
|
71
73
|
"File",
|
72
74
|
"FileAccess",
|
75
|
+
"Immutable",
|
73
76
|
"LoggerObservability",
|
74
77
|
"Missing",
|
75
78
|
"MissingContext",
|
@@ -14,12 +14,16 @@ from haiway.context.observability import (
|
|
14
14
|
ObservabilityScopeExiting,
|
15
15
|
ObservabilityTraceIdentifying,
|
16
16
|
)
|
17
|
+
from haiway.context.presets import ContextPresets
|
17
18
|
from haiway.context.state import StateContext
|
18
19
|
from haiway.context.types import MissingContext, MissingState
|
20
|
+
from haiway.state import Immutable
|
19
21
|
|
20
22
|
__all__ = (
|
23
|
+
"ContextPresets",
|
21
24
|
"Disposable",
|
22
25
|
"Disposables",
|
26
|
+
"Immutable",
|
23
27
|
"MissingContext",
|
24
28
|
"MissingState",
|
25
29
|
"Observability",
|