webscout 8.3.1__tar.gz → 8.3.2__tar.gz
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-8.3.1/webscout.egg-info → webscout-8.3.2}/PKG-INFO +41 -11
- {webscout-8.3.1 → webscout-8.3.2}/README.md +38 -10
- {webscout-8.3.1 → webscout-8.3.2}/pyproject.toml +3 -1
- {webscout-8.3.1 → webscout-8.3.2}/webscout/AIutel.py +46 -53
- webscout-8.3.2/webscout/Bing_search.py +418 -0
- webscout-8.3.2/webscout/Extra/gguf.py +1213 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/genspark_search.py +7 -7
- webscout-8.3.2/webscout/Provider/GeminiProxy.py +140 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/MCPCore.py +78 -75
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/BLACKBOXAI.py +1 -4
- webscout-8.3.2/webscout/Provider/OPENAI/GeminiProxy.py +328 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/README.md +2 -0
- webscout-8.3.2/webscout/Provider/OPENAI/README_AUTOPROXY.md +238 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/__init__.py +15 -1
- webscout-8.3.2/webscout/Provider/OPENAI/autoproxy.py +332 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/base.py +15 -5
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/e2b.py +0 -1
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/mcpcore.py +109 -70
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/scirachat.py +59 -51
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/toolbaz.py +2 -9
- webscout-8.3.2/webscout/Provider/OPENAI/xenai.py +514 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/yep.py +8 -2
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/__init__.py +1 -0
- webscout-8.3.2/webscout/Provider/TTI/bing.py +231 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/speechma.py +45 -39
- webscout-8.3.2/webscout/Provider/TogetherAI.py +366 -0
- webscout-8.3.2/webscout/Provider/XenAI.py +324 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/__init__.py +8 -3
- webscout-8.3.2/webscout/Provider/deepseek_assistant.py +378 -0
- webscout-8.3.2/webscout/auth/__init__.py +44 -0
- webscout-8.3.2/webscout/auth/api_key_manager.py +189 -0
- webscout-8.3.2/webscout/auth/auth_system.py +100 -0
- webscout-8.3.2/webscout/auth/config.py +76 -0
- webscout-8.3.2/webscout/auth/database.py +400 -0
- webscout-8.3.2/webscout/auth/exceptions.py +67 -0
- webscout-8.3.2/webscout/auth/middleware.py +248 -0
- webscout-8.3.2/webscout/auth/models.py +130 -0
- webscout-8.3.2/webscout/auth/providers.py +257 -0
- webscout-8.3.2/webscout/auth/rate_limiter.py +254 -0
- webscout-8.3.2/webscout/auth/request_models.py +127 -0
- webscout-8.3.2/webscout/auth/request_processing.py +226 -0
- webscout-8.3.2/webscout/auth/routes.py +526 -0
- webscout-8.3.2/webscout/auth/schemas.py +103 -0
- webscout-8.3.2/webscout/auth/server.py +312 -0
- webscout-8.3.2/webscout/auth/static/favicon.svg +11 -0
- webscout-8.3.2/webscout/auth/swagger_ui.py +203 -0
- webscout-8.3.2/webscout/auth/templates/components/authentication.html +237 -0
- webscout-8.3.2/webscout/auth/templates/components/base.html +103 -0
- webscout-8.3.2/webscout/auth/templates/components/endpoints.html +750 -0
- webscout-8.3.2/webscout/auth/templates/components/examples.html +491 -0
- webscout-8.3.2/webscout/auth/templates/components/footer.html +75 -0
- webscout-8.3.2/webscout/auth/templates/components/header.html +27 -0
- webscout-8.3.2/webscout/auth/templates/components/models.html +286 -0
- webscout-8.3.2/webscout/auth/templates/components/navigation.html +70 -0
- webscout-8.3.2/webscout/auth/templates/static/api.js +455 -0
- webscout-8.3.2/webscout/auth/templates/static/icons.js +168 -0
- webscout-8.3.2/webscout/auth/templates/static/main.js +784 -0
- webscout-8.3.2/webscout/auth/templates/static/particles.js +201 -0
- webscout-8.3.2/webscout/auth/templates/static/styles.css +3353 -0
- webscout-8.3.2/webscout/auth/templates/static/ui.js +374 -0
- webscout-8.3.2/webscout/auth/templates/swagger_ui.html +170 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/client.py +49 -3
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/scout.py +104 -26
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/element.py +139 -18
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/core/cli.py +14 -3
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/decorators/output.py +59 -9
- {webscout-8.3.1 → webscout-8.3.2}/webscout/update_checker.py +31 -49
- webscout-8.3.2/webscout/version.py +2 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/webscout_search.py +4 -12
- {webscout-8.3.1 → webscout-8.3.2}/webscout/webscout_search_async.py +3 -10
- {webscout-8.3.1 → webscout-8.3.2}/webscout/yep_search.py +2 -11
- {webscout-8.3.1 → webscout-8.3.2/webscout.egg-info}/PKG-INFO +41 -11
- {webscout-8.3.1 → webscout-8.3.2}/webscout.egg-info/SOURCES.txt +82 -6
- {webscout-8.3.1 → webscout-8.3.2}/webscout.egg-info/entry_points.txt +1 -1
- {webscout-8.3.1 → webscout-8.3.2}/webscout.egg-info/requires.txt +2 -0
- webscout-8.3.1/webscout/Extra/gguf.py +0 -684
- webscout-8.3.1/webscout/Provider/HF_space/__init__.py +0 -0
- webscout-8.3.1/webscout/Provider/HF_space/qwen_qwen2.py +0 -206
- webscout-8.3.1/webscout/Provider/OPENAI/api.py +0 -1320
- webscout-8.3.1/webscout/Provider/OPENAI/autoproxy.py +0 -39
- webscout-8.3.1/webscout/version.py +0 -2
- {webscout-8.3.1 → webscout-8.3.2}/LEGAL_NOTICE.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/LICENSE.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/MANIFEST.in +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/changelog.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/setup.cfg +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/AIauto.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/AIbase.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Bard.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/DWEBS.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/Act.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/GitToolkit/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/GitToolkit/gitapi/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/GitToolkit/gitapi/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/GitToolkit/gitapi/repository.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/GitToolkit/gitapi/user.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/GitToolkit/gitapi/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/YTdownloader.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/transcriber.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/channel.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/errors.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/extras.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/https.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/patterns.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/playlist.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/pool.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/query.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/stream.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/YTToolkit/ytapi/video.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/autocoder/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/autocoder/autocoder.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/autocoder/autocoder_utiles.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/gguf.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/async_utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/base.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/cli.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/emailnator.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/mail_tm.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/tempmail/temp_mail_io.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/weather.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/weather.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Extra/weather_ascii.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Litlogger/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Litlogger/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Litlogger/formats.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Litlogger/handlers.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Litlogger/levels.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Litlogger/logger.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AI21.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/DeepFind.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/Perplexity.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/felo_search.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/hika_search.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/iask_search.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/monica_search.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/scira_search.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AISEARCH/webpilotai_search.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Aitopia.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/AllenAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Andi.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Blackboxai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/ChatGPTClone.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/ChatSandbox.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Cloudflare.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Cohere.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Deepinfra.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/ExaAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/ExaChat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Flowith.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/FreeGemini.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Gemini.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/GithubChat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/GizAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Glider.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Groq.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/HeckAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/HuggingFaceChat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Hunyuan.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Jadve.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Koboldai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/LambdaChat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Llama3.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Marcus.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Nemotron.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Netwrck.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OLLAMA.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/Cloudflare.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/FalconH1.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/FreeGemini.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/NEMOTRON.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/PI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/Qwen3.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/TogetherAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/TwoAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/ai4chat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/c4ai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/chatgpt.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/chatgptclone.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/chatsandbox.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/copilot.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/deepinfra.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/exaai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/exachat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/flowith.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/freeaichat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/glider.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/groq.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/heckai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/llmchatco.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/multichat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/netwrck.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/oivscode.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/opkfc.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/pydantic_imports.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/sonus.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/standardinput.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/textpollinations.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/typefully.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/typegpt.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/uncovrAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/venice.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/wisecat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/writecream.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OPENAI/x0gpt.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/OpenGPT.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Openai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/PI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Perplexitylabs.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/QwenLM.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Reka.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/STT/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/STT/base.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/STT/elevenlabs.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/StandardInput.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/aiarta.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/base.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/fastflux.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/gpt1image.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/imagen.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/magicstudio.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/piclumen.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/pixelmuse.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/pollinations.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/together.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTI/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/base.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/deepgram.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/elevenlabs.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/freetts.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/gesserit.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/murfai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/openai_fm.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/parler.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/sthir.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/streamElements.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TTS/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TeachAnything.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TextPollinationsAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TwoAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/TypliAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/ChatHub.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/ChutesAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/Youchat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/fetch_together_models.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/liner_api_request.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/puterjs.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/UNFINISHED/test_lmarena.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Venice.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/VercelAI.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/WiseCat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/WrDoChat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/Writecream.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/WritingMate.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/ai4chat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/akashgpt.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/asksteve.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/cerebras.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/chatglm.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/cleeai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/copilot.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/elmo.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/freeaichat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/geminiapi.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/granite.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/hermes.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/julius.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/koala.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/learnfastai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/llama3mitril.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/llmchat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/llmchatco.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/lmarena.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/meta.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/multichat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/oivscode.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/samurai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/scira_chat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/scnet.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/searchchat.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/sonus.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/talkai.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/toolbaz.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/turboseek.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/typefully.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/typegpt.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/uncovr.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/x0gpt.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/Provider/yep.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/__main__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/cli.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/conversation.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/exceptions.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/litagent/Readme.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/litagent/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/litagent/agent.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/litagent/constants.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/litprinter/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/models.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/optimizers.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/prompt_manager.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/crawler.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/search_result.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/text_analyzer.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/text_utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/core/web_analyzer.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/parsers/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/parsers/html5lib_parser.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/parsers/html_parser.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/parsers/lxml_parser.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/scout/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/Readme.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/core/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/core/context.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/core/group.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/decorators/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/decorators/command.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/decorators/options.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/exceptions.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/plugins/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/plugins/base.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/plugins/manager.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/utils/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/utils/formatting.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/swiftcli/utils/parsing.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/tempid.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/utils.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/zeroart/README.md +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/zeroart/__init__.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/zeroart/base.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/zeroart/effects.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout/zeroart/fonts.py +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout.egg-info/dependency_links.txt +0 -0
- {webscout-8.3.1 → webscout-8.3.2}/webscout.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: webscout
|
|
3
|
-
Version: 8.3.
|
|
3
|
+
Version: 8.3.2
|
|
4
4
|
Summary: Search for anything using Google, DuckDuckGo, phind.com, Contains AI models, can transcribe yt videos, temporary email and phone number generation, has TTS support, webai (terminal gpt and open interpreter) and offline LLMs and more
|
|
5
5
|
Author-email: OEvortex <helpingai5@gmail.com>
|
|
6
6
|
License: HelpingAI
|
|
@@ -71,6 +71,8 @@ Requires-Dist: uvicorn[standard]; extra == "api"
|
|
|
71
71
|
Requires-Dist: pydantic; extra == "api"
|
|
72
72
|
Requires-Dist: python-multipart; extra == "api"
|
|
73
73
|
Requires-Dist: tiktoken; extra == "api"
|
|
74
|
+
Requires-Dist: motor; extra == "api"
|
|
75
|
+
Requires-Dist: jinja2; extra == "api"
|
|
74
76
|
Dynamic: license-file
|
|
75
77
|
|
|
76
78
|
<div align="center">
|
|
@@ -227,14 +229,14 @@ uv add "webscout[api]"
|
|
|
227
229
|
uv run webscout --help
|
|
228
230
|
|
|
229
231
|
# Run with API dependencies
|
|
230
|
-
uv run --extra api webscout-server
|
|
232
|
+
uv run webscout --extra api webscout-server
|
|
231
233
|
|
|
232
234
|
# Install as a UV tool for global access
|
|
233
235
|
uv tool install webscout
|
|
234
236
|
|
|
235
237
|
# Use UV tool commands
|
|
236
238
|
webscout --help
|
|
237
|
-
webscout-server
|
|
239
|
+
webscout-server
|
|
238
240
|
```
|
|
239
241
|
|
|
240
242
|
### 🔧 Development Installation
|
|
@@ -308,7 +310,7 @@ uv run --extra api webscout-server
|
|
|
308
310
|
```bash
|
|
309
311
|
# Traditional Python module execution
|
|
310
312
|
python -m webscout --help
|
|
311
|
-
python -m webscout
|
|
313
|
+
python -m webscout-server
|
|
312
314
|
```
|
|
313
315
|
|
|
314
316
|
<details open>
|
|
@@ -403,13 +405,19 @@ webscout-server --port 8080
|
|
|
403
405
|
# Start with API key authentication
|
|
404
406
|
webscout-server --api-key "your-secret-key"
|
|
405
407
|
|
|
408
|
+
# Start in no-auth mode using command line flag (no API key required)
|
|
409
|
+
webscout-server --no-auth
|
|
410
|
+
|
|
411
|
+
# Start in no-auth mode using environment variable
|
|
412
|
+
$env:WEBSCOUT_NO_AUTH='true'; webscout-server
|
|
413
|
+
|
|
406
414
|
# Specify a default provider
|
|
407
415
|
webscout-server --default-provider "Claude"
|
|
408
416
|
|
|
409
417
|
# Run in debug mode
|
|
410
418
|
webscout-server --debug
|
|
411
419
|
|
|
412
|
-
# Get help for all options
|
|
420
|
+
# Get help for all options (includes authentication options)
|
|
413
421
|
webscout-server --help
|
|
414
422
|
```
|
|
415
423
|
|
|
@@ -420,17 +428,36 @@ webscout-server --help
|
|
|
420
428
|
uv run --extra api webscout-server
|
|
421
429
|
|
|
422
430
|
# Using Python module
|
|
423
|
-
python -m webscout.
|
|
431
|
+
python -m webscout.auth.server
|
|
432
|
+
```
|
|
433
|
+
|
|
434
|
+
#### Environment Variables
|
|
435
|
+
|
|
436
|
+
Webscout server supports configuration through environment variables:
|
|
424
437
|
|
|
425
|
-
|
|
426
|
-
|
|
438
|
+
```bash
|
|
439
|
+
# Start server in no-auth mode (no API key required)
|
|
440
|
+
$env:WEBSCOUT_NO_AUTH='true'; webscout-server
|
|
441
|
+
|
|
442
|
+
# Disable rate limiting
|
|
443
|
+
$env:WEBSCOUT_NO_RATE_LIMIT='true'; webscout-server
|
|
444
|
+
|
|
445
|
+
# Start with custom port using environment variable
|
|
446
|
+
$env:WEBSCOUT_PORT='7860'; webscout-server
|
|
427
447
|
```
|
|
428
448
|
|
|
449
|
+
For a complete list of supported environment variables and Docker deployment options, see [DOCKER.md](DOCKER.md).
|
|
450
|
+
|
|
451
|
+
|
|
429
452
|
#### From Python Code
|
|
430
453
|
|
|
454
|
+
> **Recommended:**
|
|
455
|
+
> Use `start_server` from `webscout.client` for the simplest programmatic startup.
|
|
456
|
+
> For advanced control (custom host, debug, etc.), use `run_api`.
|
|
457
|
+
|
|
431
458
|
```python
|
|
432
|
-
# Method 1: Using the helper function
|
|
433
|
-
from webscout.client import start_server
|
|
459
|
+
# Method 1: Using the helper function (recommended)
|
|
460
|
+
from webscout.client import start_server
|
|
434
461
|
|
|
435
462
|
# Start with default settings
|
|
436
463
|
start_server()
|
|
@@ -438,7 +465,10 @@ start_server()
|
|
|
438
465
|
# Start with custom settings
|
|
439
466
|
start_server(port=8080, api_key="your-secret-key", default_provider="Claude")
|
|
440
467
|
|
|
441
|
-
#
|
|
468
|
+
# Start in no-auth mode (no API key required)
|
|
469
|
+
start_server(no_auth=True)
|
|
470
|
+
|
|
471
|
+
# Method 2: Advanced usage with run_api
|
|
442
472
|
from webscout.client import run_api
|
|
443
473
|
|
|
444
474
|
run_api(
|
|
@@ -152,14 +152,14 @@ uv add "webscout[api]"
|
|
|
152
152
|
uv run webscout --help
|
|
153
153
|
|
|
154
154
|
# Run with API dependencies
|
|
155
|
-
uv run --extra api webscout-server
|
|
155
|
+
uv run webscout --extra api webscout-server
|
|
156
156
|
|
|
157
157
|
# Install as a UV tool for global access
|
|
158
158
|
uv tool install webscout
|
|
159
159
|
|
|
160
160
|
# Use UV tool commands
|
|
161
161
|
webscout --help
|
|
162
|
-
webscout-server
|
|
162
|
+
webscout-server
|
|
163
163
|
```
|
|
164
164
|
|
|
165
165
|
### 🔧 Development Installation
|
|
@@ -233,7 +233,7 @@ uv run --extra api webscout-server
|
|
|
233
233
|
```bash
|
|
234
234
|
# Traditional Python module execution
|
|
235
235
|
python -m webscout --help
|
|
236
|
-
python -m webscout
|
|
236
|
+
python -m webscout-server
|
|
237
237
|
```
|
|
238
238
|
|
|
239
239
|
<details open>
|
|
@@ -328,13 +328,19 @@ webscout-server --port 8080
|
|
|
328
328
|
# Start with API key authentication
|
|
329
329
|
webscout-server --api-key "your-secret-key"
|
|
330
330
|
|
|
331
|
+
# Start in no-auth mode using command line flag (no API key required)
|
|
332
|
+
webscout-server --no-auth
|
|
333
|
+
|
|
334
|
+
# Start in no-auth mode using environment variable
|
|
335
|
+
$env:WEBSCOUT_NO_AUTH='true'; webscout-server
|
|
336
|
+
|
|
331
337
|
# Specify a default provider
|
|
332
338
|
webscout-server --default-provider "Claude"
|
|
333
339
|
|
|
334
340
|
# Run in debug mode
|
|
335
341
|
webscout-server --debug
|
|
336
342
|
|
|
337
|
-
# Get help for all options
|
|
343
|
+
# Get help for all options (includes authentication options)
|
|
338
344
|
webscout-server --help
|
|
339
345
|
```
|
|
340
346
|
|
|
@@ -345,17 +351,36 @@ webscout-server --help
|
|
|
345
351
|
uv run --extra api webscout-server
|
|
346
352
|
|
|
347
353
|
# Using Python module
|
|
348
|
-
python -m webscout.
|
|
354
|
+
python -m webscout.auth.server
|
|
355
|
+
```
|
|
356
|
+
|
|
357
|
+
#### Environment Variables
|
|
358
|
+
|
|
359
|
+
Webscout server supports configuration through environment variables:
|
|
349
360
|
|
|
350
|
-
|
|
351
|
-
|
|
361
|
+
```bash
|
|
362
|
+
# Start server in no-auth mode (no API key required)
|
|
363
|
+
$env:WEBSCOUT_NO_AUTH='true'; webscout-server
|
|
364
|
+
|
|
365
|
+
# Disable rate limiting
|
|
366
|
+
$env:WEBSCOUT_NO_RATE_LIMIT='true'; webscout-server
|
|
367
|
+
|
|
368
|
+
# Start with custom port using environment variable
|
|
369
|
+
$env:WEBSCOUT_PORT='7860'; webscout-server
|
|
352
370
|
```
|
|
353
371
|
|
|
372
|
+
For a complete list of supported environment variables and Docker deployment options, see [DOCKER.md](DOCKER.md).
|
|
373
|
+
|
|
374
|
+
|
|
354
375
|
#### From Python Code
|
|
355
376
|
|
|
377
|
+
> **Recommended:**
|
|
378
|
+
> Use `start_server` from `webscout.client` for the simplest programmatic startup.
|
|
379
|
+
> For advanced control (custom host, debug, etc.), use `run_api`.
|
|
380
|
+
|
|
356
381
|
```python
|
|
357
|
-
# Method 1: Using the helper function
|
|
358
|
-
from webscout.client import start_server
|
|
382
|
+
# Method 1: Using the helper function (recommended)
|
|
383
|
+
from webscout.client import start_server
|
|
359
384
|
|
|
360
385
|
# Start with default settings
|
|
361
386
|
start_server()
|
|
@@ -363,7 +388,10 @@ start_server()
|
|
|
363
388
|
# Start with custom settings
|
|
364
389
|
start_server(port=8080, api_key="your-secret-key", default_provider="Claude")
|
|
365
390
|
|
|
366
|
-
#
|
|
391
|
+
# Start in no-auth mode (no API key required)
|
|
392
|
+
start_server(no_auth=True)
|
|
393
|
+
|
|
394
|
+
# Method 2: Advanced usage with run_api
|
|
367
395
|
from webscout.client import run_api
|
|
368
396
|
|
|
369
397
|
run_api(
|
|
@@ -78,7 +78,7 @@ dependencies = [
|
|
|
78
78
|
[project.scripts]
|
|
79
79
|
WEBS = "webscout.cli:main"
|
|
80
80
|
webscout = "webscout.cli:main"
|
|
81
|
-
webscout-server = "webscout.
|
|
81
|
+
webscout-server = "webscout.auth.server:main" # Instantly start the OpenAI-compatible API server
|
|
82
82
|
|
|
83
83
|
[project.urls]
|
|
84
84
|
Source = "https://github.com/OE-LUCIFER/Webscout"
|
|
@@ -96,6 +96,8 @@ api = [
|
|
|
96
96
|
"pydantic",
|
|
97
97
|
"python-multipart",
|
|
98
98
|
"tiktoken", # Added tiktoken for token counting support
|
|
99
|
+
"motor", # MongoDB async driver for enhanced authentication
|
|
100
|
+
"jinja2", # Template engine for custom Swagger UI
|
|
99
101
|
]
|
|
100
102
|
|
|
101
103
|
[tool.setuptools]
|
|
@@ -277,69 +277,50 @@ def _sanitize_stream_sync(
|
|
|
277
277
|
processing_active = start_marker is None
|
|
278
278
|
buffer = ""
|
|
279
279
|
found_start = False if start_marker else True
|
|
280
|
+
line_iterator: Iterable[str]
|
|
280
281
|
|
|
281
|
-
# Fast path for single string processing
|
|
282
282
|
if isinstance(data, str):
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
processed_item = json.loads(data)
|
|
290
|
-
except Exception as e:
|
|
291
|
-
if error_handler:
|
|
292
|
-
try:
|
|
293
|
-
handled = error_handler(e, data)
|
|
294
|
-
if handled is not None:
|
|
295
|
-
processed_item = handled
|
|
296
|
-
|
|
297
|
-
except Exception:
|
|
298
|
-
pass
|
|
299
|
-
if processed_item is None:
|
|
300
|
-
processed_item = data if yield_raw_on_error else None
|
|
283
|
+
# If data is a string, decide whether to split it into lines
|
|
284
|
+
# or treat it as an iterable containing a single chunk.
|
|
285
|
+
temp_lines: List[str]
|
|
286
|
+
if line_delimiter is None: # Default: split by newlines if present
|
|
287
|
+
if '\n' in data or '\r' in data:
|
|
288
|
+
temp_lines = data.splitlines()
|
|
301
289
|
else:
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
pass
|
|
314
|
-
else:
|
|
315
|
-
yield processed_item
|
|
316
|
-
return
|
|
317
|
-
|
|
318
|
-
# Stream processing path
|
|
319
|
-
if not hasattr(data, '__iter__'):
|
|
320
|
-
raise TypeError(f"Input must be a string or an iterable, not {type(data).__name__}")
|
|
321
|
-
|
|
322
|
-
try:
|
|
323
|
-
iterator = iter(data)
|
|
324
|
-
first_item = next(iterator, None)
|
|
325
|
-
if first_item is None:
|
|
290
|
+
temp_lines = [data] # Treat as a single line/chunk
|
|
291
|
+
elif line_delimiter in data: # Custom delimiter found in string
|
|
292
|
+
temp_lines = data.split(line_delimiter)
|
|
293
|
+
else: # Custom delimiter not found, or string is effectively a single segment
|
|
294
|
+
temp_lines = [data]
|
|
295
|
+
line_iterator = iter(temp_lines)
|
|
296
|
+
elif hasattr(data, '__iter__'): # data is an iterable (but not a string)
|
|
297
|
+
_iter = iter(data)
|
|
298
|
+
first_item = next(_iter, None)
|
|
299
|
+
|
|
300
|
+
if first_item is None: # Iterable was empty
|
|
326
301
|
return
|
|
302
|
+
|
|
327
303
|
from itertools import chain
|
|
328
|
-
|
|
304
|
+
# Reconstruct the full iterable including the first_item
|
|
305
|
+
stream_input_iterable = chain([first_item], _iter)
|
|
329
306
|
|
|
330
|
-
# Determine if we're dealing with bytes or strings
|
|
331
307
|
if isinstance(first_item, bytes):
|
|
308
|
+
# Ensure stream_input_iterable is typed as Iterable[bytes] for _decode_byte_stream
|
|
332
309
|
line_iterator = _decode_byte_stream(
|
|
333
|
-
|
|
310
|
+
stream_input_iterable, # type: ignore
|
|
334
311
|
encoding=encoding,
|
|
335
312
|
errors=encoding_errors,
|
|
336
313
|
buffer_size=buffer_size
|
|
337
314
|
)
|
|
338
315
|
elif isinstance(first_item, str):
|
|
339
|
-
|
|
316
|
+
# Ensure stream_input_iterable is typed as Iterable[str]
|
|
317
|
+
line_iterator = stream_input_iterable # type: ignore
|
|
340
318
|
else:
|
|
341
|
-
raise TypeError(f"
|
|
319
|
+
raise TypeError(f"Iterable must yield strings or bytes, not {type(first_item).__name__}")
|
|
320
|
+
else: # Not a string and not an iterable
|
|
321
|
+
raise TypeError(f"Input must be a string or an iterable, not {type(data).__name__}")
|
|
342
322
|
|
|
323
|
+
try:
|
|
343
324
|
for line in line_iterator:
|
|
344
325
|
if not line:
|
|
345
326
|
continue
|
|
@@ -683,20 +664,32 @@ def sanitize_stream(
|
|
|
683
664
|
Union[Generator[Any, None, None], AsyncGenerator[Any, None]]:
|
|
684
665
|
A generator or an asynchronous generator yielding the processed data.
|
|
685
666
|
"""
|
|
667
|
+
# Determine the actual data payload to process
|
|
668
|
+
payload: Any # The type of payload can change based on data's attributes
|
|
686
669
|
|
|
687
|
-
|
|
670
|
+
text_attr = getattr(data, "text", None)
|
|
671
|
+
content_attr = getattr(data, "content", None)
|
|
672
|
+
|
|
673
|
+
if isinstance(text_attr, str):
|
|
674
|
+
payload = text_attr
|
|
675
|
+
elif isinstance(content_attr, bytes):
|
|
676
|
+
payload = content_attr.decode(encoding, encoding_errors)
|
|
677
|
+
else:
|
|
678
|
+
# Use the original data if .text or .content are not applicable or not found
|
|
679
|
+
payload = data
|
|
680
|
+
|
|
681
|
+
# Dispatch to sync or async worker based on the nature of the 'payload'
|
|
682
|
+
if hasattr(payload, "__aiter__"):
|
|
688
683
|
return _sanitize_stream_async(
|
|
689
|
-
|
|
684
|
+
payload, intro_value, to_json, skip_markers, strip_chars,
|
|
690
685
|
start_marker, end_marker, content_extractor, yield_raw_on_error,
|
|
691
686
|
encoding, encoding_errors, buffer_size, line_delimiter, error_handler,
|
|
692
687
|
)
|
|
693
688
|
return _sanitize_stream_sync(
|
|
694
|
-
|
|
689
|
+
payload, intro_value, to_json, skip_markers, strip_chars,
|
|
695
690
|
start_marker, end_marker, content_extractor, yield_raw_on_error,
|
|
696
691
|
encoding, encoding_errors, buffer_size, line_delimiter, error_handler,
|
|
697
692
|
)
|
|
698
|
-
|
|
699
|
-
|
|
700
693
|
from .conversation import Conversation # noqa: E402,F401
|
|
701
694
|
from .Extra.autocoder import AutoCoder # noqa: E402,F401
|
|
702
695
|
from .optimizers import Optimizers # noqa: E402,F401
|