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 2 months 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 4 years ago)
- Default Branch: main
- Last Pushed: 2021-08-11T11:47:45.000Z (about 4 years ago)
- Last Synced: 2025-04-08T11:18:40.172Z (7 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
[](https://github.com/psf/black)
Simple Python sync/async duckduckgo API wrapper.
[Documentation](https://pyquack.anand2312.tech)
## Quickstart
Synchronous:
```py
import pyquack
client = pyquack.Client()
response = client.query("DuckDuckGo")
print(response.results)
print(response.definition)
```
Async:
```py
import asyncio
import pyquack
async def main() -> None:
client = pyquack.AsyncClient()
response = await client.query("DuckDuckGo")
print(response.results)
print(response.definition)
asyncio.run(main())
```