Skip to main content

A DuckDuckGo AI chat client written in python

A python-implemented DuckDuckGo AI chat client with model selection and dialog history during usage.

Based on the ideas of duck-hey

Disclaimer

By using this client you accept DuckDuckGo AI Chat ToS

Installation

  1. Install python 3.12

  2. Create python venv (optionally)

python -m venv .venv && source .venv/bin/activate
  1. Install package

    • Install auto
    pip install -U https://github.com/mrgick/duckduckgo-chat-ai/archive/master.zip
    
    • Install manually

      1. Clone repo
      git clone https://github.com/mrgick/duckduckgo-chat-ai.git && cd duckduckgo-chat-ai
      
      1. Install package
      pip install -U .
      

Usage

  • Using terminal
python -m duck_chat

or

duck_chat

P.S. You can use hey config ".config/hey/conf.toml" Thanks k-aito

  • Using as library
import asyncio
from duck_chat import DuckChat

async def main():
    async with DuckChat() as chat:
        print(await chat.ask_question("2+2?"))
        await asyncio.sleep(1)
        print(await chat.ask_question("6+6?"))

asyncio.run(main())

Metadata

Release files for duck-chat 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for duck-chat 1.3.3
File Size Uploaded Provenance Actions
duck_chat-1.3.3.tar.gz 10.5 kB Without provenance Details for duck_chat-1.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for duck-chat 1.3.3
File Interpreter ABI Platform Actions
duck_chat-1.3.3-py3-none-any.whl Python 3 none any Details for duck_chat-1.3.3-py3-none-any.whl

Total release size: 21.2 kB

Release files / duck_chat-1.3.3.tar.gz

Download URL duck_chat-1.3.3.tar.gz
Size 10.5 kB
Tags Source
SHA-256 checksum
How to use checksums
55acdd378464be6baf03d439c253a838c2732fdb3fa500e65d86eac045d4d919
BLAKE2b-256 checksum
How to use checksums
dcf436c4d198bb49d28a9b884c744ef3b47b8cbeffd764bc459e07a19fe14d95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Release files / duck_chat-1.3.3-py3-none-any.whl

Download URL duck_chat-1.3.3-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
560d8eea62e9715968055ebe8d43c3dd604e1e1f070e9cafd4583029bfe60a5c
BLAKE2b-256 checksum
How to use checksums
c6a4044b6d2307e55e2f6807b8d043d7556626bdbef48ea2414a100ed79cdc89
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.4

Security for duck-chat 1.3.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page