Skip to content

Latest commit

 

History

History
37 lines (24 loc) · 635 Bytes

README.md

File metadata and controls

37 lines (24 loc) · 635 Bytes

pyquack

Code style: black

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