searchly 2.1.0__tar.gz → 2.2.0__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.
Files changed (38) hide show
  1. searchly-2.2.0/PKG-INFO +148 -0
  2. searchly-2.2.0/README.md +105 -0
  3. searchly-2.2.0/pyproject.toml +309 -0
  4. searchly-2.1.0/pyproject.toml → searchly-2.2.0/pyproject.toml.orig +50 -29
  5. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/exceptions.py +24 -24
  6. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/brave_provider/__init__.py +1 -1
  7. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/brave_provider/client.py +149 -149
  8. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/dataforseo_provider/__init__.py +1 -1
  9. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/dataforseo_provider/dataforseo.py +192 -192
  10. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/exa_provider/__init__.py +1 -1
  11. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/exa_provider/exa.py +133 -126
  12. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/jigsawstack_provider/__init__.py +1 -1
  13. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/jigsawstack_provider/jigsawstack.py +113 -113
  14. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/kagi_provider/__init__.py +1 -1
  15. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/kagi_provider/client.py +170 -170
  16. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/linkup_provider/__init__.py +1 -1
  17. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/linkup_provider/client.py +111 -111
  18. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/search1_provider/__init__.py +1 -1
  19. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/search1_provider/client.py +134 -134
  20. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/serpapi_provider/__init__.py +1 -1
  21. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/serpapi_provider/client.py +179 -179
  22. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/serper_provider/__init__.py +1 -1
  23. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/serper_provider/client.py +182 -182
  24. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/tavily_provider/client.py +217 -215
  25. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/you_provider/__init__.py +1 -1
  26. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/you_provider/you.py +168 -168
  27. searchly-2.1.0/PKG-INFO +0 -70
  28. searchly-2.1.0/README.md +0 -26
  29. {searchly-2.1.0 → searchly-2.2.0}/LICENSE +0 -0
  30. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/__init__.py +0 -0
  31. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/base.py +0 -0
  32. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/log.py +0 -0
  33. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/__init__.py +0 -0
  34. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/providers/tavily_provider/__init__.py +0 -0
  35. {searchly-2.1.0 → searchly-2.2.0}/src/searchly/py.typed +0 -0
  36. {searchly-2.1.0 → searchly-2.2.0}/src/searchly_config/__init__.py +0 -0
  37. {searchly-2.1.0 → searchly-2.2.0}/src/searchly_config/configs.py +0 -0
  38. {searchly-2.1.0 → searchly-2.2.0}/src/searchly_config/py.typed +0 -0
