abstractcore 2.6.5__py3-none-any.whl → 2.6.7__py3-none-any.whl
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.
- abstractcore/media/utils/image_scaler.py +1 -8
- abstractcore/utils/version.py +1 -1
- abstractcore/utils/vlm_token_calculator.py +2 -1
- {abstractcore-2.6.5.dist-info → abstractcore-2.6.7.dist-info}/METADATA +12 -1
- {abstractcore-2.6.5.dist-info → abstractcore-2.6.7.dist-info}/RECORD +9 -9
- {abstractcore-2.6.5.dist-info → abstractcore-2.6.7.dist-info}/WHEEL +0 -0
- {abstractcore-2.6.5.dist-info → abstractcore-2.6.7.dist-info}/entry_points.txt +0 -0
- {abstractcore-2.6.5.dist-info → abstractcore-2.6.7.dist-info}/licenses/LICENSE +0 -0
- {abstractcore-2.6.5.dist-info → abstractcore-2.6.7.dist-info}/top_level.txt +0 -0
|
@@ -9,11 +9,7 @@ from typing import Tuple, Optional, Union, Dict, Any
|
|
|
9
9
|
from enum import Enum
|
|
10
10
|
from pathlib import Path
|
|
11
11
|
|
|
12
|
-
|
|
13
|
-
from PIL import Image, ImageOps
|
|
14
|
-
PIL_AVAILABLE = True
|
|
15
|
-
except ImportError:
|
|
16
|
-
PIL_AVAILABLE = False
|
|
12
|
+
from PIL import Image, ImageOps
|
|
17
13
|
|
|
18
14
|
from ..base import MediaProcessingError
|
|
19
15
|
from ...utils.structured_logging import get_logger
|
|
@@ -38,9 +34,6 @@ class ModelOptimizedScaler:
|
|
|
38
34
|
def __init__(self):
|
|
39
35
|
self.logger = get_logger(__name__)
|
|
40
36
|
|
|
41
|
-
if not PIL_AVAILABLE:
|
|
42
|
-
raise MediaProcessingError("PIL (Pillow) is required for image scaling")
|
|
43
|
-
|
|
44
37
|
def get_optimal_resolution(self, model_name: str, original_size: Tuple[int, int],
|
|
45
38
|
model_capabilities: Optional[Dict[str, Any]] = None) -> Tuple[int, int]:
|
|
46
39
|
"""
|
abstractcore/utils/version.py
CHANGED
|
@@ -11,4 +11,4 @@ including when the package is installed from PyPI where pyproject.toml is not av
|
|
|
11
11
|
|
|
12
12
|
# Package version - update this when releasing new versions
|
|
13
13
|
# This must be manually synchronized with the version in pyproject.toml
|
|
14
|
-
__version__ = "2.6.
|
|
14
|
+
__version__ = "2.6.7"
|
|
@@ -22,9 +22,10 @@ References:
|
|
|
22
22
|
import math
|
|
23
23
|
from typing import Tuple, Dict, Any, Optional, List
|
|
24
24
|
from pathlib import Path
|
|
25
|
-
from PIL import Image
|
|
26
25
|
import logging
|
|
27
26
|
|
|
27
|
+
from PIL import Image
|
|
28
|
+
|
|
28
29
|
from ..utils.structured_logging import get_logger
|
|
29
30
|
from ..architectures.detection import get_model_capabilities, detect_architecture
|
|
30
31
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: abstractcore
|
|
3
|
-
Version: 2.6.
|
|
3
|
+
Version: 2.6.7
|
|
4
4
|
Summary: Unified interface to all LLM providers with essential infrastructure for tool calling, streaming, and model management
|
|
5
5
|
Author-email: Laurent-Philippe Albou <contact@abstractcore.ai>
|
|
6
6
|
Maintainer-email: Laurent-Philippe Albou <contact@abstractcore.ai>
|
|
@@ -30,6 +30,7 @@ Requires-Dist: pydantic<3.0.0,>=2.0.0
|
|
|
30
30
|
Requires-Dist: httpx<1.0.0,>=0.24.0
|
|
31
31
|
Requires-Dist: tiktoken<1.0.0,>=0.5.0
|
|
32
32
|
Requires-Dist: requests<3.0.0,>=2.25.0
|
|
33
|
+
Requires-Dist: Pillow<12.0.0,>=10.0.0
|
|
33
34
|
Provides-Extra: openai
|
|
34
35
|
Requires-Dist: openai<2.0.0,>=1.0.0; extra == "openai"
|
|
35
36
|
Provides-Extra: anthropic
|
|
@@ -64,6 +65,7 @@ Requires-Dist: pymupdf4llm<1.0.0,>=0.0.20; extra == "media"
|
|
|
64
65
|
Requires-Dist: unstructured[office]<1.0.0,>=0.10.0; extra == "media"
|
|
65
66
|
Requires-Dist: pandas<3.0.0,>=1.0.0; extra == "media"
|
|
66
67
|
Provides-Extra: compression
|
|
68
|
+
Requires-Dist: abstractcore[media]; extra == "compression"
|
|
67
69
|
Requires-Dist: pdf2image<2.0.0,>=1.16.0; extra == "compression"
|
|
68
70
|
Provides-Extra: api-providers
|
|
69
71
|
Requires-Dist: abstractcore[anthropic,openai]; extra == "api-providers"
|
|
@@ -83,12 +85,18 @@ Provides-Extra: all-providers-apple
|
|
|
83
85
|
Requires-Dist: abstractcore[anthropic,embeddings,huggingface,lmstudio,mlx,ollama,openai]; extra == "all-providers-apple"
|
|
84
86
|
Provides-Extra: all-providers-gpu
|
|
85
87
|
Requires-Dist: abstractcore[anthropic,embeddings,huggingface,lmstudio,ollama,openai,vllm]; extra == "all-providers-gpu"
|
|
88
|
+
Provides-Extra: all-providers-non-mlx
|
|
89
|
+
Requires-Dist: abstractcore[anthropic,embeddings,huggingface,lmstudio,ollama,openai]; extra == "all-providers-non-mlx"
|
|
90
|
+
Provides-Extra: local-providers-non-mlx
|
|
91
|
+
Requires-Dist: abstractcore[lmstudio,ollama]; extra == "local-providers-non-mlx"
|
|
86
92
|
Provides-Extra: all
|
|
87
93
|
Requires-Dist: abstractcore[anthropic,compression,dev,docs,embeddings,huggingface,lmstudio,media,mlx,ollama,openai,processing,server,test,tools,vllm]; extra == "all"
|
|
88
94
|
Provides-Extra: all-apple
|
|
89
95
|
Requires-Dist: abstractcore[anthropic,compression,dev,docs,embeddings,huggingface,lmstudio,media,mlx,ollama,openai,processing,server,test,tools]; extra == "all-apple"
|
|
90
96
|
Provides-Extra: all-gpu
|
|
91
97
|
Requires-Dist: abstractcore[anthropic,compression,dev,docs,embeddings,huggingface,lmstudio,media,ollama,openai,processing,server,test,tools,vllm]; extra == "all-gpu"
|
|
98
|
+
Provides-Extra: all-non-mlx
|
|
99
|
+
Requires-Dist: abstractcore[anthropic,compression,dev,docs,embeddings,huggingface,lmstudio,media,ollama,openai,processing,server,test,tools]; extra == "all-non-mlx"
|
|
92
100
|
Provides-Extra: lightweight
|
|
93
101
|
Requires-Dist: abstractcore[anthropic,compression,embeddings,lmstudio,media,ollama,openai,processing,server,tools]; extra == "lightweight"
|
|
94
102
|
Provides-Extra: dev
|
|
@@ -1046,6 +1054,9 @@ pip install abstractcore[server]
|
|
|
1046
1054
|
# With embeddings
|
|
1047
1055
|
pip install abstractcore[embeddings]
|
|
1048
1056
|
|
|
1057
|
+
# With compression (Glyph visual-text compression)
|
|
1058
|
+
pip install abstractcore[compression]
|
|
1059
|
+
|
|
1049
1060
|
# Everything (recommended for Apple Silicon)
|
|
1050
1061
|
pip install abstractcore[all]
|
|
1051
1062
|
|
|
@@ -60,7 +60,7 @@ abstractcore/media/processors/office_processor.py,sha256=_aTrrDtREiy6MivbANFc1FK
|
|
|
60
60
|
abstractcore/media/processors/pdf_processor.py,sha256=qniYt7cTYYPVRi_cS1IsXztOldeY0bqdn7sdbELBU9k,17157
|
|
61
61
|
abstractcore/media/processors/text_processor.py,sha256=D84QWxxIou4MeNhERmCTxi_p27CgicVFhMXJiujZgIE,21905
|
|
62
62
|
abstractcore/media/utils/__init__.py,sha256=30-CTif91iRKOXJ4njGiduWAt-xp31U7NafMBNvgdO0,460
|
|
63
|
-
abstractcore/media/utils/image_scaler.py,sha256=
|
|
63
|
+
abstractcore/media/utils/image_scaler.py,sha256=uUVF91_mLTt-PR0LZiDawTolE2qIrTG1rzV9oYVbxhg,11171
|
|
64
64
|
abstractcore/processing/__init__.py,sha256=QcACEnhnHKYCkFL1LNOW_uqBrwkTAmz5A61N4K2dyu0,988
|
|
65
65
|
abstractcore/processing/basic_deepsearch.py,sha256=dzJQtH4k44XY9tvG0Z4JIlYt_s7HpbLdSPScha-t7vk,101036
|
|
66
66
|
abstractcore/processing/basic_extractor.py,sha256=3x-3BdIHgLvqLnLF6K1-P4qVaLIpAnNIIutaJi7lDQM,49832
|
|
@@ -100,11 +100,11 @@ abstractcore/utils/self_fixes.py,sha256=1VYxPq-q7_DtNl39NbrzUmyHpkhb9Q2SdnXUj4c0
|
|
|
100
100
|
abstractcore/utils/structured_logging.py,sha256=Vm-HviSa42G9DJCWmaEv4a0QG3NMsADD3ictLOs4En0,19952
|
|
101
101
|
abstractcore/utils/token_utils.py,sha256=eLwFmJ68p9WMFD_MHLMmeJRW6Oqx_4hKELB8FNQ2Mnk,21097
|
|
102
102
|
abstractcore/utils/trace_export.py,sha256=MD1DHDWltpewy62cYzz_OSPAA6edZbZq7_pZbvxz_H8,9279
|
|
103
|
-
abstractcore/utils/version.py,sha256=
|
|
104
|
-
abstractcore/utils/vlm_token_calculator.py,sha256=
|
|
105
|
-
abstractcore-2.6.
|
|
106
|
-
abstractcore-2.6.
|
|
107
|
-
abstractcore-2.6.
|
|
108
|
-
abstractcore-2.6.
|
|
109
|
-
abstractcore-2.6.
|
|
110
|
-
abstractcore-2.6.
|
|
103
|
+
abstractcore/utils/version.py,sha256=fGitJreyjR3YcLSzG8HVouegf1WXPAbePDRHq4L6vdc,605
|
|
104
|
+
abstractcore/utils/vlm_token_calculator.py,sha256=KMhV97gYpiWHYNnPR5yFLw6eA1CPKQ1c-ihPdns72Wg,27979
|
|
105
|
+
abstractcore-2.6.7.dist-info/licenses/LICENSE,sha256=PI2v_4HMvd6050uDD_4AY_8PzBnu2asa3RKbdDjowTA,1078
|
|
106
|
+
abstractcore-2.6.7.dist-info/METADATA,sha256=nEJQ7m4SW_YPgt1S6aa1E0uzR5bn-uYeiVhsZv9I9-M,45837
|
|
107
|
+
abstractcore-2.6.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
108
|
+
abstractcore-2.6.7.dist-info/entry_points.txt,sha256=jXNdzeltVs23A2JM2e2HOiAHldHrsnud3EvPI5VffOs,658
|
|
109
|
+
abstractcore-2.6.7.dist-info/top_level.txt,sha256=DiNHBI35SIawW3N9Z-z0y6cQYNbXd32pvBkW0RLfScs,13
|
|
110
|
+
abstractcore-2.6.7.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|