agi-med-common 3.6.1__tar.gz → 3.6.3__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 (38) hide show
  1. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/PKG-INFO +3 -2
  2. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/README.md +1 -1
  3. agi_med_common-3.6.3/requirements.txt +3 -0
  4. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/__init__.py +1 -1
  5. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/replica_item.py +4 -1
  6. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/parallel_map.py +6 -4
  7. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/PKG-INFO +3 -2
  8. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/requires.txt +1 -0
  9. agi_med_common-3.6.1/requirements.txt +0 -2
  10. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/pyproject.toml +0 -0
  11. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/setup.cfg +0 -0
  12. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/file_storage.py +0 -0
  13. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/logger/__init__.py +0 -0
  14. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/logger/log_level_enum.py +0 -0
  15. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/logger/logger.py +0 -0
  16. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/__init__.py +0 -0
  17. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/_base.py +0 -0
  18. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
  19. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
  20. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/__init__.py +0 -0
  21. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/chat_item.py +0 -0
  22. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/inner_context_item.py +0 -0
  23. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/outer_context_item.py +0 -0
  24. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/__init__.py +0 -0
  25. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/action_enum.py +0 -0
  26. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/diagnostics_xml_tag_enum.py +0 -0
  27. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/doctor_choice_xml_tag_enum.py +0 -0
  28. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/moderation_label_enum.py +0 -0
  29. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/mtrs_label_enum.py +0 -0
  30. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/mtrs_xml_tag_enum.py +0 -0
  31. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/state_enum.py +0 -0
  32. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/track_id_enum.py +0 -0
  33. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/utils.py +0 -0
  34. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/validators.py +0 -0
  35. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common/xml_parser.py +0 -0
  36. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
  37. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
  38. {agi_med_common-3.6.1 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/top_level.txt +0 -0
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 3.6.1
3
+ Version: 3.6.3
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: pydantic<=3.0.0,>=2.9.2
9
9
  Requires-Dist: loguru~=0.7.2
10
+ Requires-Dist: tqdm==4.67.*
10
11
 
11
12
  # agi-med-common
12
13
 
@@ -14,7 +15,7 @@ Common компонент
14
15
 
15
16
  ## Ответственный разработчик
16
17
 
17
- @zhelvakov
18
+ @bakulin
18
19
 
19
20
  ## Общая информация
20
21
 
@@ -4,7 +4,7 @@ Common компонент
4
4
 
5
5
  ## Ответственный разработчик
6
6
 
7
- @zhelvakov
7
+ @bakulin
8
8
 
9
9
  ## Общая информация
10
10
 
@@ -0,0 +1,3 @@
1
+ pydantic>=2.9.2,<=3.0.0
2
+ loguru~=0.7.2
3
+ tqdm==4.67.*
@@ -1,4 +1,4 @@
1
- __version__ = "3.6.1"
1
+ __version__ = "3.6.3"
2
2
 
3
3
  from .logger import LogLevelEnum, logger_init
4
4
  from .models import (
@@ -1,7 +1,7 @@
1
1
  from datetime import datetime
2
2
  from typing import Any, Optional
3
3
 
4
- from pydantic import Field
4
+ from pydantic import Field, ConfigDict
5
5
 
6
6
  from .. import _Base
7
7
  from ..enums import StateEnum, ActionEnum, ModerationLabelEnum
@@ -42,5 +42,8 @@ class ReplicaItem(_Base):
42
42
 
43
43
 
44
44
  class ReplicaItemPair(_Base):
45
+ # remove annoying warning for protected `model_` namespace
46
+ model_config = ConfigDict(protected_namespaces=())
47
+
45
48
  user_replica: ReplicaItem = Field(alias="UserReplica")
46
49
  model_replica: ReplicaItem = Field(alias="ModelReplica")
@@ -1,4 +1,4 @@
1
- from typing import Any, Callable, TypeVar
1
+ from typing import Any, Callable, TypeVar, Iterable
2
2
  import concurrent.futures
3
3
  from tqdm import tqdm
4
4
 
@@ -8,12 +8,12 @@ X = TypeVar("X")
8
8
 
9
9
  def parallel_map(
10
10
  func: Callable[..., X],
11
- items: list[Any],
11
+ items: Iterable[Any],
12
12
  process: bool = False,
13
13
  multiple_args: bool = False,
14
14
  max_workers: int = 2,
15
15
  show_tqdm: bool = False,
16
- desc: str = "",
16
+ desc: str = ""
17
17
  ) -> list[X]:
18
18
  pool = (
19
19
  concurrent.futures.ProcessPoolExecutor(max_workers=max_workers)
@@ -27,5 +27,7 @@ def parallel_map(
27
27
  futures.append(executor.submit(func, *item))
28
28
  else:
29
29
  futures.append(executor.submit(func, item))
30
- results: list[X] = [future.result() for future in tqdm(futures, disable=(not show_tqdm), desc=desc)]
30
+ results: list[X] = [
31
+ future.result() for future in tqdm(futures, disable=(not show_tqdm), desc=desc)
32
+ ]
31
33
  return results
@@ -1,12 +1,13 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: agi_med_common
3
- Version: 3.6.1
3
+ Version: 3.6.3
4
4
  Summary: Сommon for agi-med team
5
5
  Author: AGI-MED-TEAM
6
6
  Requires-Python: >=3.11
7
7
  Description-Content-Type: text/markdown
8
8
  Requires-Dist: pydantic<=3.0.0,>=2.9.2
9
9
  Requires-Dist: loguru~=0.7.2
10
+ Requires-Dist: tqdm==4.67.*
10
11
 
11
12
  # agi-med-common
12
13
 
@@ -14,7 +15,7 @@ Common компонент
14
15
 
15
16
  ## Ответственный разработчик
16
17
 
17
- @zhelvakov
18
+ @bakulin
18
19
 
19
20
  ## Общая информация
20
21
 
@@ -1,2 +1,3 @@
1
1
  pydantic<=3.0.0,>=2.9.2
2
2
  loguru~=0.7.2
3
+ tqdm==4.67.*
@@ -1,2 +0,0 @@
1
- pydantic>=2.9.2,<=3.0.0
2
- loguru~=0.7.2
File without changes