@@ -0,0 +1,148 @@
1
+ Metadata-Version: 2.4
2
+ Name: searchly
3
+ Version: 2.2.0
4
+ Summary: Unified async clients for web and news search APIs, built for AI agents
5
+ Keywords: agents,ai,async,brave,exa,llm,news-search,search,serper,tavily,web-search
6
+ Author: Philipp Temminghoff
7
+ Author-email: Philipp Temminghoff <philipptemminghoff@googlemail.com>
8
+ License-Expression: MIT
9
+ License-File: LICENSE
10
+ Classifier: Development Status :: 4 - Beta
11
+ Classifier: Framework :: Pydantic
12
+ Classifier: Framework :: Pydantic :: 2
13
+ Classifier: Intended Audience :: Developers
14
+ Classifier: Operating System :: OS Independent
15
+ Classifier: Programming Language :: Python :: 3
16
+ Classifier: Programming Language :: Python :: 3 :: Only
17
+ Classifier: Programming Language :: Python :: 3.13
18
+ Classifier: Programming Language :: Python :: 3.14
19
+ Classifier: Topic :: Internet :: WWW/HTTP :: Indexing/Search
20
+ Classifier: Topic :: Scientific/Engineering :: Artificial Intelligence
21
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
22
+ Classifier: Typing :: Typed
23
+ Requires-Dist: anyenv[httpx2]>=2.1.0
24
+ Requires-Dist: pydantic
25
+ Requires-Dist: httpx2>=2.16
26
+ Requires-Dist: schemez>=2.1.5
27
+ Requires-Dist: brave-search-python-client ; extra == 'all'
28
+ Requires-Dist: psutil ; extra == 'all'
29
+ Requires-Dist: exa-py>=2.0.0 ; extra == 'all'
30
+ Requires-Dist: brave-search-python-client ; extra == 'brave-search-python-client'
31
+ Requires-Dist: psutil ; extra == 'brave-search-python-client'
32
+ Requires-Dist: exa-py>=2.0.0 ; extra == 'exa'
33
+ Requires-Python: >=3.13
34
+ Project-URL: Code coverage, https://app.codecov.io/gh/phil65/Searchly
35
+ Project-URL: Documentation, https://phil65.github.io/Searchly/
36
+ Project-URL: Homepage, https://phil65.github.io/Searchly/
37
+ Project-URL: Issues, https://github.com/phil65/Searchly/issues
38
+ Project-URL: Source, https://github.com/phil65/Searchly
39
+ Provides-Extra: all
40
+ Provides-Extra: brave-search-python-client
41
+ Provides-Extra: exa
42
+ Description-Content-Type: text/markdown
43
+
44
+ # Searchly
45
+
46
+ [![PyPI License](https://img.shields.io/pypi/l/searchly.svg)](https://pypi.org/project/searchly/)
47
+ [![Package status](https://img.shields.io/pypi/status/searchly.svg)](https://pypi.org/project/searchly/)
48
+ [![Monthly downloads](https://img.shields.io/pypi/dm/searchly.svg)](https://pypi.org/project/searchly/)
49
+ [![Distribution format](https://img.shields.io/pypi/format/searchly.svg)](https://pypi.org/project/searchly/)
50
+ [![Wheel availability](https://img.shields.io/pypi/wheel/searchly.svg)](https://pypi.org/project/searchly/)
51
+ [![Python version](https://img.shields.io/pypi/pyversions/searchly.svg)](https://pypi.org/project/searchly/)
52
+ [![Implementation](https://img.shields.io/pypi/implementation/searchly.svg)](https://pypi.org/project/searchly/)
53
+ [![Releases](https://img.shields.io/github/downloads/phil65/searchly/total.svg)](https://github.com/phil65/searchly/releases)
54
+ [![Github Contributors](https://img.shields.io/github/contributors/phil65/searchly)](https://github.com/phil65/searchly/graphs/contributors)
55
+ [![Github Forks](https://img.shields.io/github/forks/phil65/searchly)](https://github.com/phil65/searchly/forks)
56
+ [![Github Issues](https://img.shields.io/github/issues/phil65/searchly)](https://github.com/phil65/searchly/issues)
57
+ [![Github Issues](https://img.shields.io/github/issues-pr/phil65/searchly)](https://github.com/phil65/searchly/pulls)
58
+ [![Github Watchers](https://img.shields.io/github/watchers/phil65/searchly)](https://github.com/phil65/searchly/watchers)
59
+ [![Github Stars](https://img.shields.io/github/stars/phil65/searchly)](https://github.com/phil65/searchly/stars)
60
+ [![Github Repository size](https://img.shields.io/github/repo-size/phil65/searchly)](https://github.com/phil65/searchly)
61
+ [![Github last commit](https://img.shields.io/github/last-commit/phil65/searchly)](https://github.com/phil65/searchly/commits)
62
+ [![Github release date](https://img.shields.io/github/release-date/phil65/searchly)](https://github.com/phil65/searchly/releases)
63
+ [![Github language count](https://img.shields.io/github/languages/count/phil65/searchly)](https://github.com/phil65/searchly)
64
+ [![Github commits this month](https://img.shields.io/github/commit-activity/m/phil65/searchly)](https://github.com/phil65/searchly)
65
+ [![Package status](https://codecov.io/gh/phil65/searchly/branch/main/graph/badge.svg)](https://codecov.io/gh/phil65/searchly/)
66
+ [![PyUp](https://pyup.io/repos/github/phil65/searchly/shield.svg)](https://pyup.io/repos/github/phil65/searchly/)
67
+
68
+ [Read the documentation!](https://phil65.github.io/Searchly/)
69
+
70
+ Searchly gives AI agents (and anyone else) one async interface to many web and news search
71
+ APIs. Every provider returns the same pydantic result models, so switching from Serper to
72
+ Tavily or Brave is a one-line change.
73
+
74
+ ## Installation
75
+
76
+ ```bash
77
+ pip install searchly
78
+ # optional SDK-based providers
79
+ pip install "searchly[exa]" # Exa
80
+ pip install "searchly[brave_search_python_client]" # Brave
81
+ pip install "searchly[all]"
82
+ ```
83
+
84
+ Requires Python 3.13+.
85
+
86
+ ## Quickstart
87
+
88
+ ```python
89
+ import asyncio
90
+
91
+ from searchly import AsyncSerperClient
92
+
93
+
94
+ async def main() -> None:
95
+ client = AsyncSerperClient() # reads SERPER_API_KEY, or pass api_key="..."
96
+ response = await client.web_search("python asyncio tutorial", max_results=5, country="US")
97
+ for result in response.results:
98
+ print(result.title, result.url)
99
+
100
+ news = await client.news_search("open source AI", max_results=3)
101
+ for item in news.results:
102
+ print(item.published, item.source, item.title)
103
+
104
+
105
+ asyncio.run(main())
106
+ ```
107
+
108
+ ### Configuration-driven providers
109
+
110
+ `searchly_config` holds lightweight pydantic configs (a discriminated union on `type`) that
111
+ create providers lazily, which makes search backends easy to put into YAML/JSON settings:
112
+
113
+ ```python
114
+ from pydantic import TypeAdapter
115
+
116
+ from searchly import WebSearchProviderConfig
117
+
118
+ config = TypeAdapter(WebSearchProviderConfig).validate_python({"type": "tavily"})
119
+ if config.is_configured(): # api_key field or TAVILY_API_KEY env var
120
+ provider = config.get_provider()
121
+ ```
122
+
123
+ ## Providers
124
+
125
+ | Provider | Client | Web | News | API key env var |
126
+ | --- | --- | --- | --- | --- |
127
+ | Brave | `AsyncBraveSearch` | yes | yes | `BRAVE_API_KEY` |
128
+ | DataForSEO | `AsyncDataForSEOClient` | yes | yes | `DATAFORSEO_LOGIN`, `DATAFORSEO_PASSWORD` |
129
+ | Exa | `AsyncExaClient` | yes | | `EXA_API_KEY` |
130
+ | JigsawStack | `AsyncJigsawStackClient` | yes | | `JIGSAWSTACK_API_KEY` |
131
+ | Kagi | `AsyncKagiClient` | yes | | `KAGI_API_KEY` |
132
+ | LinkUp | `AsyncLinkUpClient` | yes | | `LINKUP_API_KEY` |
133
+ | Search1API | `AsyncSearch1API` | yes | | `SEARCH1API_KEY` |
134
+ | SerpAPI | `AsyncSerpAPIClient` | yes | yes | `SERPAPI_KEY` |
135
+ | Serper | `AsyncSerperClient` | yes | yes | `SERPER_API_KEY` |
136
+ | Tavily | `AsyncTavilyClient` | yes | yes | `TAVILY_API_KEY` |
137
+ | You.com | `AsyncYouClient` | yes | yes | `YOU_API_KEY` |
138
+
139
+ ## Features
140
+
141
+ - **Common protocols**: `WebSearchProvider.web_search()` and `NewsSearchProvider.news_search()`
142
+ with shared `query`, `max_results`, `country` and `language` arguments; provider-specific
143
+ options are extra keyword arguments.
144
+ - **Unified results**: `WebSearchResponse` / `NewsSearchResponse` with `WebSearchResult`
145
+ (`title`, `url`, `snippet`) and `NewsSearchResult` (adds `source`, `published`).
146
+ - **Typed**: `CountryCode` and `LanguageCode` literals, full type hints, `py.typed`.
147
+ - **Config models**: `WebSearchProviderConfig`, `NewsSearchProviderConfig`, `get_config_class()`
148
+ for building providers from settings, with secrets stored as `SecretStr`.
@@ -0,0 +1,105 @@
1
+ # Searchly
2
+
3
+ [![PyPI License](https://img.shields.io/pypi/l/searchly.svg)](https://pypi.org/project/searchly/)
4
+ [![Package status](https://img.shields.io/pypi/status/searchly.svg)](https://pypi.org/project/searchly/)
5
+ [![Monthly downloads](https://img.shields.io/pypi/dm/searchly.svg)](https://pypi.org/project/searchly/)
6
+ [![Distribution format](https://img.shields.io/pypi/format/searchly.svg)](https://pypi.org/project/searchly/)
7
+ [![Wheel availability](https://img.shields.io/pypi/wheel/searchly.svg)](https://pypi.org/project/searchly/)
8
+ [![Python version](https://img.shields.io/pypi/pyversions/searchly.svg)](https://pypi.org/project/searchly/)
9
+ [![Implementation](https://img.shields.io/pypi/implementation/searchly.svg)](https://pypi.org/project/searchly/)
10
+ [![Releases](https://img.shields.io/github/downloads/phil65/searchly/total.svg)](https://github.com/phil65/searchly/releases)
11
+ [![Github Contributors](https://img.shields.io/github/contributors/phil65/searchly)](https://github.com/phil65/searchly/graphs/contributors)
12
+ [![Github Forks](https://img.shields.io/github/forks/phil65/searchly)](https://github.com/phil65/searchly/forks)
13
+ [![Github Issues](https://img.shields.io/github/issues/phil65/searchly)](https://github.com/phil65/searchly/issues)
14
+ [![Github Issues](https://img.shields.io/github/issues-pr/phil65/searchly)](https://github.com/phil65/searchly/pulls)
15
+ [![Github Watchers](https://img.shields.io/github/watchers/phil65/searchly)](https://github.com/phil65/searchly/watchers)
16
+ [![Github Stars](https://img.shields.io/github/stars/phil65/searchly)](https://github.com/phil65/searchly/stars)
17
+ [![Github Repository size](https://img.shields.io/github/repo-size/phil65/searchly)](https://github.com/phil65/searchly)
18
+ [![Github last commit](https://img.shields.io/github/last-commit/phil65/searchly)](https://github.com/phil65/searchly/commits)
19
+ [![Github release date](https://img.shields.io/github/release-date/phil65/searchly)](https://github.com/phil65/searchly/releases)
20
+ [![Github language count](https://img.shields.io/github/languages/count/phil65/searchly)](https://github.com/phil65/searchly)
21
+ [![Github commits this month](https://img.shields.io/github/commit-activity/m/phil65/searchly)](https://github.com/phil65/searchly)
22
+ [![Package status](https://codecov.io/gh/phil65/searchly/branch/main/graph/badge.svg)](https://codecov.io/gh/phil65/searchly/)
23
+ [![PyUp](https://pyup.io/repos/github/phil65/searchly/shield.svg)](https://pyup.io/repos/github/phil65/searchly/)
24
+
25
+ [Read the documentation!](https://phil65.github.io/Searchly/)
26
+
27
+ Searchly gives AI agents (and anyone else) one async interface to many web and news search
28
+ APIs. Every provider returns the same pydantic result models, so switching from Serper to
29
+ Tavily or Brave is a one-line change.
30
+
31
+ ## Installation
32
+
33
+ ```bash
34
+ pip install searchly
35
+ # optional SDK-based providers
36
+ pip install "searchly[exa]" # Exa
37
+ pip install "searchly[brave_search_python_client]" # Brave
38
+ pip install "searchly[all]"
39
+ ```
40
+
41
+ Requires Python 3.13+.
42
+
43
+ ## Quickstart
44
+
45
+ ```python
46
+ import asyncio
47
+
48
+ from searchly import AsyncSerperClient
49
+
50
+
51
+ async def main() -> None:
52
+ client = AsyncSerperClient() # reads SERPER_API_KEY, or pass api_key="..."
53
+ response = await client.web_search("python asyncio tutorial", max_results=5, country="US")
54
+ for result in response.results:
55
+ print(result.title, result.url)
56
+
57
+ news = await client.news_search("open source AI", max_results=3)
58
+ for item in news.results:
59
+ print(item.published, item.source, item.title)
60
+
61
+
62
+ asyncio.run(main())
63
+ ```
64
+
65
+ ### Configuration-driven providers
66
+
67
+ `searchly_config` holds lightweight pydantic configs (a discriminated union on `type`) that
68
+ create providers lazily, which makes search backends easy to put into YAML/JSON settings:
69
+
70
+ ```python
71
+ from pydantic import TypeAdapter
72
+
73
+ from searchly import WebSearchProviderConfig
74
+
75
+ config = TypeAdapter(WebSearchProviderConfig).validate_python({"type": "tavily"})
76
+ if config.is_configured(): # api_key field or TAVILY_API_KEY env var
77
+ provider = config.get_provider()
78
+ ```
79
+
80
+ ## Providers
81
+
82
+ | Provider | Client | Web | News | API key env var |
83
+ | --- | --- | --- | --- | --- |
84
+ | Brave | `AsyncBraveSearch` | yes | yes | `BRAVE_API_KEY` |
85
+ | DataForSEO | `AsyncDataForSEOClient` | yes | yes | `DATAFORSEO_LOGIN`, `DATAFORSEO_PASSWORD` |
86
+ | Exa | `AsyncExaClient` | yes | | `EXA_API_KEY` |
87
+ | JigsawStack | `AsyncJigsawStackClient` | yes | | `JIGSAWSTACK_API_KEY` |
88
+ | Kagi | `AsyncKagiClient` | yes | | `KAGI_API_KEY` |
89
+ | LinkUp | `AsyncLinkUpClient` | yes | | `LINKUP_API_KEY` |
90
+ | Search1API | `AsyncSearch1API` | yes | | `SEARCH1API_KEY` |
91
+ | SerpAPI | `AsyncSerpAPIClient` | yes | yes | `SERPAPI_KEY` |
92
+ | Serper | `AsyncSerperClient` | yes | yes | `SERPER_API_KEY` |
93
+ | Tavily | `AsyncTavilyClient` | yes | yes | `TAVILY_API_KEY` |
94
+ | You.com | `AsyncYouClient` | yes | yes | `YOU_API_KEY` |
95
+
96
+ ## Features
97
+
98
+ - **Common protocols**: `WebSearchProvider.web_search()` and `NewsSearchProvider.news_search()`
99
+ with shared `query`, `max_results`, `country` and `language` arguments; provider-specific
100
+ options are extra keyword arguments.
101
+ - **Unified results**: `WebSearchResponse` / `NewsSearchResponse` with `WebSearchResult`
102
+ (`title`, `url`, `snippet`) and `NewsSearchResult` (adds `source`, `published`).
103
+ - **Typed**: `CountryCode` and `LanguageCode` literals, full type hints, `py.typed`.
104
+ - **Config models**: `WebSearchProviderConfig`, `NewsSearchProviderConfig`, `get_config_class()`
105
+ for building providers from settings, with secrets stored as `SecretStr`.
@@ -0,0 +1,309 @@
1
+ [project]
2
+ name = "searchly"
3
+ version = "2.2.0"
4
+ description = "Unified async clients for web and news search APIs, built for AI agents"
5
+ readme = "README.md"
6
+ requires-python = ">=3.13"
7
+ license = "MIT"
8
+ license-files = ["LICENSE"]
9
+ keywords = [
10
+ "agents",
11
+ "ai",
12
+ "async",
13
+ "brave",
14
+ "exa",
15
+ "llm",
16
+ "news-search",
17
+ "search",
18
+ "serper",
19
+ "tavily",
20
+ "web-search",
21
+ ]
22
+ classifiers = [
23
+ "Development Status :: 4 - Beta",
24
+ "Framework :: Pydantic",
25
+ "Framework :: Pydantic :: 2",
26
+ "Intended Audience :: Developers",
27
+ "Operating System :: OS Independent",
28
+ "Programming Language :: Python :: 3",
29
+ "Programming Language :: Python :: 3 :: Only",
30
+ "Programming Language :: Python :: 3.13",
31
+ "Programming Language :: Python :: 3.14",
32
+ "Topic :: Internet :: WWW/HTTP :: Indexing/Search",
33
+ "Topic :: Scientific/Engineering :: Artificial Intelligence",
34
+ "Topic :: Software Development :: Libraries :: Python Modules",
35
+ "Typing :: Typed",
36
+ ]
37
+ dependencies = [
38
+ "anyenv[httpx2]>=2.1.0",
39
+ "pydantic",
40
+ "httpx2>=2.16",
41
+ "schemez>=2.1.5",
42
+ ]
43
+
44
+ [[project.authors]]
45
+ name = "Philipp Temminghoff"
46
+ email = "philipptemminghoff@googlemail.com"
47
+
48
+ [project.urls]
49
+ "Code coverage" = "https://app.codecov.io/gh/phil65/Searchly"
50
+ Documentation = "https://phil65.github.io/Searchly/"
51
+ Homepage = "https://phil65.github.io/Searchly/"
52
+ Issues = "https://github.com/phil65/Searchly/issues"
53
+ Source = "https://github.com/phil65/Searchly"
54
+
55
+ [project.optional-dependencies]
56
+ all = [
57
+ "brave-search-python-client",
58
+ "psutil",
59
+ "exa-py>=2.0.0",
60
+ ]
61
+ brave_search_python_client = [
62
+ "brave-search-python-client",
63
+ "psutil",
64
+ ]
65
+ exa = ["exa-py>=2.0.0"]
66
+
67
+ [dependency-groups]
68
+ dev = [
69
+ "deptry",
70
+ "devtools",
71
+ "pyreadline3",
72
+ "pytest",
73
+ "pytest-asyncio",
74
+ "pytest-cov",
75
+ ]
76
+ benchmark = ["pyinstrument"]
77
+ docs = [
78
+ "mkdocs-mknodes>=2.1.0",
79
+ "mkdocstrings[python]",
80
+ ]
81
+ lint = [
82
+ "ruff==0.17.6",
83
+ "ty==0.0.107",
84
+ ]
85
+
86
+ [build-system]
87
+ requires = ["uv_build>=0.8.22"]
88
+ build-backend = "uv_build"
89
+
90
+ [tool.coverage.report]
91
+ exclude_lines = [
92
+ "pragma: no cover",
93
+ "if TYPE_CHECKING:",
94
+ "@overload",
95
+ "except ImportError",
96
+ 'if __name__ == "__main__":',
97
+ ]
98
+
99
+ [tool.mknodes]
100
+ allowed-commit-types = [
101
+ "fix",
102
+ "feat",
103
+ "refactor",
104
+ "docs",
105
+ "test",
106
+ "build",
107
+ "chore",
108
+ ]
109
+ docstring-style = "google"
110
+
111
+ [tool.pyright]
112
+ venvPath = "."
113
+ venv = ".venv"
114
+ pythonVersion = "3.13"
115
+ pythonPlatform = "All"
116
+ typeCheckingMode = "basic"
117
+ deprecateTypingAliases = true
118
+ reportMissingTypeStubs = false
119
+ reportUnusedCallResult = false
120
+ reportUnknownVariableType = false
121
+ reportAny = false
122
+ reportImplicitOverride = false
123
+ reportUnusedFunction = false
124
+ reportImplicitStringConcatenation = false
125
+ reportIgnoreCommentWithoutRule = false
126
+ reportUnannotatedClassAttribute = false
127
+ reportSelfClsParameterName = false
128
+ reportPrivateImportUsage = false
129
+
130
+ [tool.pytest]
131
+ addopts = [
132
+ "-m",
133
+ "not integration",
134
+ ]
135
+ log_cli = true
136
+ log_date_format = "%Y-%m-%d %H:%M:%S"
137
+ log_format = "%(asctime)s %(levelname)s %(message)s"
138
+ markers = ["integration: mark test as integration test (skipped by default)"]
139
+ minversion = "9.0"
140
+ testpaths = ["tests/"]
141
+ asyncio_mode = "auto"
142
+
143
+ [tool.ruff]
144
+ line-length = 100
145
+ extend-exclude = ["docs"]
146
+ target-version = "py313"
147
+
148
+ [tool.ruff.lint]
149
+ future-annotations = true
150
+ select = [
151
+ "A",
152
+ "B",
153
+ "BLE",
154
+ "C",
155
+ "C4",
156
+ "COM",
157
+ "D",
158
+ "E",
159
+ "EM",
160
+ "EXE",
161
+ "F",
162
+ "FA",
163
+ "FLY",
164
+ "G",
165
+ "I",
166
+ "ICN",
167
+ "INP",
168
+ "INT",
169
+ "ISC",
170
+ "N",
171
+ "PERF",
172
+ "PIE",
173
+ "PLE",
174
+ "PLC",
175
+ "PLR",
176
+ "PT",
177
+ "PTH",
178
+ "PYI",
179
+ "Q",
180
+ "RET",
181
+ "RSE",
182
+ "RUF",
183
+ "SIM",
184
+ "SLF",
185
+ "SLOT",
186
+ "T10",
187
+ "TC",
188
+ "TID",
189
+ "TRY",
190
+ "UP",
191
+ "W",
192
+ "YTT",
193
+ ]
194
+ ignore = [
195
+ "C408",
196
+ "B905",
197
+ "C901",
198
+ "COM812",
199
+ "D100",
200
+ "D101",
201
+ "D102",
202
+ "D103",
203
+ "D104",
204
+ "D105",
205
+ "D106",
206
+ "D107",
207
+ "D203",
208
+ "D204",
209
+ "D213",
210
+ "D215",
211
+ "D400",
212
+ "D401",
213
+ "D404",
214
+ "D406",
215
+ "D407",
216
+ "D408",
217
+ "D409",
218
+ "D413",
219
+ "EM101",
220
+ "EM102",
221
+ "ISC001",
222
+ "PLC0415",
223
+ "PLR0912",
224
+ "PLR0913",
225
+ "PLR0915",
226
+ "PLR0917",
227
+ "SLF001",
228
+ "TRY003",
229
+ "TC006",
230
+ ]
231
+
232
+ [tool.ruff.lint.flake8-quotes]
233
+ docstring-quotes = "double"
234
+
235
+ [tool.ruff.lint.flake8-type-checking]
236
+ runtime-evaluated-base-classes = [
237
+ "pydantic.BaseModel",
238
+ "sqlalchemy.orm.DeclarativeBase",
239
+ "schemez.Schema",
240
+ "sqlmodel.SQLModel",
241
+ ]
242
+ runtime-evaluated-decorators = [
243
+ "pydantic.validate_call",
244
+ "fastapi.FastAPI.get",
245
+ "fastapi.FastAPI.post",
246
+ "fastmcp.FastMCP.tool",
247
+ "typer.Typer.command",
248
+ ]
249
+
250
+ [tool.ruff.lint.isort]
251
+ lines-after-imports = 2
252
+ force-sort-within-sections = true
253
+ combine-as-imports = true
254
+
255
+ [tool.ruff.lint.mccabe]
256
+ max-complexity = 15
257
+
258
+ [tool.ruff.lint.per-file-ignores]
259
+ "__init__.py" = [
260
+ "E402",
261
+ "I001",
262
+ ]
263
+ "scripts/*" = ["INP001"]
264
+ "*tests/*" = ["D100"]
265
+
266
+ [tool.ruff.format]
267
+ preview = true
268
+
269
+ [tool.ty.environment]
270
+ python-version = "3.13"
271
+ python-platform = "all"
272
+
273
+ [tool.ty.src]
274
+ include = ["src"]
275
+
276
+ [tool.ty.analysis]
277
+ allowed-unresolved-imports = []
278
+
279
+ [tool.ty.rules]
280
+ incompatible-mutable-override = "ignore"
281
+
282
+ [tool.uv]
283
+ default-groups = [
284
+ "dev",
285
+ "lint",
286
+ "docs",
287
+ ]
288
+
289
+ [tool.uv.build-backend]
290
+ module-name = [
291
+ "searchly",
292
+ "searchly_config",
293
+ ]
294
+ wheel-exclude = [
295
+ ".mypy_cache/**",
296
+ "__pycache__/**",
297
+ "*.pyc",
298
+ "*.pyo",
299
+ ".pytest_cache/**",
300
+ ".ruff_cache/**",
301
+ ]
302
+ source-exclude = [
303
+ ".mypy_cache/**",
304
+ "__pycache__/**",
305
+ "*.pyc",
306
+ "*.pyo",
307
+ ".pytest_cache/**",
308
+ ".ruff_cache/**",
309
+ ]