webscout 8.2.9__py3-none-any.whl → 2026.1.19__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.
- webscout/AIauto.py +524 -251
- webscout/AIbase.py +247 -319
- webscout/AIutel.py +68 -703
- webscout/Bard.py +1072 -1026
- webscout/Extra/GitToolkit/__init__.py +10 -10
- webscout/Extra/GitToolkit/gitapi/__init__.py +20 -12
- webscout/Extra/GitToolkit/gitapi/gist.py +142 -0
- webscout/Extra/GitToolkit/gitapi/organization.py +91 -0
- webscout/Extra/GitToolkit/gitapi/repository.py +308 -195
- webscout/Extra/GitToolkit/gitapi/search.py +162 -0
- webscout/Extra/GitToolkit/gitapi/trending.py +236 -0
- webscout/Extra/GitToolkit/gitapi/user.py +128 -96
- webscout/Extra/GitToolkit/gitapi/utils.py +82 -62
- webscout/Extra/YTToolkit/README.md +443 -375
- webscout/Extra/YTToolkit/YTdownloader.py +953 -957
- webscout/Extra/YTToolkit/__init__.py +3 -3
- webscout/Extra/YTToolkit/transcriber.py +595 -476
- webscout/Extra/YTToolkit/ytapi/README.md +230 -44
- webscout/Extra/YTToolkit/ytapi/__init__.py +22 -6
- webscout/Extra/YTToolkit/ytapi/captions.py +190 -0
- webscout/Extra/YTToolkit/ytapi/channel.py +302 -307
- webscout/Extra/YTToolkit/ytapi/errors.py +13 -13
- webscout/Extra/YTToolkit/ytapi/extras.py +178 -118
- webscout/Extra/YTToolkit/ytapi/hashtag.py +120 -0
- webscout/Extra/YTToolkit/ytapi/https.py +89 -88
- webscout/Extra/YTToolkit/ytapi/patterns.py +61 -61
- webscout/Extra/YTToolkit/ytapi/playlist.py +59 -59
- webscout/Extra/YTToolkit/ytapi/pool.py +8 -8
- webscout/Extra/YTToolkit/ytapi/query.py +143 -40
- webscout/Extra/YTToolkit/ytapi/shorts.py +122 -0
- webscout/Extra/YTToolkit/ytapi/stream.py +68 -63
- webscout/Extra/YTToolkit/ytapi/suggestions.py +97 -0
- webscout/Extra/YTToolkit/ytapi/utils.py +66 -62
- webscout/Extra/YTToolkit/ytapi/video.py +403 -232
- webscout/Extra/__init__.py +2 -3
- webscout/Extra/gguf.py +1298 -684
- webscout/Extra/tempmail/README.md +487 -487
- webscout/Extra/tempmail/__init__.py +28 -28
- webscout/Extra/tempmail/async_utils.py +143 -141
- webscout/Extra/tempmail/base.py +172 -161
- webscout/Extra/tempmail/cli.py +191 -187
- webscout/Extra/tempmail/emailnator.py +88 -84
- webscout/Extra/tempmail/mail_tm.py +378 -361
- webscout/Extra/tempmail/temp_mail_io.py +304 -292
- webscout/Extra/weather.py +196 -194
- webscout/Extra/weather_ascii.py +17 -15
- webscout/Provider/AISEARCH/PERPLEXED_search.py +175 -0
- webscout/Provider/AISEARCH/Perplexity.py +292 -333
- webscout/Provider/AISEARCH/README.md +106 -279
- webscout/Provider/AISEARCH/__init__.py +16 -9
- webscout/Provider/AISEARCH/brave_search.py +298 -0
- webscout/Provider/AISEARCH/iask_search.py +357 -410
- webscout/Provider/AISEARCH/monica_search.py +200 -220
- webscout/Provider/AISEARCH/webpilotai_search.py +242 -255
- webscout/Provider/Algion.py +413 -0
- webscout/Provider/Andi.py +74 -69
- webscout/Provider/Apriel.py +313 -0
- webscout/Provider/Ayle.py +323 -0
- webscout/Provider/ChatSandbox.py +329 -342
- webscout/Provider/ClaudeOnline.py +365 -0
- webscout/Provider/Cohere.py +232 -208
- webscout/Provider/DeepAI.py +367 -0
- webscout/Provider/Deepinfra.py +467 -340
- webscout/Provider/EssentialAI.py +217 -0
- webscout/Provider/ExaAI.py +274 -261
- webscout/Provider/Gemini.py +175 -169
- webscout/Provider/GithubChat.py +385 -369
- webscout/Provider/Gradient.py +286 -0
- webscout/Provider/Groq.py +556 -801
- webscout/Provider/HadadXYZ.py +323 -0
- webscout/Provider/HeckAI.py +392 -375
- webscout/Provider/HuggingFace.py +387 -0
- webscout/Provider/IBM.py +340 -0
- webscout/Provider/Jadve.py +317 -291
- webscout/Provider/K2Think.py +306 -0
- webscout/Provider/Koboldai.py +221 -384
- webscout/Provider/Netwrck.py +273 -270
- webscout/Provider/Nvidia.py +310 -0
- webscout/Provider/OPENAI/DeepAI.py +489 -0
- webscout/Provider/OPENAI/K2Think.py +423 -0
- webscout/Provider/OPENAI/PI.py +463 -0
- webscout/Provider/OPENAI/README.md +890 -952
- webscout/Provider/OPENAI/TogetherAI.py +405 -0
- webscout/Provider/OPENAI/TwoAI.py +255 -357
- webscout/Provider/OPENAI/__init__.py +148 -40
- webscout/Provider/OPENAI/ai4chat.py +348 -293
- webscout/Provider/OPENAI/akashgpt.py +436 -0
- webscout/Provider/OPENAI/algion.py +303 -0
- webscout/Provider/OPENAI/{exachat.py → ayle.py} +365 -444
- webscout/Provider/OPENAI/base.py +253 -249
- webscout/Provider/OPENAI/cerebras.py +296 -0
- webscout/Provider/OPENAI/chatgpt.py +870 -556
- webscout/Provider/OPENAI/chatsandbox.py +233 -173
- webscout/Provider/OPENAI/deepinfra.py +403 -322
- webscout/Provider/OPENAI/e2b.py +2370 -1414
- webscout/Provider/OPENAI/elmo.py +278 -0
- webscout/Provider/OPENAI/exaai.py +452 -417
- webscout/Provider/OPENAI/freeassist.py +446 -0
- webscout/Provider/OPENAI/gradient.py +448 -0
- webscout/Provider/OPENAI/groq.py +380 -364
- webscout/Provider/OPENAI/hadadxyz.py +292 -0
- webscout/Provider/OPENAI/heckai.py +333 -308
- webscout/Provider/OPENAI/huggingface.py +321 -0
- webscout/Provider/OPENAI/ibm.py +425 -0
- webscout/Provider/OPENAI/llmchat.py +253 -0
- webscout/Provider/OPENAI/llmchatco.py +378 -335
- webscout/Provider/OPENAI/meta.py +541 -0
- webscout/Provider/OPENAI/netwrck.py +374 -357
- webscout/Provider/OPENAI/nvidia.py +317 -0
- webscout/Provider/OPENAI/oivscode.py +348 -287
- webscout/Provider/OPENAI/openrouter.py +328 -0
- webscout/Provider/OPENAI/pydantic_imports.py +1 -172
- webscout/Provider/OPENAI/sambanova.py +397 -0
- webscout/Provider/OPENAI/sonus.py +305 -304
- webscout/Provider/OPENAI/textpollinations.py +370 -339
- webscout/Provider/OPENAI/toolbaz.py +375 -413
- webscout/Provider/OPENAI/typefully.py +419 -355
- webscout/Provider/OPENAI/typliai.py +279 -0
- webscout/Provider/OPENAI/utils.py +314 -318
- webscout/Provider/OPENAI/wisecat.py +359 -387
- webscout/Provider/OPENAI/writecream.py +185 -163
- webscout/Provider/OPENAI/x0gpt.py +462 -365
- webscout/Provider/OPENAI/zenmux.py +380 -0
- webscout/Provider/OpenRouter.py +386 -0
- webscout/Provider/Openai.py +337 -496
- webscout/Provider/PI.py +443 -429
- webscout/Provider/QwenLM.py +346 -254
- webscout/Provider/STT/__init__.py +28 -0
- webscout/Provider/STT/base.py +303 -0
- webscout/Provider/STT/elevenlabs.py +264 -0
- webscout/Provider/Sambanova.py +317 -0
- webscout/Provider/TTI/README.md +69 -82
- webscout/Provider/TTI/__init__.py +37 -7
- webscout/Provider/TTI/base.py +147 -64
- webscout/Provider/TTI/claudeonline.py +393 -0
- webscout/Provider/TTI/magicstudio.py +292 -201
- webscout/Provider/TTI/miragic.py +180 -0
- webscout/Provider/TTI/pollinations.py +331 -221
- webscout/Provider/TTI/together.py +334 -0
- webscout/Provider/TTI/utils.py +14 -11
- webscout/Provider/TTS/README.md +186 -192
- webscout/Provider/TTS/__init__.py +43 -10
- webscout/Provider/TTS/base.py +523 -159
- webscout/Provider/TTS/deepgram.py +286 -156
- webscout/Provider/TTS/elevenlabs.py +189 -111
- webscout/Provider/TTS/freetts.py +218 -0
- webscout/Provider/TTS/murfai.py +288 -113
- webscout/Provider/TTS/openai_fm.py +364 -129
- webscout/Provider/TTS/parler.py +203 -111
- webscout/Provider/TTS/qwen.py +334 -0
- webscout/Provider/TTS/sherpa.py +286 -0
- webscout/Provider/TTS/speechma.py +693 -580
- webscout/Provider/TTS/streamElements.py +275 -333
- webscout/Provider/TTS/utils.py +280 -280
- webscout/Provider/TextPollinationsAI.py +331 -308
- webscout/Provider/TogetherAI.py +450 -0
- webscout/Provider/TwoAI.py +309 -475
- webscout/Provider/TypliAI.py +311 -305
- webscout/Provider/UNFINISHED/ChatHub.py +219 -209
- webscout/Provider/{OPENAI/glider.py → UNFINISHED/ChutesAI.py} +331 -326
- webscout/Provider/{GizAI.py → UNFINISHED/GizAI.py} +300 -295
- webscout/Provider/{Marcus.py → UNFINISHED/Marcus.py} +218 -198
- webscout/Provider/UNFINISHED/Qodo.py +481 -0
- webscout/Provider/{MCPCore.py → UNFINISHED/XenAI.py} +330 -315
- webscout/Provider/UNFINISHED/Youchat.py +347 -330
- webscout/Provider/UNFINISHED/aihumanizer.py +41 -0
- webscout/Provider/UNFINISHED/grammerchecker.py +37 -0
- webscout/Provider/UNFINISHED/liner.py +342 -0
- webscout/Provider/UNFINISHED/liner_api_request.py +246 -263
- webscout/Provider/{samurai.py → UNFINISHED/samurai.py} +231 -224
- webscout/Provider/WiseCat.py +256 -233
- webscout/Provider/WrDoChat.py +390 -370
- webscout/Provider/__init__.py +115 -174
- webscout/Provider/ai4chat.py +181 -174
- webscout/Provider/akashgpt.py +330 -335
- webscout/Provider/cerebras.py +397 -290
- webscout/Provider/cleeai.py +236 -213
- webscout/Provider/elmo.py +291 -283
- webscout/Provider/geminiapi.py +343 -208
- webscout/Provider/julius.py +245 -223
- webscout/Provider/learnfastai.py +333 -325
- webscout/Provider/llama3mitril.py +230 -215
- webscout/Provider/llmchat.py +308 -258
- webscout/Provider/llmchatco.py +321 -306
- webscout/Provider/meta.py +996 -801
- webscout/Provider/oivscode.py +332 -309
- webscout/Provider/searchchat.py +316 -292
- webscout/Provider/sonus.py +264 -258
- webscout/Provider/toolbaz.py +359 -353
- webscout/Provider/turboseek.py +332 -266
- webscout/Provider/typefully.py +262 -202
- webscout/Provider/x0gpt.py +332 -299
- webscout/__init__.py +31 -39
- webscout/__main__.py +5 -5
- webscout/cli.py +585 -524
- webscout/client.py +1497 -70
- webscout/conversation.py +140 -436
- webscout/exceptions.py +383 -362
- webscout/litagent/__init__.py +29 -29
- webscout/litagent/agent.py +492 -455
- webscout/litagent/constants.py +60 -60
- webscout/models.py +505 -181
- webscout/optimizers.py +74 -420
- webscout/prompt_manager.py +376 -288
- webscout/sanitize.py +1514 -0
- webscout/scout/README.md +452 -404
- webscout/scout/__init__.py +8 -8
- webscout/scout/core/__init__.py +7 -7
- webscout/scout/core/crawler.py +330 -210
- webscout/scout/core/scout.py +800 -607
- webscout/scout/core/search_result.py +51 -96
- webscout/scout/core/text_analyzer.py +64 -63
- webscout/scout/core/text_utils.py +412 -277
- webscout/scout/core/web_analyzer.py +54 -52
- webscout/scout/element.py +872 -478
- webscout/scout/parsers/__init__.py +70 -69
- webscout/scout/parsers/html5lib_parser.py +182 -172
- webscout/scout/parsers/html_parser.py +238 -236
- webscout/scout/parsers/lxml_parser.py +203 -178
- webscout/scout/utils.py +38 -37
- webscout/search/__init__.py +47 -0
- webscout/search/base.py +201 -0
- webscout/search/bing_main.py +45 -0
- webscout/search/brave_main.py +92 -0
- webscout/search/duckduckgo_main.py +57 -0
- webscout/search/engines/__init__.py +127 -0
- webscout/search/engines/bing/__init__.py +15 -0
- webscout/search/engines/bing/base.py +35 -0
- webscout/search/engines/bing/images.py +114 -0
- webscout/search/engines/bing/news.py +96 -0
- webscout/search/engines/bing/suggestions.py +36 -0
- webscout/search/engines/bing/text.py +109 -0
- webscout/search/engines/brave/__init__.py +19 -0
- webscout/search/engines/brave/base.py +47 -0
- webscout/search/engines/brave/images.py +213 -0
- webscout/search/engines/brave/news.py +353 -0
- webscout/search/engines/brave/suggestions.py +318 -0
- webscout/search/engines/brave/text.py +167 -0
- webscout/search/engines/brave/videos.py +364 -0
- webscout/search/engines/duckduckgo/__init__.py +25 -0
- webscout/search/engines/duckduckgo/answers.py +80 -0
- webscout/search/engines/duckduckgo/base.py +189 -0
- webscout/search/engines/duckduckgo/images.py +100 -0
- webscout/search/engines/duckduckgo/maps.py +183 -0
- webscout/search/engines/duckduckgo/news.py +70 -0
- webscout/search/engines/duckduckgo/suggestions.py +22 -0
- webscout/search/engines/duckduckgo/text.py +221 -0
- webscout/search/engines/duckduckgo/translate.py +48 -0
- webscout/search/engines/duckduckgo/videos.py +80 -0
- webscout/search/engines/duckduckgo/weather.py +84 -0
- webscout/search/engines/mojeek.py +61 -0
- webscout/search/engines/wikipedia.py +77 -0
- webscout/search/engines/yahoo/__init__.py +41 -0
- webscout/search/engines/yahoo/answers.py +19 -0
- webscout/search/engines/yahoo/base.py +34 -0
- webscout/search/engines/yahoo/images.py +323 -0
- webscout/search/engines/yahoo/maps.py +19 -0
- webscout/search/engines/yahoo/news.py +258 -0
- webscout/search/engines/yahoo/suggestions.py +140 -0
- webscout/search/engines/yahoo/text.py +273 -0
- webscout/search/engines/yahoo/translate.py +19 -0
- webscout/search/engines/yahoo/videos.py +302 -0
- webscout/search/engines/yahoo/weather.py +220 -0
- webscout/search/engines/yandex.py +67 -0
- webscout/search/engines/yep/__init__.py +13 -0
- webscout/search/engines/yep/base.py +34 -0
- webscout/search/engines/yep/images.py +101 -0
- webscout/search/engines/yep/suggestions.py +38 -0
- webscout/search/engines/yep/text.py +99 -0
- webscout/search/http_client.py +172 -0
- webscout/search/results.py +141 -0
- webscout/search/yahoo_main.py +57 -0
- webscout/search/yep_main.py +48 -0
- webscout/server/__init__.py +48 -0
- webscout/server/config.py +78 -0
- webscout/server/exceptions.py +69 -0
- webscout/server/providers.py +286 -0
- webscout/server/request_models.py +131 -0
- webscout/server/request_processing.py +404 -0
- webscout/server/routes.py +642 -0
- webscout/server/server.py +351 -0
- webscout/server/ui_templates.py +1171 -0
- webscout/swiftcli/__init__.py +79 -95
- webscout/swiftcli/core/__init__.py +7 -7
- webscout/swiftcli/core/cli.py +574 -297
- webscout/swiftcli/core/context.py +98 -104
- webscout/swiftcli/core/group.py +268 -241
- webscout/swiftcli/decorators/__init__.py +28 -28
- webscout/swiftcli/decorators/command.py +243 -221
- webscout/swiftcli/decorators/options.py +247 -220
- webscout/swiftcli/decorators/output.py +392 -252
- webscout/swiftcli/exceptions.py +21 -21
- webscout/swiftcli/plugins/__init__.py +9 -9
- webscout/swiftcli/plugins/base.py +134 -135
- webscout/swiftcli/plugins/manager.py +269 -269
- webscout/swiftcli/utils/__init__.py +58 -59
- webscout/swiftcli/utils/formatting.py +251 -252
- webscout/swiftcli/utils/parsing.py +368 -267
- webscout/update_checker.py +280 -136
- webscout/utils.py +28 -14
- webscout/version.py +2 -1
- webscout/version.py.bak +3 -0
- webscout/zeroart/__init__.py +218 -135
- webscout/zeroart/base.py +70 -66
- webscout/zeroart/effects.py +155 -101
- webscout/zeroart/fonts.py +1799 -1239
- webscout-2026.1.19.dist-info/METADATA +638 -0
- webscout-2026.1.19.dist-info/RECORD +312 -0
- {webscout-8.2.9.dist-info → webscout-2026.1.19.dist-info}/WHEEL +1 -1
- {webscout-8.2.9.dist-info → webscout-2026.1.19.dist-info}/entry_points.txt +1 -1
- webscout/DWEBS.py +0 -520
- webscout/Extra/Act.md +0 -309
- webscout/Extra/GitToolkit/gitapi/README.md +0 -110
- webscout/Extra/autocoder/__init__.py +0 -9
- webscout/Extra/autocoder/autocoder.py +0 -1105
- webscout/Extra/autocoder/autocoder_utiles.py +0 -332
- webscout/Extra/gguf.md +0 -430
- webscout/Extra/weather.md +0 -281
- webscout/Litlogger/README.md +0 -10
- webscout/Litlogger/__init__.py +0 -15
- webscout/Litlogger/formats.py +0 -4
- webscout/Litlogger/handlers.py +0 -103
- webscout/Litlogger/levels.py +0 -13
- webscout/Litlogger/logger.py +0 -92
- webscout/Provider/AI21.py +0 -177
- webscout/Provider/AISEARCH/DeepFind.py +0 -254
- webscout/Provider/AISEARCH/felo_search.py +0 -202
- webscout/Provider/AISEARCH/genspark_search.py +0 -324
- webscout/Provider/AISEARCH/hika_search.py +0 -186
- webscout/Provider/AISEARCH/scira_search.py +0 -298
- webscout/Provider/Aitopia.py +0 -316
- webscout/Provider/AllenAI.py +0 -440
- webscout/Provider/Blackboxai.py +0 -791
- webscout/Provider/ChatGPTClone.py +0 -237
- webscout/Provider/ChatGPTGratis.py +0 -194
- webscout/Provider/Cloudflare.py +0 -324
- webscout/Provider/ExaChat.py +0 -358
- webscout/Provider/Flowith.py +0 -217
- webscout/Provider/FreeGemini.py +0 -250
- webscout/Provider/Glider.py +0 -225
- webscout/Provider/HF_space/__init__.py +0 -0
- webscout/Provider/HF_space/qwen_qwen2.py +0 -206
- webscout/Provider/HuggingFaceChat.py +0 -469
- webscout/Provider/Hunyuan.py +0 -283
- webscout/Provider/LambdaChat.py +0 -411
- webscout/Provider/Llama3.py +0 -259
- webscout/Provider/Nemotron.py +0 -218
- webscout/Provider/OLLAMA.py +0 -396
- webscout/Provider/OPENAI/BLACKBOXAI.py +0 -766
- webscout/Provider/OPENAI/Cloudflare.py +0 -378
- webscout/Provider/OPENAI/FreeGemini.py +0 -283
- webscout/Provider/OPENAI/NEMOTRON.py +0 -232
- webscout/Provider/OPENAI/Qwen3.py +0 -283
- webscout/Provider/OPENAI/api.py +0 -969
- webscout/Provider/OPENAI/c4ai.py +0 -373
- webscout/Provider/OPENAI/chatgptclone.py +0 -494
- webscout/Provider/OPENAI/copilot.py +0 -242
- webscout/Provider/OPENAI/flowith.py +0 -162
- webscout/Provider/OPENAI/freeaichat.py +0 -359
- webscout/Provider/OPENAI/mcpcore.py +0 -389
- webscout/Provider/OPENAI/multichat.py +0 -376
- webscout/Provider/OPENAI/opkfc.py +0 -496
- webscout/Provider/OPENAI/scirachat.py +0 -477
- webscout/Provider/OPENAI/standardinput.py +0 -433
- webscout/Provider/OPENAI/typegpt.py +0 -364
- webscout/Provider/OPENAI/uncovrAI.py +0 -463
- webscout/Provider/OPENAI/venice.py +0 -431
- webscout/Provider/OPENAI/yep.py +0 -382
- webscout/Provider/OpenGPT.py +0 -209
- webscout/Provider/Perplexitylabs.py +0 -415
- webscout/Provider/Reka.py +0 -214
- webscout/Provider/StandardInput.py +0 -290
- webscout/Provider/TTI/aiarta.py +0 -365
- webscout/Provider/TTI/artbit.py +0 -0
- webscout/Provider/TTI/fastflux.py +0 -200
- webscout/Provider/TTI/piclumen.py +0 -203
- webscout/Provider/TTI/pixelmuse.py +0 -225
- webscout/Provider/TTS/gesserit.py +0 -128
- webscout/Provider/TTS/sthir.py +0 -94
- webscout/Provider/TeachAnything.py +0 -229
- webscout/Provider/UNFINISHED/puterjs.py +0 -635
- webscout/Provider/UNFINISHED/test_lmarena.py +0 -119
- webscout/Provider/Venice.py +0 -258
- webscout/Provider/VercelAI.py +0 -253
- webscout/Provider/Writecream.py +0 -246
- webscout/Provider/WritingMate.py +0 -269
- webscout/Provider/asksteve.py +0 -220
- webscout/Provider/chatglm.py +0 -215
- webscout/Provider/copilot.py +0 -425
- webscout/Provider/freeaichat.py +0 -285
- webscout/Provider/granite.py +0 -235
- webscout/Provider/hermes.py +0 -266
- webscout/Provider/koala.py +0 -170
- webscout/Provider/lmarena.py +0 -198
- webscout/Provider/multichat.py +0 -364
- webscout/Provider/scira_chat.py +0 -299
- webscout/Provider/scnet.py +0 -243
- webscout/Provider/talkai.py +0 -194
- webscout/Provider/typegpt.py +0 -289
- webscout/Provider/uncovr.py +0 -368
- webscout/Provider/yep.py +0 -389
- webscout/litagent/Readme.md +0 -276
- webscout/litprinter/__init__.py +0 -59
- webscout/swiftcli/Readme.md +0 -323
- webscout/tempid.py +0 -128
- webscout/webscout_search.py +0 -1184
- webscout/webscout_search_async.py +0 -654
- webscout/yep_search.py +0 -347
- webscout/zeroart/README.md +0 -89
- webscout-8.2.9.dist-info/METADATA +0 -1033
- webscout-8.2.9.dist-info/RECORD +0 -289
- {webscout-8.2.9.dist-info → webscout-2026.1.19.dist-info}/licenses/LICENSE.md +0 -0
- {webscout-8.2.9.dist-info → webscout-2026.1.19.dist-info}/top_level.txt +0 -0
webscout/Extra/gguf.md
DELETED
|
@@ -1,430 +0,0 @@
|
|
|
1
|
-
<div align="center">
|
|
2
|
-
<a href="https://github.com/OEvortex/Webscout">
|
|
3
|
-
<img src="https://img.shields.io/badge/WebScout-GGUF%20Converter-blue?style=for-the-badge&logo=python&logoColor=white" alt="GGUF Converter Logo">
|
|
4
|
-
</a>
|
|
5
|
-
|
|
6
|
-
<h1>GGUF Converter</h1>
|
|
7
|
-
|
|
8
|
-
<p><strong>Convert Hugging Face models to GGUF format with advanced quantization options</strong></p>
|
|
9
|
-
|
|
10
|
-
<p>
|
|
11
|
-
Transform large language models from Hugging Face into optimized GGUF format for efficient inference on consumer hardware.
|
|
12
|
-
Balance size, speed, and quality with multiple quantization methods.
|
|
13
|
-
</p>
|
|
14
|
-
|
|
15
|
-
<!-- Badges -->
|
|
16
|
-
<p>
|
|
17
|
-
<a href="https://github.com/ggerganov/llama.cpp"><img src="https://img.shields.io/badge/Powered%20by-llama.cpp-orange?style=flat-square" alt="Powered by llama.cpp"></a>
|
|
18
|
-
<a href="https://huggingface.co/"><img src="https://img.shields.io/badge/Hugging%20Face-compatible-yellow?style=flat-square" alt="Hugging Face compatible"></a>
|
|
19
|
-
<a href="#"><img src="https://img.shields.io/badge/GPU-acceleration-green?style=flat-square" alt="GPU acceleration"></a>
|
|
20
|
-
</p>
|
|
21
|
-
</div>
|
|
22
|
-
|
|
23
|
-
<hr/>
|
|
24
|
-
|
|
25
|
-
## 📋 Table of Contents
|
|
26
|
-
|
|
27
|
-
- [🌟 Features](#-features)
|
|
28
|
-
- [⚙️ Installation](#️-installation)
|
|
29
|
-
- [🛠️ Basic Usage](#️-basic-usage)
|
|
30
|
-
- [🧩 Advanced Options](#-advanced-options)
|
|
31
|
-
- [📊 Quantization Methods](#-quantization-methods)
|
|
32
|
-
- [📏 Size & Quality Comparison](#-size--quality-comparison)
|
|
33
|
-
- [📦 Hardware Requirements](#-hardware-requirements)
|
|
34
|
-
- [⚡ Examples](#-examples)
|
|
35
|
-
- [🔍 Troubleshooting](#-troubleshooting)
|
|
36
|
-
- [🧠 Technical Details](#-technical-details)
|
|
37
|
-
|
|
38
|
-
<hr/>
|
|
39
|
-
|
|
40
|
-
## 🌟 Features
|
|
41
|
-
|
|
42
|
-
<details open>
|
|
43
|
-
<summary><b>Core Capabilities</b></summary>
|
|
44
|
-
<p>
|
|
45
|
-
|
|
46
|
-
* **Multiple Quantization Methods**: Support for various precision levels from 2-bit to 16-bit floating point
|
|
47
|
-
* **Importance Matrix Quantization**: Enhanced precision by focusing bits on the most important weights
|
|
48
|
-
* **Model Splitting**: Split large models into manageable chunks for easier distribution
|
|
49
|
-
* **Hardware Acceleration Detection**: Automatically detects and utilizes CUDA, Metal, OpenCL, Vulkan, and ROCm
|
|
50
|
-
* **Hugging Face Integration**: Direct download from and upload to Hugging Face repositories
|
|
51
|
-
* **README Generation**: Automatically creates documentation for your quantized models
|
|
52
|
-
</p>
|
|
53
|
-
</details>
|
|
54
|
-
|
|
55
|
-
<hr/>
|
|
56
|
-
|
|
57
|
-
## ⚙️ Installation
|
|
58
|
-
|
|
59
|
-
<div class="installation-box">
|
|
60
|
-
<p>The GGUF Converter is included with the WebScout package:</p>
|
|
61
|
-
|
|
62
|
-
```bash
|
|
63
|
-
pip install -U webscout
|
|
64
|
-
```
|
|
65
|
-
</div>
|
|
66
|
-
|
|
67
|
-
<hr/>
|
|
68
|
-
|
|
69
|
-
## 🛠️ Basic Usage
|
|
70
|
-
|
|
71
|
-
The simplest way to convert a model is with the default settings:
|
|
72
|
-
|
|
73
|
-
```bash
|
|
74
|
-
python -m webscout.Extra.gguf convert -m "organization/model-name"
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
This will:
|
|
78
|
-
1. Download the model from Hugging Face
|
|
79
|
-
2. Convert it to GGUF format with q4_k_m quantization (a good balance of size and quality)
|
|
80
|
-
3. Save the converted model in your current directory
|
|
81
|
-
|
|
82
|
-
<hr/>
|
|
83
|
-
|
|
84
|
-
## 🧩 Advanced Options
|
|
85
|
-
|
|
86
|
-
<details open>
|
|
87
|
-
<summary><b>Command Reference</b></summary>
|
|
88
|
-
<p>
|
|
89
|
-
|
|
90
|
-
The full command syntax is:
|
|
91
|
-
|
|
92
|
-
```
|
|
93
|
-
python -m webscout.Extra.gguf convert [OPTIONS]
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
| Option | Description | Default |
|
|
97
|
-
|--------|-------------|---------|
|
|
98
|
-
| `-m, --model-id` | The HuggingFace model ID (e.g., 'OEvortex/HelpingAI-Lite-1.5T') | **Required** |
|
|
99
|
-
| `-u, --username` | Your HuggingFace username for uploads | None |
|
|
100
|
-
| `-t, --token` | Your HuggingFace API token for uploads | None |
|
|
101
|
-
| `-q, --quantization` | Comma-separated quantization methods | "q4_k_m" |
|
|
102
|
-
| `-i, --use-imatrix` | Use importance matrix for quantization | False |
|
|
103
|
-
| `--train-data` | Training data file for imatrix quantization | None |
|
|
104
|
-
| `-s, --split-model` | Split the model into smaller chunks | False |
|
|
105
|
-
| `--split-max-tensors` | Maximum number of tensors per file when splitting | 256 |
|
|
106
|
-
| `--split-max-size` | Maximum file size when splitting (e.g., '256M', '5G') | None |
|
|
107
|
-
</p>
|
|
108
|
-
</details>
|
|
109
|
-
|
|
110
|
-
<details>
|
|
111
|
-
<summary><b>Multiple Quantization Methods</b></summary>
|
|
112
|
-
<p>
|
|
113
|
-
|
|
114
|
-
Apply multiple quantization methods at once:
|
|
115
|
-
|
|
116
|
-
```bash
|
|
117
|
-
python -m webscout.Extra.gguf convert -m "organization/model-name" -q "q4_k_m,q5_k_m"
|
|
118
|
-
```
|
|
119
|
-
|
|
120
|
-
This will create two versions of the model with different quantization methods.
|
|
121
|
-
</p>
|
|
122
|
-
</details>
|
|
123
|
-
|
|
124
|
-
<details>
|
|
125
|
-
<summary><b>Uploading to Hugging Face</b></summary>
|
|
126
|
-
<p>
|
|
127
|
-
|
|
128
|
-
Convert and upload the model to your Hugging Face account:
|
|
129
|
-
|
|
130
|
-
```bash
|
|
131
|
-
python -m webscout.Extra.gguf convert -m "organization/model-name" -u "your-username" -t "your-token"
|
|
132
|
-
```
|
|
133
|
-
|
|
134
|
-
This will create a new repository in your account named `model-name-GGUF` containing the converted model.
|
|
135
|
-
</p>
|
|
136
|
-
</details>
|
|
137
|
-
|
|
138
|
-
<details>
|
|
139
|
-
<summary><b>Importance Matrix Quantization</b></summary>
|
|
140
|
-
<p>
|
|
141
|
-
|
|
142
|
-
Use importance matrix for more efficient quantization:
|
|
143
|
-
|
|
144
|
-
```bash
|
|
145
|
-
python -m webscout.Extra.gguf convert -m "organization/model-name" -i --train-data "train_data.txt"
|
|
146
|
-
```
|
|
147
|
-
|
|
148
|
-
Importance matrix helps focus more bits on weights that matter most for the model's performance.
|
|
149
|
-
</p>
|
|
150
|
-
</details>
|
|
151
|
-
|
|
152
|
-
<details>
|
|
153
|
-
<summary><b>Model Splitting</b></summary>
|
|
154
|
-
<p>
|
|
155
|
-
|
|
156
|
-
Split large models for easier distribution:
|
|
157
|
-
|
|
158
|
-
```bash
|
|
159
|
-
# Split by number of tensors
|
|
160
|
-
python -m webscout.Extra.gguf convert -m "organization/model-name" -s --split-max-tensors 256
|
|
161
|
-
|
|
162
|
-
# Split by file size
|
|
163
|
-
python -m webscout.Extra.gguf convert -m "organization/model-name" -s --split-max-size "2G"
|
|
164
|
-
```
|
|
165
|
-
|
|
166
|
-
This is useful for very large models that may be difficult to distribute as a single file.
|
|
167
|
-
</p>
|
|
168
|
-
</details>
|
|
169
|
-
|
|
170
|
-
<hr/>
|
|
171
|
-
|
|
172
|
-
## 📊 Quantization Methods
|
|
173
|
-
|
|
174
|
-
<details open>
|
|
175
|
-
<summary><b>Standard Methods</b></summary>
|
|
176
|
-
<p>
|
|
177
|
-
|
|
178
|
-
| Method | Description |
|
|
179
|
-
|--------|-------------|
|
|
180
|
-
| `fp16` | 16-bit floating point - maximum accuracy, largest size |
|
|
181
|
-
| `q2_k` | 2-bit quantization (smallest size, lowest accuracy) |
|
|
182
|
-
| `q3_k_l` | 3-bit quantization (large) - balanced for size/accuracy |
|
|
183
|
-
| `q3_k_m` | 3-bit quantization (medium) - good balance for most use cases |
|
|
184
|
-
| `q3_k_s` | 3-bit quantization (small) - optimized for speed |
|
|
185
|
-
| `q4_0` | 4-bit quantization (version 0) - standard 4-bit compression |
|
|
186
|
-
| `q4_1` | 4-bit quantization (version 1) - improved accuracy over q4_0 |
|
|
187
|
-
| `q4_k_m` | 4-bit quantization (medium) - balanced for most models |
|
|
188
|
-
| `q4_k_s` | 4-bit quantization (small) - optimized for speed |
|
|
189
|
-
| `q5_0` | 5-bit quantization (version 0) - high accuracy, larger size |
|
|
190
|
-
| `q5_1` | 5-bit quantization (version 1) - improved accuracy over q5_0 |
|
|
191
|
-
| `q5_k_m` | 5-bit quantization (medium) - best balance for quality/size |
|
|
192
|
-
| `q5_k_s` | 5-bit quantization (small) - optimized for speed |
|
|
193
|
-
| `q6_k` | 6-bit quantization - highest accuracy, larger size |
|
|
194
|
-
| `q8_0` | 8-bit quantization - maximum accuracy, largest size |
|
|
195
|
-
</p>
|
|
196
|
-
</details>
|
|
197
|
-
|
|
198
|
-
<details>
|
|
199
|
-
<summary><b>Importance Matrix Methods</b></summary>
|
|
200
|
-
<p>
|
|
201
|
-
|
|
202
|
-
| Method | Description |
|
|
203
|
-
|--------|-------------|
|
|
204
|
-
| `iq3_m` | 3-bit imatrix quantization (medium) - balanced importance-based |
|
|
205
|
-
| `iq3_xxs` | 3-bit imatrix quantization (extra extra small) - maximum compression |
|
|
206
|
-
| `q4_k_m` | 4-bit imatrix quantization (medium) - balanced importance-based |
|
|
207
|
-
| `q4_k_s` | 4-bit imatrix quantization (small) - optimized for speed |
|
|
208
|
-
| `iq4_nl` | 4-bit imatrix quantization (non-linear) - best accuracy for 4-bit |
|
|
209
|
-
| `iq4_xs` | 4-bit imatrix quantization (extra small) - maximum compression |
|
|
210
|
-
| `q5_k_m` | 5-bit imatrix quantization (medium) - balanced importance-based |
|
|
211
|
-
| `q5_k_s` | 5-bit imatrix quantization (small) - optimized for speed |
|
|
212
|
-
</p>
|
|
213
|
-
</details>
|
|
214
|
-
|
|
215
|
-
<hr/>
|
|
216
|
-
|
|
217
|
-
## 📏 Size & Quality Comparison
|
|
218
|
-
|
|
219
|
-
> **TIP:**
|
|
220
|
-
> When choosing a quantization method, consider the tradeoff between model size and quality. Here's a quick guide:
|
|
221
|
-
|
|
222
|
-
<div class="comparison-table">
|
|
223
|
-
|
|
224
|
-
### 1. Maximum Quality (largest size)
|
|
225
|
-
- **fp16**: 100% of original size, best quality
|
|
226
|
-
- **q8_0**: 50% of original size, nearly identical to fp16
|
|
227
|
-
|
|
228
|
-
### 2. Balanced Quality/Size
|
|
229
|
-
- **q5_k_m with imatrix**: 31% of original size, excellent quality
|
|
230
|
-
- **q4_k_m with imatrix**: 25% of original size, good quality for most use cases
|
|
231
|
-
|
|
232
|
-
### 3. Minimum Size (reduced quality)
|
|
233
|
-
- **q3_k_s**: 18% of original size, acceptable for some tasks
|
|
234
|
-
- **q2_k**: 12% of original size, significantly reduced quality
|
|
235
|
-
</div>
|
|
236
|
-
|
|
237
|
-
<hr/>
|
|
238
|
-
|
|
239
|
-
## 📦 Hardware Requirements
|
|
240
|
-
|
|
241
|
-
Hardware requirements vary based on quantization method and model size:
|
|
242
|
-
|
|
243
|
-
<details open>
|
|
244
|
-
<summary><b>Memory Requirements</b></summary>
|
|
245
|
-
<p>
|
|
246
|
-
|
|
247
|
-
| Quantization | RAM Required |
|
|
248
|
-
|--------------|--------------|
|
|
249
|
-
| fp16 | ~2x model size |
|
|
250
|
-
| q8_0 | ~1x model size |
|
|
251
|
-
| q4_k_m | ~0.5x model size |
|
|
252
|
-
| q2_k | ~0.25x model size |
|
|
253
|
-
|
|
254
|
-
For example, a 7B parameter model requires:
|
|
255
|
-
- fp16: ~14GB RAM
|
|
256
|
-
- q4_k_m: ~3.5GB RAM
|
|
257
|
-
</p>
|
|
258
|
-
</details>
|
|
259
|
-
|
|
260
|
-
<details>
|
|
261
|
-
<summary><b>Hardware Acceleration</b></summary>
|
|
262
|
-
<p>
|
|
263
|
-
|
|
264
|
-
The converter automatically detects and utilizes:
|
|
265
|
-
- **CUDA** for NVIDIA GPUs
|
|
266
|
-
- **Metal** for Apple Silicon and AMD GPUs on macOS
|
|
267
|
-
- **OpenCL** for cross-platform GPU acceleration
|
|
268
|
-
- **Vulkan** for cross-platform GPU acceleration
|
|
269
|
-
- **ROCm** for AMD GPUs on Linux
|
|
270
|
-
|
|
271
|
-
If no acceleration is available, the converter will use CPU-only mode.
|
|
272
|
-
</p>
|
|
273
|
-
</details>
|
|
274
|
-
|
|
275
|
-
> **NOTE:**
|
|
276
|
-
> **GPU acceleration is highly recommended** for converting larger models (13B+).
|
|
277
|
-
|
|
278
|
-
<hr/>
|
|
279
|
-
|
|
280
|
-
## ⚡ Examples
|
|
281
|
-
|
|
282
|
-
<details open>
|
|
283
|
-
<summary><b>Basic Conversion with Upload</b></summary>
|
|
284
|
-
<p>
|
|
285
|
-
|
|
286
|
-
```bash
|
|
287
|
-
python -m webscout.Extra.gguf convert \
|
|
288
|
-
-m "mistralai/Mistral-7B-Instruct-v0.2" \
|
|
289
|
-
-q "q4_k_m" \
|
|
290
|
-
-u "your-username" \
|
|
291
|
-
-t "your-token"
|
|
292
|
-
```
|
|
293
|
-
|
|
294
|
-
This will convert Mistral-7B to q4_k_m quantization and upload it to your Hugging Face account.
|
|
295
|
-
</p>
|
|
296
|
-
</details>
|
|
297
|
-
|
|
298
|
-
<details>
|
|
299
|
-
<summary><b>Multiple Quantizations with Importance Matrix</b></summary>
|
|
300
|
-
<p>
|
|
301
|
-
|
|
302
|
-
```bash
|
|
303
|
-
python -m webscout.Extra.gguf convert \
|
|
304
|
-
-m "mistralai/Mistral-7B-Instruct-v0.2" \
|
|
305
|
-
-q "q4_k_m,q5_k_m" \
|
|
306
|
-
-i \
|
|
307
|
-
--train-data "my_training_data.txt"
|
|
308
|
-
```
|
|
309
|
-
|
|
310
|
-
This will create two versions of the model with different quantizations, both using importance matrix.
|
|
311
|
-
</p>
|
|
312
|
-
</details>
|
|
313
|
-
|
|
314
|
-
<details>
|
|
315
|
-
<summary><b>Split Large Model</b></summary>
|
|
316
|
-
<p>
|
|
317
|
-
|
|
318
|
-
```bash
|
|
319
|
-
python -m webscout.Extra.gguf convert \
|
|
320
|
-
-m "meta-llama/Llama-2-70b-chat-hf" \
|
|
321
|
-
-q "q4_k_m" \
|
|
322
|
-
-s \
|
|
323
|
-
--split-max-size "4G"
|
|
324
|
-
```
|
|
325
|
-
|
|
326
|
-
This will split the large 70B model into multiple files, each no larger than 4GB.
|
|
327
|
-
</p>
|
|
328
|
-
</details>
|
|
329
|
-
|
|
330
|
-
<hr/>
|
|
331
|
-
|
|
332
|
-
## 🔍 Troubleshooting
|
|
333
|
-
|
|
334
|
-
<details>
|
|
335
|
-
<summary><b>Missing Dependencies</b></summary>
|
|
336
|
-
<p>
|
|
337
|
-
|
|
338
|
-
```
|
|
339
|
-
Error: Missing required dependencies: git, cmake
|
|
340
|
-
```
|
|
341
|
-
|
|
342
|
-
**Solution:** Install the required system dependencies:
|
|
343
|
-
|
|
344
|
-
- **Ubuntu/Debian:** `sudo apt install git cmake python3-dev build-essential`
|
|
345
|
-
- **macOS:** `brew install git cmake`
|
|
346
|
-
- **Windows:** Install Git and CMake from their respective websites
|
|
347
|
-
|
|
348
|
-
For hardware acceleration, install relevant drivers (CUDA, ROCm, etc.)
|
|
349
|
-
</p>
|
|
350
|
-
</details>
|
|
351
|
-
|
|
352
|
-
<details>
|
|
353
|
-
<summary><b>Out of Memory</b></summary>
|
|
354
|
-
<p>
|
|
355
|
-
|
|
356
|
-
```
|
|
357
|
-
Error: CUDA out of memory
|
|
358
|
-
```
|
|
359
|
-
|
|
360
|
-
**Solutions:**
|
|
361
|
-
1. Try a lower precision quantization method: `q3_k_s` or `q2_k`
|
|
362
|
-
2. Enable model splitting with `-s`
|
|
363
|
-
3. Increase your system's swap space/virtual memory
|
|
364
|
-
4. Use a machine with more RAM
|
|
365
|
-
</p>
|
|
366
|
-
</details>
|
|
367
|
-
|
|
368
|
-
<details>
|
|
369
|
-
<summary><b>Download Failures</b></summary>
|
|
370
|
-
<p>
|
|
371
|
-
|
|
372
|
-
```
|
|
373
|
-
Error: Failed to download model
|
|
374
|
-
```
|
|
375
|
-
|
|
376
|
-
**Solutions:**
|
|
377
|
-
1. Check your internet connection
|
|
378
|
-
2. Verify you have access to the model on Hugging Face
|
|
379
|
-
3. Try using a Hugging Face token with `-t`
|
|
380
|
-
4. Check if the model repository exists and is public
|
|
381
|
-
</p>
|
|
382
|
-
</details>
|
|
383
|
-
|
|
384
|
-
<details>
|
|
385
|
-
<summary><b>Build Failures</b></summary>
|
|
386
|
-
<p>
|
|
387
|
-
|
|
388
|
-
```
|
|
389
|
-
Error: Failed to build llama.cpp
|
|
390
|
-
```
|
|
391
|
-
|
|
392
|
-
**Solutions:**
|
|
393
|
-
1. Check if you have a C++ compiler installed
|
|
394
|
-
2. Ensure you have sufficient disk space
|
|
395
|
-
3. Try building with CPU-only mode if GPU builds fail
|
|
396
|
-
4. Update your GPU drivers if using acceleration
|
|
397
|
-
</p>
|
|
398
|
-
</details>
|
|
399
|
-
|
|
400
|
-
<hr/>
|
|
401
|
-
|
|
402
|
-
## 🧠 Technical Details
|
|
403
|
-
|
|
404
|
-
The converter works by following these steps:
|
|
405
|
-
|
|
406
|
-
1. **Setup**: Clone and build llama.cpp with appropriate hardware acceleration
|
|
407
|
-
2. **Download**: Fetch the model from Hugging Face
|
|
408
|
-
3. **Convert**: Transform the model to fp16 GGUF format
|
|
409
|
-
4. **Quantize**: Apply the requested quantization methods
|
|
410
|
-
5. **Split**: Optionally split the model into smaller chunks
|
|
411
|
-
6. **Upload**: If credentials are provided, upload to Hugging Face
|
|
412
|
-
|
|
413
|
-
<details>
|
|
414
|
-
<summary><b>Advanced Configuration</b></summary>
|
|
415
|
-
<p>
|
|
416
|
-
|
|
417
|
-
For special cases, you may want to modify llama.cpp's build parameters. The converter automatically detects and enables available hardware acceleration, but you can also build llama.cpp manually with custom options before running the converter.
|
|
418
|
-
</p>
|
|
419
|
-
</details>
|
|
420
|
-
|
|
421
|
-
<hr/>
|
|
422
|
-
|
|
423
|
-
<div align="center">
|
|
424
|
-
<p>
|
|
425
|
-
<a href="https://github.com/OEvortex/Webscout">🔗 Part of the WebScout Project</a> |
|
|
426
|
-
<a href="https://github.com/ggerganov/llama.cpp">🚀 Powered by llama.cpp</a>
|
|
427
|
-
</p>
|
|
428
|
-
|
|
429
|
-
<p>Made with ❤️ by the Webscout team</p>
|
|
430
|
-
</div>
|
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>
|