searchly_config
Class info¶
Re-exported classes¶
| Class | Module | Description |
|---|---|---|
| BaseSearchProviderConfig | searchly_config.configs | Base search provider configuration. |
| BraveSearchConfig | searchly_config.configs | Brave Search provider configuration. |
| DataForSEOConfig | searchly_config.configs | DataForSEO provider configuration. |
| ExaConfig | searchly_config.configs | Exa provider configuration. |
| JigsawStackConfig | searchly_config.configs | JigsawStack provider configuration. |
| KagiConfig | searchly_config.configs | Kagi provider configuration. |
| LinkUpConfig | searchly_config.configs | LinkUp provider configuration. |
| Search1Config | searchly_config.configs | Search1API provider configuration. |
| SerpAPIConfig | searchly_config.configs | SerpAPI provider configuration. |
| SerperConfig | searchly_config.configs | Serper provider configuration. |
| TavilyConfig | searchly_config.configs | Tavily provider configuration. |
| YouConfig | searchly_config.configs | You.com provider configuration. |
🛈 DocStrings¶
Search provider configuration.
This is a lightweight config-only package for fast imports.
For the actual search providers, use from searchly import ....
BaseSearchProviderConfig
¶
Bases: Schema
Base search provider configuration.
Source code in src/searchly_config/configs.py
get_provider
¶
get_provider() -> WebSearchProvider | NewsSearchProvider
Create the provider instance.
Returns:
| Type | Description |
|---|---|
WebSearchProvider | NewsSearchProvider
|
The configured provider instance. |
is_configured
¶
Check if the provider has required credentials configured.
Returns:
| Type | Description |
|---|---|
bool
|
True if credentials are set via field or environment variable. |
BraveSearchConfig
¶
Bases: BaseSearchProviderConfig
Brave Search provider configuration.
Uses the Brave Search API for web and news search. Supports country and language filtering.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
Brave Search API key. Defaults to BRAVE_API_KEY env var.
retries
class-attribute
instance-attribute
¶
Number of retries for failed requests.
type
class-attribute
instance-attribute
¶
Brave Search provider.
wait_time
class-attribute
instance-attribute
¶
Time to wait between retries in seconds.
get_provider
¶
get_provider() -> AsyncBraveSearch
Create Brave Search provider instance.
Source code in src/searchly_config/configs.py
is_configured
¶
DataForSEOConfig
¶
Bases: BaseSearchProviderConfig
DataForSEO provider configuration.
Uses the DataForSEO API for web and news search. Supports country and language filtering with device/OS options.
Source code in src/searchly_config/configs.py
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
login
class-attribute
instance-attribute
¶
DataForSEO login. Defaults to DATAFORSEO_LOGIN env var.
password
class-attribute
instance-attribute
¶
DataForSEO password. Defaults to DATAFORSEO_PASSWORD env var.
type
class-attribute
instance-attribute
¶
DataForSEO provider.
get_provider
¶
get_provider() -> AsyncDataForSEOClient
Create DataForSEO provider instance.
Source code in src/searchly_config/configs.py
is_configured
¶
Check if DataForSEO credentials are configured.
Source code in src/searchly_config/configs.py
ExaConfig
¶
Bases: BaseSearchProviderConfig
Exa provider configuration.
Uses the Exa API for neural/semantic web search. Supports domain filtering and date ranges but not country/language.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
Exa API key. Defaults to EXA_API_KEY env var.
type
class-attribute
instance-attribute
¶
Exa provider.
get_provider
¶
get_provider() -> AsyncExaClient
Create Exa provider instance.
Source code in src/searchly_config/configs.py
JigsawStackConfig
¶
Bases: BaseSearchProviderConfig
JigsawStack provider configuration.
Uses the JigsawStack API for web search with AI overview. Limited filtering options.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
JigsawStack API key. Defaults to JIGSAWSTACK_API_KEY env var.
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
type
class-attribute
instance-attribute
¶
JigsawStack provider.
get_provider
¶
get_provider() -> AsyncJigsawStackClient
Create JigsawStack provider instance.
Source code in src/searchly_config/configs.py
is_configured
¶
KagiConfig
¶
Bases: BaseSearchProviderConfig
Kagi provider configuration.
Uses the Kagi API for web search. Also supports summarization via the Universal Summarizer.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
Kagi API key. Defaults to KAGI_API_KEY env var.
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
type
class-attribute
instance-attribute
¶
Kagi provider.
get_provider
¶
get_provider() -> AsyncKagiClient
Create Kagi provider instance.
Source code in src/searchly_config/configs.py
LinkUpConfig
¶
Bases: BaseSearchProviderConfig
LinkUp provider configuration.
Uses the LinkUp API for web search with sourced answers. Limited filtering options.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
LinkUp API key. Defaults to LINKUP_API_KEY env var.
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
type
class-attribute
instance-attribute
¶
LinkUp provider.
get_provider
¶
get_provider() -> AsyncLinkUpClient
Create LinkUp provider instance.
Source code in src/searchly_config/configs.py
Search1Config
¶
Bases: BaseSearchProviderConfig
Search1API provider configuration.
Uses the Search1API for web search via Google or Bing. Supports language filtering and time ranges.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
Search1API key. Defaults to SEARCH1API_KEY env var.
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
type
class-attribute
instance-attribute
¶
Search1API provider.
get_provider
¶
get_provider() -> AsyncSearch1API
Create Search1API provider instance.
Source code in src/searchly_config/configs.py
is_configured
¶
SerpAPIConfig
¶
Bases: BaseSearchProviderConfig
SerpAPI provider configuration.
Uses SerpAPI for web and news search via Google. Full support for country, language, and location filtering.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
SerpAPI key. Defaults to SERPAPI_KEY env var.
type
class-attribute
instance-attribute
¶
SerpAPI provider.
get_provider
¶
get_provider() -> AsyncSerpAPIClient
Create SerpAPI provider instance.
Source code in src/searchly_config/configs.py
SerperConfig
¶
Bases: BaseSearchProviderConfig
Serper provider configuration.
Uses the Serper.dev API for web and news search via Google. Supports country, language, and location filtering.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
Serper.dev API key. Defaults to SERPER_API_KEY env var.
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
type
class-attribute
instance-attribute
¶
Serper provider.
get_provider
¶
get_provider() -> AsyncSerperClient
Create Serper provider instance.
Source code in src/searchly_config/configs.py
TavilyConfig
¶
Bases: BaseSearchProviderConfig
Tavily provider configuration.
Uses the Tavily API for web and news search. Supports domain filtering and search depth options.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
Tavily API key. Defaults to TAVILY_API_KEY env var.
type
class-attribute
instance-attribute
¶
Tavily provider.
get_provider
¶
get_provider() -> AsyncTavilyClient
Create Tavily provider instance.
Source code in src/searchly_config/configs.py
YouConfig
¶
Bases: BaseSearchProviderConfig
You.com provider configuration.
Uses the You.com API for web and news search. Supports country, language, and freshness filtering.
Source code in src/searchly_config/configs.py
api_key
class-attribute
instance-attribute
¶
You.com API key. Defaults to YOU_API_KEY env var.
base_url
class-attribute
instance-attribute
¶
Base URL for the API.
type
class-attribute
instance-attribute
¶
You.com provider.
get_provider
¶
get_provider() -> AsyncYouClient
Create You.com provider instance.
Source code in src/searchly_config/configs.py
get_config_class
¶
get_config_class(provider_name: WebSearchProviderName) -> type[BaseSearchProviderConfig]
Get the config class for a provider name.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
provider_name
|
WebSearchProviderName
|
The provider type literal value. |
required |
Returns:
| Type | Description |
|---|---|
type[BaseSearchProviderConfig]
|
The corresponding config class. |
Raises:
| Type | Description |
|---|---|
ValueError
|
If the provider name is unknown. |