webscout 7.6__py3-none-any.whl → 7.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.
Potentially problematic release.
This version of webscout might be problematic. Click here for more details.
- webscout/Extra/autocoder/__init__.py +9 -9
- webscout/Extra/autocoder/autocoder_utiles.py +193 -195
- webscout/Extra/autocoder/rawdog.py +789 -649
- webscout/Extra/gguf.py +54 -24
- webscout/Provider/AISEARCH/ISou.py +0 -21
- webscout/Provider/AllenAI.py +4 -21
- webscout/Provider/ChatGPTClone.py +226 -0
- webscout/Provider/Glider.py +8 -4
- webscout/Provider/Hunyuan.py +272 -0
- webscout/Provider/LambdaChat.py +391 -0
- webscout/Provider/OLLAMA.py +256 -32
- webscout/Provider/TTI/FreeAIPlayground/async_freeaiplayground.py +18 -45
- webscout/Provider/TTI/FreeAIPlayground/sync_freeaiplayground.py +34 -46
- webscout/Provider/TTI/artbit/async_artbit.py +3 -32
- webscout/Provider/TTI/artbit/sync_artbit.py +3 -31
- webscout/Provider/TTI/fastflux/async_fastflux.py +6 -2
- webscout/Provider/TTI/fastflux/sync_fastflux.py +7 -2
- webscout/Provider/TTI/piclumen/__init__.py +22 -22
- webscout/Provider/TTI/piclumen/sync_piclumen.py +232 -232
- webscout/Provider/WebSim.py +227 -0
- webscout/Provider/__init__.py +12 -1
- webscout/Provider/flowith.py +13 -2
- webscout/Provider/labyrinth.py +239 -0
- webscout/Provider/learnfastai.py +28 -15
- webscout/Provider/sonus.py +208 -0
- webscout/Provider/typegpt.py +1 -1
- webscout/Provider/uncovr.py +297 -0
- webscout/cli.py +49 -0
- webscout/litagent/agent.py +14 -9
- webscout/version.py +1 -1
- {webscout-7.6.dist-info → webscout-7.7.dist-info}/METADATA +33 -22
- {webscout-7.6.dist-info → webscout-7.7.dist-info}/RECORD +36 -29
- {webscout-7.6.dist-info → webscout-7.7.dist-info}/LICENSE.md +0 -0
- {webscout-7.6.dist-info → webscout-7.7.dist-info}/WHEEL +0 -0
- {webscout-7.6.dist-info → webscout-7.7.dist-info}/entry_points.txt +0 -0
- {webscout-7.6.dist-info → webscout-7.7.dist-info}/top_level.txt +0 -0
|
@@ -6,8 +6,8 @@ Examples:
|
|
|
6
6
|
>>> import asyncio
|
|
7
7
|
>>>
|
|
8
8
|
>>> async def example():
|
|
9
|
-
... # Initialize
|
|
10
|
-
... provider = AsyncArtbitImager(
|
|
9
|
+
... # Initialize provider
|
|
10
|
+
... provider = AsyncArtbitImager()
|
|
11
11
|
...
|
|
12
12
|
... # Generate a single image
|
|
13
13
|
... images = await provider.generate("Cool art")
|
|
@@ -33,27 +33,19 @@ import asyncio
|
|
|
33
33
|
import os
|
|
34
34
|
from typing import List
|
|
35
35
|
from webscout.AIbase import AsyncImageProvider
|
|
36
|
-
from webscout.Litlogger import Logger, LogFormat
|
|
37
36
|
from webscout.litagent import LitAgent
|
|
38
37
|
|
|
39
|
-
# Initialize our fire logger and agent 🔥
|
|
40
|
-
logger = Logger(
|
|
41
|
-
"AsyncArtbit",
|
|
42
|
-
format=LogFormat.MODERN_EMOJI,
|
|
43
|
-
|
|
44
|
-
)
|
|
45
38
|
agent = LitAgent()
|
|
46
39
|
|
|
47
40
|
class AsyncArtbitImager(AsyncImageProvider):
|
|
48
41
|
"""Your go-to async provider for generating fire images with Artbit! ⚡"""
|
|
49
42
|
|
|
50
|
-
def __init__(self, timeout: int = 60, proxies: dict = {}
|
|
43
|
+
def __init__(self, timeout: int = 60, proxies: dict = {}):
|
|
51
44
|
"""Initialize your async Artbit provider with custom settings! ⚙️
|
|
52
45
|
|
|
53
46
|
Args:
|
|
54
47
|
timeout (int): Request timeout in seconds (default: 60)
|
|
55
48
|
proxies (dict): Proxy settings for requests (default: {})
|
|
56
|
-
logging (bool): Enable fire logging (default: True)
|
|
57
49
|
"""
|
|
58
50
|
self.url = "https://artbit.ai/api/generateImage"
|
|
59
51
|
self.headers = {
|
|
@@ -65,9 +57,6 @@ class AsyncArtbitImager(AsyncImageProvider):
|
|
|
65
57
|
self.proxies = proxies
|
|
66
58
|
self.prompt: str = "AI-generated image - webscout"
|
|
67
59
|
self.image_extension: str = "png"
|
|
68
|
-
self.logging = logging
|
|
69
|
-
if self.logging:
|
|
70
|
-
logger.info("AsyncArtbit provider initialized! 🚀")
|
|
71
60
|
|
|
72
61
|
async def generate(
|
|
73
62
|
self,
|
|
@@ -96,9 +85,6 @@ class AsyncArtbitImager(AsyncImageProvider):
|
|
|
96
85
|
self.prompt = prompt
|
|
97
86
|
response: List[str] = []
|
|
98
87
|
|
|
99
|
-
if self.logging:
|
|
100
|
-
logger.info(f"Generating {amount} images with {caption_model}... 🎨")
|
|
101
|
-
|
|
102
88
|
payload = {
|
|
103
89
|
"captionInput": prompt,
|
|
104
90
|
"captionModel": caption_model,
|
|
@@ -113,18 +99,10 @@ class AsyncArtbitImager(AsyncImageProvider):
|
|
|
113
99
|
resp.raise_for_status()
|
|
114
100
|
response_data = await resp.json()
|
|
115
101
|
imgs = response_data.get("imgs", [])
|
|
116
|
-
|
|
117
102
|
if imgs:
|
|
118
103
|
response.extend(imgs)
|
|
119
|
-
if self.logging:
|
|
120
|
-
logger.success("Images generated successfully! 🎉")
|
|
121
|
-
else:
|
|
122
|
-
if self.logging:
|
|
123
|
-
logger.warning("No images found in the response 😢")
|
|
124
104
|
|
|
125
105
|
except aiohttp.ClientError as e:
|
|
126
|
-
if self.logging:
|
|
127
|
-
logger.error(f"Failed to generate images: {e} 😢")
|
|
128
106
|
raise
|
|
129
107
|
|
|
130
108
|
return response
|
|
@@ -153,9 +131,6 @@ class AsyncArtbitImager(AsyncImageProvider):
|
|
|
153
131
|
filenames = []
|
|
154
132
|
count = 0
|
|
155
133
|
|
|
156
|
-
if self.logging:
|
|
157
|
-
logger.info(f"Saving {len(response)} images... 💾")
|
|
158
|
-
|
|
159
134
|
async with aiohttp.ClientSession(headers=self.headers) as session:
|
|
160
135
|
for img_url in response:
|
|
161
136
|
def complete_path():
|
|
@@ -175,10 +150,6 @@ class AsyncArtbitImager(AsyncImageProvider):
|
|
|
175
150
|
await fh.write(await resp.read())
|
|
176
151
|
|
|
177
152
|
except aiohttp.ClientError as e:
|
|
178
|
-
if self.logging:
|
|
179
|
-
logger.error(f"Failed to save image from {img_url}: {e} 😢")
|
|
180
153
|
raise
|
|
181
154
|
|
|
182
|
-
if self.logging:
|
|
183
|
-
logger.success(f"Images saved successfully! Check {dir} 🎉")
|
|
184
155
|
return filenames
|
|
@@ -4,8 +4,8 @@ ArtbitImager - Your go-to provider for generating fire images with Artbit! 🔥
|
|
|
4
4
|
Examples:
|
|
5
5
|
>>> from webscout import ArtbitImager
|
|
6
6
|
>>>
|
|
7
|
-
>>> # Initialize
|
|
8
|
-
>>> provider = ArtbitImager(
|
|
7
|
+
>>> # Initialize provider
|
|
8
|
+
>>> provider = ArtbitImager()
|
|
9
9
|
>>>
|
|
10
10
|
>>> # Generate a single image
|
|
11
11
|
>>> images = provider.generate("Cool art")
|
|
@@ -27,27 +27,19 @@ import os
|
|
|
27
27
|
import requests
|
|
28
28
|
from typing import List
|
|
29
29
|
from webscout.AIbase import ImageProvider
|
|
30
|
-
from webscout.Litlogger import Logger, LogFormat
|
|
31
30
|
from webscout.litagent import LitAgent
|
|
32
31
|
|
|
33
|
-
# Initialize our fire logger and agent 🔥
|
|
34
|
-
logger = Logger(
|
|
35
|
-
"Artbit",
|
|
36
|
-
format=LogFormat.MODERN_EMOJI,
|
|
37
|
-
|
|
38
|
-
)
|
|
39
32
|
agent = LitAgent()
|
|
40
33
|
|
|
41
34
|
class ArtbitImager(ImageProvider):
|
|
42
35
|
"""Your go-to provider for generating fire images with Artbit! 🔥"""
|
|
43
36
|
|
|
44
|
-
def __init__(self, timeout: int = 60, proxies: dict = {}
|
|
37
|
+
def __init__(self, timeout: int = 60, proxies: dict = {}):
|
|
45
38
|
"""Initialize your Artbit provider with custom settings! ⚙️
|
|
46
39
|
|
|
47
40
|
Args:
|
|
48
41
|
timeout (int): Request timeout in seconds (default: 60)
|
|
49
42
|
proxies (dict): Proxy settings for requests (default: {})
|
|
50
|
-
logging (bool): Enable fire logging (default: True)
|
|
51
43
|
"""
|
|
52
44
|
self.url = "https://artbit.ai/api/generateImage"
|
|
53
45
|
self.scraper = cloudscraper.create_scraper()
|
|
@@ -56,9 +48,6 @@ class ArtbitImager(ImageProvider):
|
|
|
56
48
|
self.timeout = timeout
|
|
57
49
|
self.prompt: str = "AI-generated image - webscout"
|
|
58
50
|
self.image_extension: str = "png"
|
|
59
|
-
self.logging = logging
|
|
60
|
-
if self.logging:
|
|
61
|
-
logger.info("Artbit provider initialized! 🚀")
|
|
62
51
|
|
|
63
52
|
def generate(
|
|
64
53
|
self,
|
|
@@ -87,9 +76,6 @@ class ArtbitImager(ImageProvider):
|
|
|
87
76
|
self.prompt = prompt
|
|
88
77
|
response: List[str] = []
|
|
89
78
|
|
|
90
|
-
if self.logging:
|
|
91
|
-
logger.info(f"Generating {amount} images with {caption_model}... 🎨")
|
|
92
|
-
|
|
93
79
|
payload = {
|
|
94
80
|
"captionInput": prompt,
|
|
95
81
|
"captionModel": caption_model,
|
|
@@ -107,15 +93,8 @@ class ArtbitImager(ImageProvider):
|
|
|
107
93
|
|
|
108
94
|
if imgs:
|
|
109
95
|
response.extend(imgs)
|
|
110
|
-
if self.logging:
|
|
111
|
-
logger.success("Images generated successfully! 🎉")
|
|
112
|
-
else:
|
|
113
|
-
if self.logging:
|
|
114
|
-
logger.warning("No images found in the response 😢")
|
|
115
96
|
|
|
116
97
|
except requests.RequestException as e:
|
|
117
|
-
if self.logging:
|
|
118
|
-
logger.error(f"Failed to generate images: {e} 😢")
|
|
119
98
|
raise
|
|
120
99
|
|
|
121
100
|
return response
|
|
@@ -144,9 +123,6 @@ class ArtbitImager(ImageProvider):
|
|
|
144
123
|
filenames = []
|
|
145
124
|
count = 0
|
|
146
125
|
|
|
147
|
-
if self.logging:
|
|
148
|
-
logger.info(f"Saving {len(response)} images... 💾")
|
|
149
|
-
|
|
150
126
|
for img_url in response:
|
|
151
127
|
def complete_path():
|
|
152
128
|
count_value = "" if count == 0 else f"_{count}"
|
|
@@ -167,10 +143,6 @@ class ArtbitImager(ImageProvider):
|
|
|
167
143
|
fh.write(chunk)
|
|
168
144
|
|
|
169
145
|
except requests.exceptions.RequestException as e:
|
|
170
|
-
if self.logging:
|
|
171
|
-
logger.error(f"Failed to save image from {img_url}: {e} 😢")
|
|
172
146
|
raise
|
|
173
147
|
|
|
174
|
-
if self.logging:
|
|
175
|
-
logger.success(f"Images saved successfully! Check {dir} 🎉")
|
|
176
148
|
return filenames
|
|
@@ -26,7 +26,6 @@ import aiofiles
|
|
|
26
26
|
from webscout.AIbase import AsyncImageProvider
|
|
27
27
|
from webscout.litagent import LitAgent
|
|
28
28
|
|
|
29
|
-
|
|
30
29
|
class AsyncFastFluxImager(AsyncImageProvider):
|
|
31
30
|
"""Your go-to async provider for generating fire images with FastFlux! ⚡
|
|
32
31
|
|
|
@@ -55,7 +54,11 @@ class AsyncFastFluxImager(AsyncImageProvider):
|
|
|
55
54
|
"sana_1_6b" # SANA 1.6B model
|
|
56
55
|
]
|
|
57
56
|
|
|
58
|
-
|
|
57
|
+
AVAILABLE_SIZES = [
|
|
58
|
+
"1_1",
|
|
59
|
+
"16_9",
|
|
60
|
+
"4_3",
|
|
61
|
+
]
|
|
59
62
|
|
|
60
63
|
def __init__(self, timeout: int = 60, proxies: dict = None):
|
|
61
64
|
"""Initialize your async FastFluxImager provider with custom settings ⚙️
|
|
@@ -81,6 +84,7 @@ class AsyncFastFluxImager(AsyncImageProvider):
|
|
|
81
84
|
self.proxies = proxies
|
|
82
85
|
self.prompt: str = "AI-generated image - webscout"
|
|
83
86
|
self.image_extension: str = "png"
|
|
87
|
+
self.logging = True
|
|
84
88
|
|
|
85
89
|
|
|
86
90
|
async def generate(
|
|
@@ -55,7 +55,12 @@ class FastFluxImager(ImageProvider):
|
|
|
55
55
|
"flux_1_dev", # Developer model
|
|
56
56
|
"sana_1_6b" # SANA 1.6B model
|
|
57
57
|
]
|
|
58
|
-
|
|
58
|
+
|
|
59
|
+
AVAILABLE_SIZES = [
|
|
60
|
+
"1_1",
|
|
61
|
+
"16_9",
|
|
62
|
+
"4_3",
|
|
63
|
+
]
|
|
59
64
|
|
|
60
65
|
def __init__(self, timeout: int = 60, proxies: dict = None):
|
|
61
66
|
"""Initialize your FastFluxImager provider with custom settings
|
|
@@ -84,7 +89,7 @@ class FastFluxImager(ImageProvider):
|
|
|
84
89
|
self.timeout = timeout
|
|
85
90
|
self.prompt: str = "AI-generated image - webscout"
|
|
86
91
|
self.image_extension: str = "png"
|
|
87
|
-
|
|
92
|
+
self.logging = True
|
|
88
93
|
|
|
89
94
|
def generate(
|
|
90
95
|
self,
|
|
@@ -1,23 +1,23 @@
|
|
|
1
|
-
"""PiclumenImager Provider Package - Your go-to for high-quality AI art! 🎨
|
|
2
|
-
|
|
3
|
-
Examples:
|
|
4
|
-
>>> # Synchronous usage
|
|
5
|
-
>>> from webscout import PiclumenImager
|
|
6
|
-
>>> provider = PiclumenImager()
|
|
7
|
-
>>> images = provider.generate("A cool underwater creature")
|
|
8
|
-
>>> provider.save(images, dir="my_images")
|
|
9
|
-
>>>
|
|
10
|
-
>>> # Asynchronous usage
|
|
11
|
-
>>> import asyncio
|
|
12
|
-
>>> from webscout import AsyncPiclumenImager
|
|
13
|
-
>>> async def main():
|
|
14
|
-
... provider = AsyncPiclumenImager()
|
|
15
|
-
... images = await provider.generate("A cool cyberpunk city")
|
|
16
|
-
... await provider.save(images, dir="my_images")
|
|
17
|
-
>>> asyncio.run(main())
|
|
18
|
-
"""
|
|
19
|
-
|
|
20
|
-
from .sync_piclumen import PiclumenImager
|
|
21
|
-
from .async_piclumen import AsyncPiclumenImager
|
|
22
|
-
|
|
1
|
+
"""PiclumenImager Provider Package - Your go-to for high-quality AI art! 🎨
|
|
2
|
+
|
|
3
|
+
Examples:
|
|
4
|
+
>>> # Synchronous usage
|
|
5
|
+
>>> from webscout import PiclumenImager
|
|
6
|
+
>>> provider = PiclumenImager()
|
|
7
|
+
>>> images = provider.generate("A cool underwater creature")
|
|
8
|
+
>>> provider.save(images, dir="my_images")
|
|
9
|
+
>>>
|
|
10
|
+
>>> # Asynchronous usage
|
|
11
|
+
>>> import asyncio
|
|
12
|
+
>>> from webscout import AsyncPiclumenImager
|
|
13
|
+
>>> async def main():
|
|
14
|
+
... provider = AsyncPiclumenImager()
|
|
15
|
+
... images = await provider.generate("A cool cyberpunk city")
|
|
16
|
+
... await provider.save(images, dir="my_images")
|
|
17
|
+
>>> asyncio.run(main())
|
|
18
|
+
"""
|
|
19
|
+
|
|
20
|
+
from .sync_piclumen import PiclumenImager
|
|
21
|
+
from .async_piclumen import AsyncPiclumenImager
|
|
22
|
+
|
|
23
23
|
__all__ = ["PiclumenImager", "AsyncPiclumenImager"]
|