searchly 2.0.3__tar.gz → 2.0.4__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.
- {searchly-2.0.3 → searchly-2.0.4}/PKG-INFO +1 -1
- {searchly-2.0.3 → searchly-2.0.4}/pyproject.toml +1 -1
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/brave_provider/client.py +3 -5
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/dataforseo_provider/dataforseo.py +3 -5
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/exa_provider/exa.py +9 -7
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/jigsawstack_provider/jigsawstack.py +8 -6
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/kagi_provider/client.py +3 -5
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/linkup_provider/client.py +8 -6
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/search1_provider/client.py +8 -6
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/serper_provider/client.py +3 -5
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/tavily_provider/client.py +4 -7
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/you_provider/you.py +3 -5
- {searchly-2.0.3 → searchly-2.0.4}/LICENSE +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/README.md +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/base.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/config.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/exceptions.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/log.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/brave_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/dataforseo_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/exa_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/jigsawstack_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/kagi_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/linkup_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/search1_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/serpapi_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/serpapi_provider/client.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/serper_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/tavily_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/you_provider/__init__.py +0 -0
- {searchly-2.0.3 → searchly-2.0.4}/src/searchly/py.typed +0 -0
|
@@ -3,9 +3,11 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, cast
|
|
7
7
|
|
|
8
8
|
from searchly.base import (
|
|
9
|
+
CountryCode, # noqa: TC001
|
|
10
|
+
LanguageCode, # noqa: TC001
|
|
9
11
|
NewsSearchProvider,
|
|
10
12
|
NewsSearchResponse,
|
|
11
13
|
NewsSearchResult,
|
|
@@ -15,10 +17,6 @@ from searchly.base import (
|
|
|
15
17
|
)
|
|
16
18
|
|
|
17
19
|
|
|
18
|
-
if TYPE_CHECKING:
|
|
19
|
-
from searchly.base import CountryCode, LanguageCode
|
|
20
|
-
|
|
21
|
-
|
|
22
20
|
class AsyncBraveSearch(WebSearchProvider, NewsSearchProvider):
|
|
23
21
|
"""Async client for Brave Search API."""
|
|
24
22
|
|
|
@@ -4,12 +4,14 @@ from __future__ import annotations
|
|
|
4
4
|
|
|
5
5
|
import base64
|
|
6
6
|
import os
|
|
7
|
-
from typing import
|
|
7
|
+
from typing import Any, Literal
|
|
8
8
|
|
|
9
9
|
import anyenv
|
|
10
10
|
|
|
11
11
|
from searchly.base import (
|
|
12
12
|
DATAFORSEO_COUNTRY_MAP,
|
|
13
|
+
CountryCode, # noqa: TC001
|
|
14
|
+
LanguageCode, # noqa: TC001
|
|
13
15
|
NewsSearchProvider,
|
|
14
16
|
NewsSearchResponse,
|
|
15
17
|
NewsSearchResult,
|
|
@@ -19,10 +21,6 @@ from searchly.base import (
|
|
|
19
21
|
)
|
|
20
22
|
|
|
21
23
|
|
|
22
|
-
if TYPE_CHECKING:
|
|
23
|
-
from searchly.base import CountryCode, LanguageCode
|
|
24
|
-
|
|
25
|
-
|
|
26
24
|
OSType = Literal["windows", "macos", "android", "ios"]
|
|
27
25
|
DeviceType = Literal["desktop", "mobile", "tablet"]
|
|
28
26
|
|
|
@@ -3,13 +3,15 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
7
|
-
|
|
8
|
-
from searchly.base import
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
6
|
+
from typing import Any, Literal
|
|
7
|
+
|
|
8
|
+
from searchly.base import (
|
|
9
|
+
CountryCode, # noqa: TC001
|
|
10
|
+
LanguageCode, # noqa: TC001
|
|
11
|
+
WebSearchProvider,
|
|
12
|
+
WebSearchResponse,
|
|
13
|
+
WebSearchResult,
|
|
14
|
+
)
|
|
13
15
|
|
|
14
16
|
|
|
15
17
|
class AsyncExaClient(WebSearchProvider):
|
{searchly-2.0.3 → searchly-2.0.4}/src/searchly/providers/jigsawstack_provider/jigsawstack.py
RENAMED
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, Literal
|
|
7
7
|
|
|
8
8
|
import anyenv
|
|
9
9
|
|
|
10
|
-
from searchly.base import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
from searchly.base import (
|
|
11
|
+
CountryCode, # noqa: TC001
|
|
12
|
+
LanguageCode, # noqa: TC001
|
|
13
|
+
WebSearchProvider,
|
|
14
|
+
WebSearchResponse,
|
|
15
|
+
WebSearchResult,
|
|
16
|
+
)
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
SafeSearchSetting = Literal["moderate", "strict", "off"]
|
|
@@ -3,21 +3,19 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, Literal
|
|
7
7
|
|
|
8
8
|
import anyenv
|
|
9
9
|
|
|
10
10
|
from searchly.base import (
|
|
11
|
+
CountryCode, # noqa: TC001
|
|
12
|
+
LanguageCode, # noqa: TC001
|
|
11
13
|
WebSearchProvider,
|
|
12
14
|
WebSearchResponse,
|
|
13
15
|
WebSearchResult,
|
|
14
16
|
)
|
|
15
17
|
|
|
16
18
|
|
|
17
|
-
if TYPE_CHECKING:
|
|
18
|
-
from searchly.base import CountryCode, LanguageCode
|
|
19
|
-
|
|
20
|
-
|
|
21
19
|
SummaryType = Literal["summary", "takeaway"]
|
|
22
20
|
SummaryEngine = Literal["cecil", "agnes", "muriel"]
|
|
23
21
|
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, Literal
|
|
7
7
|
|
|
8
8
|
import anyenv
|
|
9
9
|
|
|
10
|
-
from searchly.base import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
from searchly.base import (
|
|
11
|
+
CountryCode, # noqa: TC001
|
|
12
|
+
LanguageCode, # noqa: TC001
|
|
13
|
+
WebSearchProvider,
|
|
14
|
+
WebSearchResponse,
|
|
15
|
+
WebSearchResult,
|
|
16
|
+
)
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
OutputType = Literal["sourcedAnswer", "searchResults", "structured"]
|
|
@@ -3,15 +3,17 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, Literal
|
|
7
7
|
|
|
8
8
|
import anyenv
|
|
9
9
|
|
|
10
|
-
from searchly.base import
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
10
|
+
from searchly.base import (
|
|
11
|
+
CountryCode, # noqa: TC001
|
|
12
|
+
LanguageCode, # noqa: TC001
|
|
13
|
+
WebSearchProvider,
|
|
14
|
+
WebSearchResponse,
|
|
15
|
+
WebSearchResult,
|
|
16
|
+
)
|
|
15
17
|
|
|
16
18
|
|
|
17
19
|
TimeRange = Literal["day", "week", "month", "year"]
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, Literal
|
|
7
7
|
|
|
8
8
|
import anyenv
|
|
9
9
|
|
|
10
10
|
from searchly.base import (
|
|
11
|
+
CountryCode, # noqa: TC001
|
|
12
|
+
LanguageCode, # noqa: TC001
|
|
11
13
|
NewsSearchProvider,
|
|
12
14
|
NewsSearchResponse,
|
|
13
15
|
NewsSearchResult,
|
|
@@ -17,10 +19,6 @@ from searchly.base import (
|
|
|
17
19
|
)
|
|
18
20
|
|
|
19
21
|
|
|
20
|
-
if TYPE_CHECKING:
|
|
21
|
-
from searchly.base import CountryCode, LanguageCode
|
|
22
|
-
|
|
23
|
-
|
|
24
22
|
DateRange = Literal["h", "d", "w", "m", "y"]
|
|
25
23
|
|
|
26
24
|
|
|
@@ -2,14 +2,17 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
+
from collections.abc import Sequence # noqa: TC003
|
|
5
6
|
import contextlib
|
|
6
7
|
import os
|
|
7
|
-
from typing import
|
|
8
|
+
from typing import Any, Literal
|
|
8
9
|
|
|
9
10
|
import anyenv
|
|
10
11
|
import httpx
|
|
11
12
|
|
|
12
13
|
from searchly.base import (
|
|
14
|
+
CountryCode, # noqa: TC001
|
|
15
|
+
LanguageCode, # noqa: TC001
|
|
13
16
|
NewsSearchProvider,
|
|
14
17
|
NewsSearchResponse,
|
|
15
18
|
NewsSearchResult,
|
|
@@ -20,12 +23,6 @@ from searchly.base import (
|
|
|
20
23
|
from searchly.exceptions import InvalidAPIKeyError, MissingAPIKeyError, UsageLimitExceededError
|
|
21
24
|
|
|
22
25
|
|
|
23
|
-
if TYPE_CHECKING:
|
|
24
|
-
from collections.abc import Sequence
|
|
25
|
-
|
|
26
|
-
from searchly.base import CountryCode, LanguageCode
|
|
27
|
-
|
|
28
|
-
|
|
29
26
|
SearchDepth = Literal["basic", "advanced"]
|
|
30
27
|
|
|
31
28
|
|
|
@@ -3,11 +3,13 @@
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
5
|
import os
|
|
6
|
-
from typing import
|
|
6
|
+
from typing import Any, Literal
|
|
7
7
|
|
|
8
8
|
import anyenv
|
|
9
9
|
|
|
10
10
|
from searchly.base import (
|
|
11
|
+
CountryCode, # noqa: TC001
|
|
12
|
+
LanguageCode, # noqa: TC001
|
|
11
13
|
NewsSearchProvider,
|
|
12
14
|
NewsSearchResponse,
|
|
13
15
|
NewsSearchResult,
|
|
@@ -17,10 +19,6 @@ from searchly.base import (
|
|
|
17
19
|
)
|
|
18
20
|
|
|
19
21
|
|
|
20
|
-
if TYPE_CHECKING:
|
|
21
|
-
from searchly.base import CountryCode, LanguageCode
|
|
22
|
-
|
|
23
|
-
|
|
24
22
|
SafeSearchLevel = Literal["off", "moderate", "strict"]
|
|
25
23
|
FreshnessFilter = Literal["day", "week", "month", "year"]
|
|
26
24
|
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|