webscout 2025.10.16__py3-none-any.whl → 2025.10.18__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/Provider/ClaudeOnline.py +350 -0
- webscout/Provider/Gradient.py +231 -0
- webscout/Provider/TTI/claudeonline.py +315 -0
- webscout/Provider/TogetherAI.py +139 -199
- webscout/version.py +1 -1
- webscout/version.py.bak +1 -1
- {webscout-2025.10.16.dist-info → webscout-2025.10.18.dist-info}/METADATA +2 -3
- {webscout-2025.10.16.dist-info → webscout-2025.10.18.dist-info}/RECORD +12 -10
- webscout/Extra/weather.md +0 -281
- {webscout-2025.10.16.dist-info → webscout-2025.10.18.dist-info}/WHEEL +0 -0
- {webscout-2025.10.16.dist-info → webscout-2025.10.18.dist-info}/entry_points.txt +0 -0
- {webscout-2025.10.16.dist-info → webscout-2025.10.18.dist-info}/licenses/LICENSE.md +0 -0
- {webscout-2025.10.16.dist-info → webscout-2025.10.18.dist-info}/top_level.txt +0 -0
webscout/Extra/weather.md
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<h1>☀️ Webscout Weather Toolkit</h1>
|
|
3
|
-
<p><strong>Comprehensive weather data retrieval and visualization tools</strong></p>
|
|
4
|
-
|
|
5
|
-
<!-- Badges -->
|
|
6
|
-
<p>
|
|
7
|
-
<a href="#-installation"><img src="https://img.shields.io/badge/Easy-Installation-success?style=flat-square" alt="Easy Installation"></a>
|
|
8
|
-
<a href="#-current-weather-data"><img src="https://img.shields.io/badge/Real--time-Data-blue?style=flat-square" alt="Real-time Data"></a>
|
|
9
|
-
<a href="#-ascii-art-weather"><img src="https://img.shields.io/badge/ASCII-Visualization-orange?style=flat-square" alt="ASCII Visualization"></a>
|
|
10
|
-
</p>
|
|
11
|
-
</div>
|
|
12
|
-
|
|
13
|
-
> [!NOTE]
|
|
14
|
-
> Webscout's Weather Toolkit provides powerful tools to retrieve and display weather information in various formats, including structured data and ASCII art visualization.
|
|
15
|
-
|
|
16
|
-
## 📋 Table of Contents
|
|
17
|
-
|
|
18
|
-
- [🚀 Installation](#-installation)
|
|
19
|
-
- [🌡️ Current Weather Data](#-current-weather-data)
|
|
20
|
-
- [🔮 Weather Forecast](#-weather-forecast)
|
|
21
|
-
- [🎨 ASCII Art Weather](#-ascii-art-weather)
|
|
22
|
-
- [📊 Data Structure](#-data-structure)
|
|
23
|
-
- [⚙️ Advanced Usage](#-advanced-usage)
|
|
24
|
-
|
|
25
|
-
## 🚀 Installation
|
|
26
|
-
|
|
27
|
-
The Weather Toolkit is included in the Webscout package. Install or update Webscout to get access:
|
|
28
|
-
|
|
29
|
-
```bash
|
|
30
|
-
pip install -U webscout
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
## 🌡️ Current Weather Data
|
|
34
|
-
|
|
35
|
-
Retrieve structured current weather information for any location worldwide.
|
|
36
|
-
|
|
37
|
-
```python
|
|
38
|
-
from webscout.Extra import weather
|
|
39
|
-
|
|
40
|
-
# Get weather for a specific location
|
|
41
|
-
forecast = weather.get("London")
|
|
42
|
-
|
|
43
|
-
# Access current conditions
|
|
44
|
-
print(f"Current weather: {forecast.summary}")
|
|
45
|
-
|
|
46
|
-
# Access temperature details
|
|
47
|
-
if forecast.current_condition:
|
|
48
|
-
print(f"Temperature: {forecast.current_condition.temp_c}°C / {forecast.current_condition.temp_f}°F")
|
|
49
|
-
print(f"Feels like: {forecast.current_condition.feels_like_c}°C")
|
|
50
|
-
print(f"Conditions: {forecast.current_condition.weather_desc}")
|
|
51
|
-
print(f"Wind: {forecast.current_condition.wind_speed_kmph} km/h from {forecast.current_condition.wind_direction}")
|
|
52
|
-
print(f"Humidity: {forecast.current_condition.humidity}%")
|
|
53
|
-
print(f"Visibility: {forecast.current_condition.visibility} km")
|
|
54
|
-
print(f"Pressure: {forecast.current_condition.pressure} mb")
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
## 🔮 Weather Forecast
|
|
58
|
-
|
|
59
|
-
Access detailed forecast information for today and upcoming days.
|
|
60
|
-
|
|
61
|
-
```python
|
|
62
|
-
from webscout.Extra import weather
|
|
63
|
-
|
|
64
|
-
forecast = weather.get("Tokyo")
|
|
65
|
-
|
|
66
|
-
# Today's forecast
|
|
67
|
-
if forecast.today:
|
|
68
|
-
print(f"Today ({forecast.today.date_formatted}):")
|
|
69
|
-
print(f" Temperature range: {forecast.today.min_temp_c}°C - {forecast.today.max_temp_c}°C")
|
|
70
|
-
print(f" Sunrise: {forecast.today.sunrise}, Sunset: {forecast.today.sunset}")
|
|
71
|
-
|
|
72
|
-
# Access hourly forecasts
|
|
73
|
-
if forecast.today.hourly and len(forecast.today.hourly) > 4:
|
|
74
|
-
noon = forecast.today.hourly[4] # Noon (12:00) is usually index 4
|
|
75
|
-
print(f" Noon conditions: {noon.weather_desc}")
|
|
76
|
-
print(f" Chance of rain: {noon.chance_of_rain}%")
|
|
77
|
-
print(f" Humidity: {noon.humidity}%")
|
|
78
|
-
print(f" UV Index: {noon.uv_index}")
|
|
79
|
-
|
|
80
|
-
# Tomorrow's forecast
|
|
81
|
-
if forecast.tomorrow:
|
|
82
|
-
print(f"\nTomorrow ({forecast.tomorrow.date_formatted}):")
|
|
83
|
-
print(f" Temperature range: {forecast.tomorrow.min_temp_c}°C - {forecast.tomorrow.max_temp_c}°C")
|
|
84
|
-
print(f" Weather: {forecast.tomorrow.weather_desc}")
|
|
85
|
-
print(f" Sunrise: {forecast.tomorrow.sunrise}, Sunset: {forecast.tomorrow.sunset}")
|
|
86
|
-
|
|
87
|
-
# Extended forecast (next 3 days)
|
|
88
|
-
if forecast.days and len(forecast.days) > 2:
|
|
89
|
-
print("\nExtended Forecast:")
|
|
90
|
-
for day in forecast.days[2:5]: # Days 3-5
|
|
91
|
-
print(f" {day.date_formatted}: {day.min_temp_c}°C - {day.max_temp_c}°C, {day.weather_desc}")
|
|
92
|
-
```
|
|
93
|
-
|
|
94
|
-
## 🎨 ASCII Art Weather
|
|
95
|
-
|
|
96
|
-
Retrieve weather information as visually appealing ASCII art.
|
|
97
|
-
|
|
98
|
-
```python
|
|
99
|
-
from webscout.Extra import weather_ascii
|
|
100
|
-
|
|
101
|
-
# Get ASCII art weather
|
|
102
|
-
result = weather_ascii.get("Paris")
|
|
103
|
-
|
|
104
|
-
# Display the ASCII art weather
|
|
105
|
-
print(result.content)
|
|
106
|
-
|
|
107
|
-
# Get ASCII art with temperature in Fahrenheit
|
|
108
|
-
result_f = weather_ascii.get("New York", units="imperial")
|
|
109
|
-
print(result_f.content)
|
|
110
|
-
|
|
111
|
-
# Get ASCII art with a specific number of forecast days
|
|
112
|
-
result_days = weather_ascii.get("Berlin", days=3)
|
|
113
|
-
print(result_days.content)
|
|
114
|
-
```
|
|
115
|
-
|
|
116
|
-
Example output:
|
|
117
|
-
```
|
|
118
|
-
Weather for Paris, France
|
|
119
|
-
|
|
120
|
-
\ / Clear
|
|
121
|
-
.-. +20°C
|
|
122
|
-
― ( ) ― ↗ 11 km/h
|
|
123
|
-
`-' 10 km
|
|
124
|
-
/ \ 0.0 mm
|
|
125
|
-
┌─────────────┐
|
|
126
|
-
┌───────────────────────┤ Wed 14 Apr ├───────────────────────┐
|
|
127
|
-
│ Morning └──────┬──────┘ Evening Night │
|
|
128
|
-
├──────────────────────────────┼──────────────────────────────┤
|
|
129
|
-
│ Cloudy │ Clear │
|
|
130
|
-
│ .--. +20..+22 °C │ \ / +15 °C │
|
|
131
|
-
│ .-( ). ↗ 11-13 km/h │ .-. ↗ 7-9 km/h │
|
|
132
|
-
│ (___.__)__) 10 km │ ― ( ) ― 10 km │
|
|
133
|
-
│ 0.0 mm | 0% │ `-' 0.0 mm | 0% │
|
|
134
|
-
└──────────────────────────────┴──────────────────────────────┘
|
|
135
|
-
```
|
|
136
|
-
|
|
137
|
-
## 📊 Data Structure
|
|
138
|
-
|
|
139
|
-
The Weather Toolkit returns structured data objects with the following key components:
|
|
140
|
-
|
|
141
|
-
<details>
|
|
142
|
-
<summary><strong>Forecast Object Structure</strong></summary>
|
|
143
|
-
|
|
144
|
-
```python
|
|
145
|
-
forecast = weather.get("London")
|
|
146
|
-
|
|
147
|
-
# Main forecast object attributes
|
|
148
|
-
forecast.location # Location information (city, country, etc.)
|
|
149
|
-
forecast.summary # Brief summary of current weather
|
|
150
|
-
forecast.current_condition # Current weather conditions
|
|
151
|
-
forecast.today # Today's forecast
|
|
152
|
-
forecast.tomorrow # Tomorrow's forecast
|
|
153
|
-
forecast.days # List of daily forecasts (including today and tomorrow)
|
|
154
|
-
|
|
155
|
-
# Current condition attributes
|
|
156
|
-
current = forecast.current_condition
|
|
157
|
-
current.temp_c # Temperature in Celsius
|
|
158
|
-
current.temp_f # Temperature in Fahrenheit
|
|
159
|
-
current.feels_like_c # "Feels like" temperature in Celsius
|
|
160
|
-
current.feels_like_f # "Feels like" temperature in Fahrenheit
|
|
161
|
-
current.wind_speed_kmph # Wind speed in km/h
|
|
162
|
-
current.wind_speed_mph # Wind speed in mph
|
|
163
|
-
current.wind_direction # Wind direction (e.g., "NW")
|
|
164
|
-
current.humidity # Humidity percentage
|
|
165
|
-
current.pressure # Atmospheric pressure in millibars
|
|
166
|
-
current.visibility # Visibility in kilometers
|
|
167
|
-
current.weather_desc # Weather description (e.g., "Partly cloudy")
|
|
168
|
-
current.weather_code # Weather code for icon mapping
|
|
169
|
-
|
|
170
|
-
# Daily forecast attributes
|
|
171
|
-
day = forecast.today # or any day from forecast.days
|
|
172
|
-
day.date # Date (YYYY-MM-DD)
|
|
173
|
-
day.date_formatted # Formatted date (e.g., "Wed 14 Apr")
|
|
174
|
-
day.max_temp_c # Maximum temperature in Celsius
|
|
175
|
-
day.min_temp_c # Minimum temperature in Celsius
|
|
176
|
-
day.max_temp_f # Maximum temperature in Fahrenheit
|
|
177
|
-
day.min_temp_f # Minimum temperature in Fahrenheit
|
|
178
|
-
day.sunrise # Sunrise time
|
|
179
|
-
day.sunset # Sunset time
|
|
180
|
-
day.weather_desc # Weather description
|
|
181
|
-
day.weather_code # Weather code
|
|
182
|
-
day.hourly # List of hourly forecasts for this day
|
|
183
|
-
```
|
|
184
|
-
</details>
|
|
185
|
-
|
|
186
|
-
<details>
|
|
187
|
-
<summary><strong>ASCII Weather Object Structure</strong></summary>
|
|
188
|
-
|
|
189
|
-
```python
|
|
190
|
-
result = weather_ascii.get("Paris")
|
|
191
|
-
|
|
192
|
-
# ASCII result attributes
|
|
193
|
-
result.content # The full ASCII art weather display
|
|
194
|
-
result.location # Location information
|
|
195
|
-
result.temperature # Current temperature
|
|
196
|
-
result.conditions # Current weather conditions
|
|
197
|
-
result.forecast_days # Number of forecast days included
|
|
198
|
-
```
|
|
199
|
-
</details>
|
|
200
|
-
|
|
201
|
-
## ⚙️ Advanced Usage
|
|
202
|
-
|
|
203
|
-
<details>
|
|
204
|
-
<summary><strong>Custom Location Formats</strong></summary>
|
|
205
|
-
|
|
206
|
-
The Weather Toolkit supports various location formats:
|
|
207
|
-
|
|
208
|
-
```python
|
|
209
|
-
# City name
|
|
210
|
-
weather.get("London")
|
|
211
|
-
|
|
212
|
-
# City and country
|
|
213
|
-
weather.get("Paris, France")
|
|
214
|
-
|
|
215
|
-
# ZIP/Postal code (US)
|
|
216
|
-
weather.get("10001") # New York, NY
|
|
217
|
-
|
|
218
|
-
# Latitude and Longitude
|
|
219
|
-
weather.get("40.7128,-74.0060") # New York coordinates
|
|
220
|
-
```
|
|
221
|
-
</details>
|
|
222
|
-
|
|
223
|
-
<details>
|
|
224
|
-
<summary><strong>Temperature Units</strong></summary>
|
|
225
|
-
|
|
226
|
-
Control temperature units in ASCII weather display:
|
|
227
|
-
|
|
228
|
-
```python
|
|
229
|
-
# Default (metric - Celsius)
|
|
230
|
-
weather_ascii.get("Tokyo")
|
|
231
|
-
|
|
232
|
-
# Imperial (Fahrenheit)
|
|
233
|
-
weather_ascii.get("New York", units="imperial")
|
|
234
|
-
|
|
235
|
-
# Metric (Celsius)
|
|
236
|
-
weather_ascii.get("Berlin", units="metric")
|
|
237
|
-
```
|
|
238
|
-
</details>
|
|
239
|
-
|
|
240
|
-
<details>
|
|
241
|
-
<summary><strong>Forecast Days</strong></summary>
|
|
242
|
-
|
|
243
|
-
Control the number of forecast days in ASCII weather display:
|
|
244
|
-
|
|
245
|
-
```python
|
|
246
|
-
# Default (1 day)
|
|
247
|
-
weather_ascii.get("Sydney")
|
|
248
|
-
|
|
249
|
-
# 3-day forecast
|
|
250
|
-
weather_ascii.get("Rio de Janeiro", days=3)
|
|
251
|
-
|
|
252
|
-
# 5-day forecast (maximum)
|
|
253
|
-
weather_ascii.get("Moscow", days=5)
|
|
254
|
-
```
|
|
255
|
-
</details>
|
|
256
|
-
|
|
257
|
-
<details>
|
|
258
|
-
<summary><strong>Error Handling</strong></summary>
|
|
259
|
-
|
|
260
|
-
Implement proper error handling for robust applications:
|
|
261
|
-
|
|
262
|
-
```python
|
|
263
|
-
from webscout.Extra import weather
|
|
264
|
-
from webscout.exceptions import APIError
|
|
265
|
-
|
|
266
|
-
try:
|
|
267
|
-
forecast = weather.get("London")
|
|
268
|
-
print(f"Current temperature: {forecast.current_condition.temp_c}°C")
|
|
269
|
-
except APIError as e:
|
|
270
|
-
print(f"API Error: {e}")
|
|
271
|
-
except Exception as e:
|
|
272
|
-
print(f"An error occurred: {e}")
|
|
273
|
-
```
|
|
274
|
-
</details>
|
|
275
|
-
|
|
276
|
-
<div align="center">
|
|
277
|
-
<p>
|
|
278
|
-
<a href="https://github.com/OEvortex/Webscout"><img alt="GitHub Repository" src="https://img.shields.io/badge/GitHub-Repository-181717?style=for-the-badge&logo=github&logoColor=white"></a>
|
|
279
|
-
<a href="https://t.me/PyscoutAI"><img alt="Telegram Group" src="https://img.shields.io/badge/Telegram%20Group-2CA5E0?style=for-the-badge&logo=telegram&logoColor=white"></a>
|
|
280
|
-
</p>
|
|
281
|
-
</div>
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|