oagi 0.6.1__py3-none-any.whl → 0.6.2__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.
Potentially problematic release.
This version of oagi might be problematic. Click here for more details.
oagi/pil_image.py
CHANGED
|
@@ -9,7 +9,6 @@
|
|
|
9
9
|
import io
|
|
10
10
|
from typing import Optional
|
|
11
11
|
|
|
12
|
-
import pyautogui
|
|
13
12
|
from PIL import Image as PILImageLib
|
|
14
13
|
|
|
15
14
|
from .types.models.image_config import ImageConfig
|
|
@@ -39,6 +38,8 @@ class PILImage:
|
|
|
39
38
|
@classmethod
|
|
40
39
|
def from_screenshot(cls, config: ImageConfig | None = None) -> "PILImage":
|
|
41
40
|
"""Create PILImage from screenshot."""
|
|
41
|
+
import pyautogui # noqa: PLC0415, avoid no DISPLAY issue in headless environment
|
|
42
|
+
|
|
42
43
|
screenshot = pyautogui.screenshot()
|
|
43
44
|
return cls(screenshot, config)
|
|
44
45
|
|
|
@@ -4,7 +4,7 @@ oagi/async_screenshot_maker.py,sha256=pI-dbLcYOzcO1ffgTmozAdbYJQNBPKA7hmqj1RxEmI
|
|
|
4
4
|
oagi/async_single_step.py,sha256=FxOSoZKKegHx0by41a4qrJDPoYZV0qZKtdTNMU8Uqz4,2955
|
|
5
5
|
oagi/exceptions.py,sha256=VMwVS8ouE9nHhBpN3AZMYt5_U2kGcihWaTnBhoQLquo,1662
|
|
6
6
|
oagi/logging.py,sha256=CWe89mA5MKTipIvfrqSYkv2CAFNBSwHMDQMDkG_g64g,1350
|
|
7
|
-
oagi/pil_image.py,sha256=
|
|
7
|
+
oagi/pil_image.py,sha256=c-DmvjZLNU3fzZgF0qiEPEXN1UYFpHrxxr4vuxWLaCo,3878
|
|
8
8
|
oagi/pyautogui_action_handler.py,sha256=8IFbU4p907L4b3TV3Eeh0-c-pYL2lYw-_qf1r8TtPTw,9811
|
|
9
9
|
oagi/screenshot_maker.py,sha256=sVuW7jn-K4FmLhmYI-akdNI-UVcTeBzh9P1_qJhoq1s,1282
|
|
10
10
|
oagi/single_step.py,sha256=62Zip4Uql6E-ZIX6vAlrBoveKqrnABzGqHdLCzju4ag,3138
|
|
@@ -29,7 +29,7 @@ oagi/types/models/action.py,sha256=hh6mRRSSWgrW4jpZo71zGMCOcZpV5_COu4148uG6G48,9
|
|
|
29
29
|
oagi/types/models/client.py,sha256=a6aFwoGG5tBNg3Qr_Dd_TYsg6CpKvA-4tU6b6dCQkoU,983
|
|
30
30
|
oagi/types/models/image_config.py,sha256=tl6abVg_-IAPLwpaWprgknXu7wRWriMg-AEVyUX73v0,1567
|
|
31
31
|
oagi/types/models/step.py,sha256=RSI4H_2rrUBq_xyCoWKaq7JHdJWNobtQppaKC1l0aWU,471
|
|
32
|
-
oagi-0.6.
|
|
33
|
-
oagi-0.6.
|
|
34
|
-
oagi-0.6.
|
|
35
|
-
oagi-0.6.
|
|
32
|
+
oagi-0.6.2.dist-info/METADATA,sha256=VGC76x5orIWmHBHuuPZghKdCMJvP1W6q4U-4BINjlJc,4799
|
|
33
|
+
oagi-0.6.2.dist-info/WHEEL,sha256=C2FUgwZgiLbznR-k0b_5k3Ai_1aASOXDss3lzCUsUug,87
|
|
34
|
+
oagi-0.6.2.dist-info/licenses/LICENSE,sha256=sy5DLA2M29jFT4UfWsuBF9BAr3FnRkYtnAu6oDZiIf8,1075
|
|
35
|
+
oagi-0.6.2.dist-info/RECORD,,
|
|
File without changes
|
|
File without changes
|