haiway 0.6.1__tar.gz → 0.6.2__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (48) hide show
  1. {haiway-0.6.1/src/haiway.egg-info → haiway-0.6.2}/PKG-INFO +1 -1
  2. {haiway-0.6.1 → haiway-0.6.2}/pyproject.toml +1 -1
  3. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/state/validation.py +12 -0
  4. {haiway-0.6.1 → haiway-0.6.2/src/haiway.egg-info}/PKG-INFO +1 -1
  5. {haiway-0.6.1 → haiway-0.6.2}/tests/test_state.py +5 -0
  6. {haiway-0.6.1 → haiway-0.6.2}/LICENSE +0 -0
  7. {haiway-0.6.1 → haiway-0.6.2}/README.md +0 -0
  8. {haiway-0.6.1 → haiway-0.6.2}/setup.cfg +0 -0
  9. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/__init__.py +0 -0
  10. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/__init__.py +0 -0
  11. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/access.py +0 -0
  12. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/disposables.py +0 -0
  13. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/metrics.py +0 -0
  14. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/state.py +0 -0
  15. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/tasks.py +0 -0
  16. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/context/types.py +0 -0
  17. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/__init__.py +0 -0
  18. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/asynchrony.py +0 -0
  19. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/caching.py +0 -0
  20. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/retries.py +0 -0
  21. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/throttling.py +0 -0
  22. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/timeouted.py +0 -0
  23. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/helpers/tracing.py +0 -0
  24. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/py.typed +0 -0
  25. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/state/__init__.py +0 -0
  26. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/state/attributes.py +0 -0
  27. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/state/structure.py +0 -0
  28. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/types/__init__.py +0 -0
  29. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/types/frozen.py +0 -0
  30. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/types/missing.py +0 -0
  31. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/__init__.py +0 -0
  32. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/always.py +0 -0
  33. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/env.py +0 -0
  34. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/immutable.py +0 -0
  35. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/logs.py +0 -0
  36. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/mimic.py +0 -0
  37. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/noop.py +0 -0
  38. {haiway-0.6.1 → haiway-0.6.2}/src/haiway/utils/queue.py +0 -0
  39. {haiway-0.6.1 → haiway-0.6.2}/src/haiway.egg-info/SOURCES.txt +0 -0
  40. {haiway-0.6.1 → haiway-0.6.2}/src/haiway.egg-info/dependency_links.txt +0 -0
  41. {haiway-0.6.1 → haiway-0.6.2}/src/haiway.egg-info/requires.txt +0 -0
  42. {haiway-0.6.1 → haiway-0.6.2}/src/haiway.egg-info/top_level.txt +0 -0
  43. {haiway-0.6.1 → haiway-0.6.2}/tests/test_async_queue.py +0 -0
  44. {haiway-0.6.1 → haiway-0.6.2}/tests/test_auto_retry.py +0 -0
  45. {haiway-0.6.1 → haiway-0.6.2}/tests/test_cache.py +0 -0
  46. {haiway-0.6.1 → haiway-0.6.2}/tests/test_context.py +0 -0
  47. {haiway-0.6.1 → haiway-0.6.2}/tests/test_streaming.py +0 -0
  48. {haiway-0.6.1 → haiway-0.6.2}/tests/test_timeout.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: haiway
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: Framework for dependency injection and state management within structured concurrency model.
5
5
  Maintainer-email: Kacper Kaliński <kacper.kalinski@miquido.com>
6
6
  License: MIT License
@@ -5,7 +5,7 @@ build-backend = "setuptools.build_meta"
5
5
  [project]
6
6
  name = "haiway"
7
7
  description = "Framework for dependency injection and state management within structured concurrency model."
8
- version = "0.6.1"
8
+ version = "0.6.2"
9
9
  readme = "README.md"
10
10
  maintainers = [
11
11
  { name = "Kacper Kaliński", email = "kacper.kalinski@miquido.com" },
@@ -1,5 +1,8 @@
1
1
  from collections.abc import Callable, Mapping, Sequence, Set
2
+ from datetime import date, datetime, time, timedelta, timezone
2
3
  from enum import Enum
4
+ from pathlib import Path
5
+ from re import Pattern
3
6
  from types import MappingProxyType, NoneType, UnionType
4
7
  from typing import Any, Literal, Protocol, Union
5
8
  from uuid import UUID
@@ -282,6 +285,7 @@ VALIDATORS: Mapping[Any, Callable[[AttributeAnnotation], Callable[[Any], Any]]]
282
285
  bool: _prepare_validator_of_type,
283
286
  int: _prepare_validator_of_type,
284
287
  float: _prepare_validator_of_type,
288
+ complex: _prepare_validator_of_type,
285
289
  bytes: _prepare_validator_of_type,
286
290
  str: _prepare_validator_of_type,
287
291
  tuple: _prepare_validator_of_tuple,
@@ -290,7 +294,15 @@ VALIDATORS: Mapping[Any, Callable[[AttributeAnnotation], Callable[[Any], Any]]]
290
294
  Set: _prepare_validator_of_set,
291
295
  Sequence: _prepare_validator_of_sequence,
292
296
  Mapping: _prepare_validator_of_mapping,
297
+ range: _prepare_validator_of_type,
293
298
  UUID: _prepare_validator_of_type,
299
+ date: _prepare_validator_of_type,
300
+ datetime: _prepare_validator_of_type,
301
+ time: _prepare_validator_of_type,
302
+ timedelta: _prepare_validator_of_type,
303
+ timezone: _prepare_validator_of_type,
304
+ Path: _prepare_validator_of_type,
305
+ Pattern: _prepare_validator_of_type,
294
306
  Union: _prepare_validator_of_union,
295
307
  UnionType: _prepare_validator_of_union,
296
308
  Callable: _prepare_validator_of_callable,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: haiway
3
- Version: 0.6.1
3
+ Version: 0.6.2
4
4
  Summary: Framework for dependency injection and state management within structured concurrency model.
5
5
  Maintainer-email: Kacper Kaliński <kacper.kalinski@miquido.com>
6
6
  License: MIT License
@@ -1,4 +1,5 @@
1
1
  from collections.abc import Callable, Sequence, Set
2
+ from datetime import date, datetime
2
3
  from enum import StrEnum
3
4
  from typing import Literal, Protocol, Self, runtime_checkable
4
5
  from uuid import UUID, uuid4
@@ -17,6 +18,8 @@ def test_basic_initializes_with_arguments() -> None:
17
18
 
18
19
  class Basics(State):
19
20
  uuid: UUID
21
+ date: date
22
+ datetime: datetime
20
23
  string: str
21
24
  literal: Literal["A", "B"]
22
25
  sequence: Sequence[str]
@@ -32,6 +35,8 @@ def test_basic_initializes_with_arguments() -> None:
32
35
 
33
36
  basic = Basics(
34
37
  uuid=uuid4(),
38
+ date=date.today(),
39
+ datetime=datetime.now(),
35
40
  string="string",
36
41
  literal="A",
37
42
  sequence=["a", "b", "c"],
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes