agi-med-common 3.6.2__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.
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/PKG-INFO +3 -2
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/README.md +1 -1
- agi_med_common-3.6.3/requirements.txt +3 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/__init__.py +1 -1
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/parallel_map.py +6 -4
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/PKG-INFO +3 -2
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/requires.txt +1 -0
- agi_med_common-3.6.2/requirements.txt +0 -2
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/pyproject.toml +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/setup.cfg +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/file_storage.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/logger/__init__.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/logger/log_level_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/logger/logger.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/__init__.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/_base.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/base_config_models/__init__.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/base_config_models/gigachat_config.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/__init__.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/chat_item.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/inner_context_item.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/outer_context_item.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/replica_item.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/__init__.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/action_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/diagnostics_xml_tag_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/doctor_choice_xml_tag_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/moderation_label_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/mtrs_label_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/mtrs_xml_tag_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/state_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/track_id_enum.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/utils.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/validators.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/xml_parser.py +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/SOURCES.txt +0 -0
- {agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/dependency_links.txt +0 -0
- {agi_med_common-3.6.2 → 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.
|
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
|
-
@
|
18
|
+
@bakulin
|
18
19
|
|
19
20
|
## Общая информация
|
20
21
|
|
@@ -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:
|
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] = [
|
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.
|
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
|
-
@
|
18
|
+
@bakulin
|
18
19
|
|
19
20
|
## Общая информация
|
20
21
|
|
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
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/__init__.py
RENAMED
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/chat_item.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/chat_item/replica_item.py
RENAMED
File without changes
|
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/action_enum.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/mtrs_label_enum.py
RENAMED
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/mtrs_xml_tag_enum.py
RENAMED
File without changes
|
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common/models/enums/track_id_enum.py
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{agi_med_common-3.6.2 → agi_med_common-3.6.3}/src/agi_med_common.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|