chatgpt-bot


Namechatgpt-bot JSON
Version 0.2.1 PyPI version JSON
download
home_pagehttps://github.com/skorokithakis/ChatGPT-Bot
SummaryA library that takes the pain out of creating ChatGPT bots.
upload_time2023-11-23 00:09:17
maintainer
docs_urlNone
authorStavros Korokithakis
requires_python>=3.7
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            ChatGPT Bot
===========

This is a small library that tries to make it easier to create a ChatGPT bot. It has
a simple interface that keeps conversational context in a SQLite database:

```python
from chatgpt_bot import Conversation

>>> conversation = Conversation("some random ID", api_key="YOUR_OPENAI_API_KEY")
>>> conversation.ask("Hi, how are you today?")
"As an AI language model, I don't have feelings, but I'm always ready to assist you
with any questions or tasks you have. How can I help you today?"

>>> conversation.set_metadata({"anything": "here"})
>>> conversation.get_metadata()
{"anything": "here"}
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/skorokithakis/ChatGPT-Bot",
    "name": "chatgpt-bot",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "Stavros Korokithakis",
    "author_email": "hi@stavros.io",
    "download_url": "https://files.pythonhosted.org/packages/17/2c/0f745d2dc683908523504dba97653da7698f910126078ae0feff3132a8a3/chatgpt_bot-0.2.1.tar.gz",
    "platform": null,
    "description": "ChatGPT Bot\n===========\n\nThis is a small library that tries to make it easier to create a ChatGPT bot. It has\na simple interface that keeps conversational context in a SQLite database:\n\n```python\nfrom chatgpt_bot import Conversation\n\n>>> conversation = Conversation(\"some random ID\", api_key=\"YOUR_OPENAI_API_KEY\")\n>>> conversation.ask(\"Hi, how are you today?\")\n\"As an AI language model, I don't have feelings, but I'm always ready to assist you\nwith any questions or tasks you have. How can I help you today?\"\n\n>>> conversation.set_metadata({\"anything\": \"here\"})\n>>> conversation.get_metadata()\n{\"anything\": \"here\"}\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A library that takes the pain out of creating ChatGPT bots.",
    "version": "0.2.1",
    "project_urls": {
        "Homepage": "https://github.com/skorokithakis/ChatGPT-Bot",
        "Repository": "https://github.com/skorokithakis/ChatGPT-Bot"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2a66e74b54cd702e3b917308bc4edadeb7dd6392f1e2bd0c880e215f19684d0e",
                "md5": "62b9617394a8cd8ca0c2ebac8fcc38e8",
                "sha256": "8eca6dd8322efdb3a758b072b45f2cc9c9e698c6ec6a9c2ceceaf93dd3758e37"
            },
            "downloads": -1,
            "filename": "chatgpt_bot-0.2.1-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "62b9617394a8cd8ca0c2ebac8fcc38e8",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.7",
            "size": 3275,
            "upload_time": "2023-11-23T00:09:15",
            "upload_time_iso_8601": "2023-11-23T00:09:15.584701Z",
            "url": "https://files.pythonhosted.org/packages/2a/66/e74b54cd702e3b917308bc4edadeb7dd6392f1e2bd0c880e215f19684d0e/chatgpt_bot-0.2.1-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "172c0f745d2dc683908523504dba97653da7698f910126078ae0feff3132a8a3",
                "md5": "b6091f23355fd266da346cc1664febb0",
                "sha256": "8ebafbd6f4d98f095305abecc4d8bf3dd516c9d8df7ebe36f04b8c617c780cd6"
            },
            "downloads": -1,
            "filename": "chatgpt_bot-0.2.1.tar.gz",
            "has_sig": false,
            "md5_digest": "b6091f23355fd266da346cc1664febb0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.7",
            "size": 2953,
            "upload_time": "2023-11-23T00:09:17",
            "upload_time_iso_8601": "2023-11-23T00:09:17.266337Z",
            "url": "https://files.pythonhosted.org/packages/17/2c/0f745d2dc683908523504dba97653da7698f910126078ae0feff3132a8a3/chatgpt_bot-0.2.1.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-23 00:09:17",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "skorokithakis",
    "github_project": "ChatGPT-Bot",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "chatgpt-bot"
}
        
Elapsed time: 0.15885s