-
-
Notifications
You must be signed in to change notification settings - Fork 63
Expand file tree
/
Copy pathpyproject.toml
More file actions
146 lines (133 loc) · 4.31 KB
/
pyproject.toml
File metadata and controls
146 lines (133 loc) · 4.31 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
[build-system]
requires = ["setuptools>=42", "wheel"]
build-backend = "setuptools.build_meta"
[project]
name = "webscout"
# Using dynamic version from webscout.version
dynamic = ["version"]
description = "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"
readme = "README.md"
authors = [
{name = "OEvortex", email = "koulabhay26@gmail.com"}
]
requires-python = ">=3.10"
license = {text = "Apache-2.0"}
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: End Users/Desktop",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: Apache Software License",
"Natural Language :: English",
"Operating System :: OS Independent",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
"Operating System :: MacOS :: MacOS X",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP :: Indexing/Search",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Text Processing :: Linguistic",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
"Topic :: Communications",
"Topic :: Utilities",
]
keywords = [
"search", "ai", "chatbot", "llm", "language-model", "gpt", "openai",
"gemini", "claude", "llama", "search-engine", "text-to-speech", "tts",
"text-to-image", "tti", "weather", "youtube", "toolkit", "utilities",
"web-search", "duckduckgo", "google", "yep"
]
dependencies = [
"typing_extensions>=4.0.0",
"curl_cffi",
"httpx",
"tqdm",
"packaging",
"nest-asyncio",
"colorama",
"rich",
"PyYAML",
"html5lib",
"psutil",
"aiohttp",
"litprinter",
"lxml>=5.2.2",
"pydantic",
"cloudscraper>=1.2.71",
"browser-cookie3>=0.20.1",
]
[project.scripts]
WEBS = "webscout.cli:main"
webscout = "webscout.cli:main"
webscout-server = "webscout.server.server:main"
webscout-serve = "webscout.server.server:main"
[project.urls]
Source = "https://github.com/OEvortex/Webscout"
Tracker = "https://github.com/OEvortex/Webscout/issues"
YouTube = "https://youtube.com/@OEvortex"
[project.optional-dependencies]
dev = [
"ruff>=0.1.6",
"pytest>=7.4.2",
"pytest-cov>=4.1.0",
]
api = [
"fastapi",
"uvicorn[standard]",
"pydantic",
"python-multipart",
"tiktoken", # Added tiktoken for token counting support
"jinja2", # Template engine for custom Swagger UI
"websockets>=11.0",
"starlette",
"regex"
]
parser = [
"lxml>=5.2.2", # Optional: faster HTML/XML parsing with lxml
]
[tool.pytest.ini_options]
markers = [
"live: network-dependent search engine tests",
]
[tool.coverage.run]
source = ["webscout"]
branch = true
omit = ["tests/*", "*/__pycache__/*", "*/site-packages/*"]
[tool.coverage.report]
fail_under = 60
show_missing = true
skip_covered = true
exclude_lines = [
"pragma: no cover",
"def __repr__",
"raise AssertionError",
"raise NotImplementedError",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"@abstractmethod",
]
[tool.setuptools]
package-dir = {"" = "."}
include-package-data = true
[tool.setuptools.packages.find]
where = ["."] # Specifies the root directory for packages (project root)
include = ["webscout*"] # Tells find_packages to include only 'webscout' and its subpackages
exclude = ["__pycache__", "*.pyc"] # Excludes common non-package directories/files
namespaces = true # Enables automatic discovery of namespace packages
[tool.setuptools.dynamic]
version = {attr = "webscout.version.__version__"}
[tool.setuptools.package-data]
"*" = ["*.md", "*.txt", "*.yaml", "*.yml", "*.py", "*.html", "*.css", "*.js", "*.json", "*.png", "*.jpg", "*.jpeg", "*.gif", "*.svg"]
"webscout" = ["*"]
[tool.ruff]
line-length = 100
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W", "I"]
ignore = ["E501", "F403", "F401"]