Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/anand2312/pyquack
Simple Python sync/async duckduckgo API wrapper.
https://github.com/anand2312/pyquack
api async asyncio duckduckgo duckduckgo-api python requests
Last synced: about 1 month ago
JSON representation
Simple Python sync/async duckduckgo API wrapper.
- Host: GitHub
- URL: https://github.com/anand2312/pyquack
- Owner: anand2312
- License: mit
- Created: 2021-06-29T16:06:15.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-11T11:47:45.000Z (about 3 years ago)
- Last Synced: 2024-07-09T02:01:43.957Z (4 months ago)
- Topics: api, async, asyncio, duckduckgo, duckduckgo-api, python, requests
- Language: Python
- Homepage: https://pyquack.anand2312.tech
- Size: 512 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pyquack
[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/psf/black)Simple Python sync/async duckduckgo API wrapper.
[Documentation](https://pyquack.anand2312.tech)
## Quickstart
Synchronous:
```py
import pyquackclient = pyquack.Client()
response = client.query("DuckDuckGo")
print(response.results)
print(response.definition)
```Async:
```py
import asyncioimport pyquack
async def main() -> None:
client = pyquack.AsyncClient()response = await client.query("DuckDuckGo")
print(response.results)
print(response.definition)asyncio.run(main())
```