simple-api-duckduckgo/use_cases.py

5 lines
111 B
Python
Raw Normal View History

2024-02-08 12:52:28 +01:00
from typing import Union
def search_ddg(repo, query: str) -> Union[dict, list]:
return repo.search(query)