duck-chat


Nameduck-chat JSON
Version 1.2.2 PyPI version JSON
download
home_pageNone
SummaryDuckDuckGo Chat AI client
upload_time2024-08-15 10:30:39
maintainerNone
docs_urlNone
authorNone
requires_python>=3.11
licenseMIT License Copyright (c) 2024 Maxim Malahov Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # 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](https://github.com/b1ek/hey)

## Disclaimer
By using this client you accept [DuckDuckGo AI Chat ToS](https://duckduckgo.com/aichat/privacy-terms)


## Installation
1. Install [python 3.12](https://www.python.org/downloads/)

2. Create python venv (optionally)

 ```bash
 python -m venv .venv && source .venv/bin/activate
 ```

3. Install package

   - Install auto
   ```bash
   pip install -U https://github.com/mrgick/duckduckgo-chat-ai/archive/master.zip
   ```
   - Install manually
     1. Clone repo

       ```bash
       git clone https://github.com/mrgick/duckduckgo-chat-ai.git && cd duckduckgo-chat-ai
       ```
     2. Install package

       ```bash
       pip install -U .
       ```

## Usage
- Using terminal
```bash
python -m duck_chat
```
or
```
duck_chat
```

> P.S. You can use hey config ```".config/hey/conf.toml"``` Thanks [k-aito](https://github.com/mrgick/duckduckgo-chat-ai/pull/1)


- Using as library
```py
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())
```

            

Raw data

            {
    "_id": null,
    "home_page": null,
    "name": "duck-chat",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3.11",
    "maintainer_email": null,
    "keywords": null,
    "author": null,
    "author_email": "MrGick <mrgickcool@gmail.com>",
    "download_url": "https://files.pythonhosted.org/packages/3b/58/d60d60cb79409781cd61bd4e8e5bb78d4dad59875f6579097520b5843753/duck_chat-1.2.2.tar.gz",
    "platform": null,
    "description": "# A DuckDuckGo AI chat client written in python\n\nA python-implemented DuckDuckGo AI chat client with model selection and dialog history during usage. \n\n> Based on the ideas of [duck-hey](https://github.com/b1ek/hey)\n\n## Disclaimer\nBy using this client you accept [DuckDuckGo AI Chat ToS](https://duckduckgo.com/aichat/privacy-terms)\n\n\n## Installation\n1. Install [python 3.12](https://www.python.org/downloads/)\n\n2. Create python venv (optionally)\n\n ```bash\n python -m venv .venv && source .venv/bin/activate\n ```\n\n3. Install package\n\n   - Install auto\n   ```bash\n   pip install -U https://github.com/mrgick/duckduckgo-chat-ai/archive/master.zip\n   ```\n   - Install manually\n     1. Clone repo\n\n       ```bash\n       git clone https://github.com/mrgick/duckduckgo-chat-ai.git && cd duckduckgo-chat-ai\n       ```\n     2. Install package\n\n       ```bash\n       pip install -U .\n       ```\n\n## Usage\n- Using terminal\n```bash\npython -m duck_chat\n```\nor\n```\nduck_chat\n```\n\n> P.S. You can use hey config ```\".config/hey/conf.toml\"``` Thanks [k-aito](https://github.com/mrgick/duckduckgo-chat-ai/pull/1)\n\n\n- Using as library\n```py\nimport asyncio\nfrom duck_chat import DuckChat\n\nasync def main():\n    async with DuckChat() as chat:\n        print(await chat.ask_question(\"2+2?\"))\n        await asyncio.sleep(1)\n        print(await chat.ask_question(\"6+6?\"))\n\nasyncio.run(main())\n```\n",
    "bugtrack_url": null,
    "license": "MIT License  Copyright (c) 2024 Maxim Malahov  Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:  The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.  THE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.",
    "summary": "DuckDuckGo Chat AI client",
    "version": "1.2.2",
    "project_urls": {
        "Homepage": "https://github.com/mrgick/duckduckgo-chat-ai",
        "Issues": "https://github.com/mrgick/duckduckgo-chat-ai/issues"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "a1c98983b925c4839ea09519b869e2294309bc4d48360429ad9a2a05fbe7e4d0",
                "md5": "f07dbf2eee9d3c6fa989966ff96f188c",
                "sha256": "7695b7c4801406754103d720941b4e324337f8fb171d1717c1b4d24083620c45"
            },
            "downloads": -1,
            "filename": "duck_chat-1.2.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f07dbf2eee9d3c6fa989966ff96f188c",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.11",
            "size": 8454,
            "upload_time": "2024-08-15T10:30:37",
            "upload_time_iso_8601": "2024-08-15T10:30:37.008883Z",
            "url": "https://files.pythonhosted.org/packages/a1/c9/8983b925c4839ea09519b869e2294309bc4d48360429ad9a2a05fbe7e4d0/duck_chat-1.2.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "3b58d60d60cb79409781cd61bd4e8e5bb78d4dad59875f6579097520b5843753",
                "md5": "824278fe67ecf778ba11810a73de805e",
                "sha256": "281be19f3d16183a6f6ce53bc92f95ded2f2358ce6db3e069165085696f4fa72"
            },
            "downloads": -1,
            "filename": "duck_chat-1.2.2.tar.gz",
            "has_sig": false,
            "md5_digest": "824278fe67ecf778ba11810a73de805e",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.11",
            "size": 8514,
            "upload_time": "2024-08-15T10:30:39",
            "upload_time_iso_8601": "2024-08-15T10:30:39.061098Z",
            "url": "https://files.pythonhosted.org/packages/3b/58/d60d60cb79409781cd61bd4e8e5bb78d4dad59875f6579097520b5843753/duck_chat-1.2.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-08-15 10:30:39",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "mrgick",
    "github_project": "duckduckgo-chat-ai",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "duck-chat"
}
        
Elapsed time: 0.28920s