Search Engine Client
Lightweight, async wrappers around multiple search engine APIs (Serper/Google, DuckDuckGo, Bing). This package provides a small, opinionated interface for running text and image searches and returning standardized results.
Features
- Async-first search engine clients implementing a common
BaseSearchEngineinterface. - Built-in engines: Serper (Google), DuckDuckGo, Bing (concrete implementations in
src/search_wrapper/engines). - Concurrent text + image fetching for engines that support both.
Installation
Install for development (editable) and add required dependencies:
pip install -e .
pip install httpx
Quick start
Set the required API key for services that need one (example for Serper/Google):
$env:GOOGLE_SERPER_API_KEY = "your_api_key_here"
Example usage (async):
import asyncio
from search_wrapper import GoogleSearchFromSerper
async def main():
async with GoogleSearchFromSerper(api_key="YOUR_KEY") as client:
results = await client.search("python async http client")
print(results)
asyncio.run(main())
Alternatively import specific engine directly:
from search_wrapper.engines.serper import GoogleSearchFromSerper
Development notes
- Source layout lives under
src/(package name:search_wrapper). Either install the package in editable mode (pip install -e .) or addsrctoPYTHONPATH/VS Codepython.analysis.extraPathsso imports resolve in the editor. - The Serper client uses
httpx.AsyncClient— ensurehttpxis installed in your active environment. - Tests and examples live at the project root (
test_search.py,main.py).
Contributing
Feel free to open issues or PRs. When adding new engines, implement BaseSearchEngine and expose the engine in src/search_wrapper/__init__.py.
Metadata
Release files for search-engine-pkg 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| search_engine_pkg-0.1.0.tar.gz | 5.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| search_engine_pkg-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.6 kB
Release files / search_engine_pkg-0.1.0.tar.gz
| Download URL | search_engine_pkg-0.1.0.tar.gz |
|---|---|
| Size | 5.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b346965066c672d6f47e8c229515f72f7ee35b21854012bdca12c2ce0b9bb3e7
|
|
BLAKE2b-256 checksum How to use checksums |
dbb2d54ffb4fd5f81a3b3c34618dab5eb08ef21360d3353a29bad450d6d9b822
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 11, 2026.
Transparency logRelease files / search_engine_pkg-0.1.0-py3-none-any.whl
| Download URL | search_engine_pkg-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
2f15971998cde709eaf1f92618affc001b0170e21bfd096dc639c2b9b48defe5
|
|
BLAKE2b-256 checksum How to use checksums |
06be95560f84dd5e226c903937c9c13b67609e175a5fce736b4759ae099f8d3b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/6.1.0 CPython/3.13.7
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Feb 11, 2026.
Transparency log