pyquack

Simple Python sync/async duckduckgo API wrapper.

MIT License

Downloads
50
Stars
2
Committers
2

pyquack

Simple Python sync/async duckduckgo API wrapper.

Documentation

Quickstart

Synchronous:

import pyquack

client = pyquack.Client()

response = client.query("DuckDuckGo")

print(response.results)
print(response.definition)

Async:

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())