haiway 0.25.1__tar.gz → 0.26.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.25.1 → haiway-0.26.1}/PKG-INFO +1 -1
- haiway-0.26.1/junit/test-results.xml +1 -0
- {haiway-0.25.1 → haiway-0.26.1}/pyproject.toml +1 -1
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/__init__.py +2 -4
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/__init__.py +2 -2
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/access.py +152 -198
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/presets.py +104 -86
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/state.py +2 -42
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/__init__.py +0 -2
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/concurrent.py +8 -9
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/files.py +4 -4
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_context_presets.py +154 -63
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_streaming.py +3 -3
- {haiway-0.25.1 → haiway-0.26.1}/uv.lock +1 -1
- haiway-0.25.1/junit/test-results.xml +0 -1
- haiway-0.25.1/src/haiway/helpers/tracing.py +0 -185
- {haiway-0.25.1 → haiway-0.26.1}/.claude/settings.json +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/.github/workflows/ci.yml +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/.github/workflows/publish.yml +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/.gitignore +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/CLAUDE.md +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/LICENSE +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/Makefile +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/README.md +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/config/pre-push +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/guidelines/functionalities.md +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/guidelines/llms.txt +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/guidelines/packages.md +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/guidelines/state.md +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/disposables.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/identifier.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/observability.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/tasks.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/context/types.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/asynchrony.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/caching.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/observability.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/retries.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/throttling.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/helpers/timeouting.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/opentelemetry/__init__.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/opentelemetry/observability.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/py.typed +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/__init__.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/attributes.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/immutable.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/path.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/requirement.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/structure.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/state/validation.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/types/__init__.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/types/default.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/types/missing.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/__init__.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/always.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/collections.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/env.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/formatting.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/logs.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/mimic.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/noop.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/queue.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/src/haiway/utils/stream.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/__init__.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_async_queue.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_async_stream.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_attribute_path.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_attribute_requirement.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_auto_retry.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_cache.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_context.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_disposables.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_execute_concurrently.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_process_concurrently.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_state.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_state_typing.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_state_validation.py +0 -0
- {haiway-0.25.1 → haiway-0.26.1}/tests/test_stream_concurrently.py +0 -0
- {haiway-0.25.1 → haiway-0.26.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.26.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="203" time="3.881" timestamp="2025-07-18T14:04:03.122940+00:00" hostname="pkrvmq0rgcvqdmg"><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.000" /><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.107" /><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.001" /><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.021" /><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_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_context_presets" name="test_direct_preset_parameter" time="0.001" /><testcase classname="tests.test_context_presets" name="test_direct_preset_with_explicit_state_override" time="0.001" /><testcase classname="tests.test_context_presets" name="test_direct_preset_with_disposables" time="0.001" /><testcase classname="tests.test_context_presets" name="test_direct_preset_vs_registry" time="0.001" /><testcase classname="tests.test_context_presets" name="test_direct_preset_none_falls_back_to_registry" time="0.001" /><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.000" /><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.202" /><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.26.1"
|
9
9
|
readme = "README.md"
|
10
10
|
maintainers = [
|
11
11
|
{ name = "Kacper Kaliński", email = "kacper.kalinski@miquido.com" },
|
@@ -1,5 +1,5 @@
|
|
1
1
|
from haiway.context import (
|
2
|
-
|
2
|
+
ContextPreset,
|
3
3
|
Disposable,
|
4
4
|
Disposables,
|
5
5
|
MissingContext,
|
@@ -25,7 +25,6 @@ from haiway.helpers import (
|
|
25
25
|
stream_concurrently,
|
26
26
|
throttle,
|
27
27
|
timeout,
|
28
|
-
traced,
|
29
28
|
)
|
30
29
|
from haiway.state import AttributePath, AttributeRequirement, Immutable, State
|
31
30
|
from haiway.types import (
|
@@ -65,7 +64,7 @@ __all__ = (
|
|
65
64
|
"AsyncStream",
|
66
65
|
"AttributePath",
|
67
66
|
"AttributeRequirement",
|
68
|
-
"
|
67
|
+
"ContextPreset",
|
69
68
|
"Default",
|
70
69
|
"DefaultValue",
|
71
70
|
"Disposable",
|
@@ -112,7 +111,6 @@ __all__ = (
|
|
112
111
|
"stream_concurrently",
|
113
112
|
"throttle",
|
114
113
|
"timeout",
|
115
|
-
"traced",
|
116
114
|
"unwrap_missing",
|
117
115
|
"without_missing",
|
118
116
|
)
|
@@ -14,13 +14,13 @@ from haiway.context.observability import (
|
|
14
14
|
ObservabilityScopeExiting,
|
15
15
|
ObservabilityTraceIdentifying,
|
16
16
|
)
|
17
|
-
from haiway.context.presets import
|
17
|
+
from haiway.context.presets import ContextPreset
|
18
18
|
from haiway.context.state import StateContext
|
19
19
|
from haiway.context.types import MissingContext, MissingState
|
20
20
|
from haiway.state import Immutable
|
21
21
|
|
22
22
|
__all__ = (
|
23
|
-
"
|
23
|
+
"ContextPreset",
|
24
24
|
"Disposable",
|
25
25
|
"Disposables",
|
26
26
|
"Immutable",
|