streamlit-openai


Namestreamlit-openai JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/sbslee/streamlit-openai
SummaryBuild AI chatbots with Streamlit and OpenAI's API
upload_time2025-02-07 05:24:05
maintainerNone
docs_urlNone
authorSeung-been "Steven" Lee
requires_pythonNone
licenseMIT
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # streamlit-openai

## Installation

```
$ pip install streamlit-openai
```

## Usage

Save the following code to `app.py`:

```
import streamlit as st
import streamlit_openai as so

if "chat" not in st.session_state:
    # Use Chat Completions API
    st.session_state.chat = so.utils.BasicChat()

    # Alternatively, use Assistants API
    # st.session_state.chat = so.utils.AssistantChat()

st.session_state.chat.start()
```

Run the app:

```
$ streamlit run app.py
```


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/sbslee/streamlit-openai",
    "name": "streamlit-openai",
    "maintainer": null,
    "docs_url": null,
    "requires_python": null,
    "maintainer_email": null,
    "keywords": null,
    "author": "Seung-been \"Steven\" Lee",
    "author_email": "sbstevenlee@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/c5/2a/341d1c8c377e2edd8f5edfc0ef8f9482d3ce0a64eb2886640f87ac65cc14/streamlit-openai-0.0.2.tar.gz",
    "platform": null,
    "description": "# streamlit-openai\n\n## Installation\n\n```\n$ pip install streamlit-openai\n```\n\n## Usage\n\nSave the following code to `app.py`:\n\n```\nimport streamlit as st\nimport streamlit_openai as so\n\nif \"chat\" not in st.session_state:\n    # Use Chat Completions API\n    st.session_state.chat = so.utils.BasicChat()\n\n    # Alternatively, use Assistants API\n    # st.session_state.chat = so.utils.AssistantChat()\n\nst.session_state.chat.start()\n```\n\nRun the app:\n\n```\n$ streamlit run app.py\n```\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Build AI chatbots with Streamlit and OpenAI's API",
    "version": "0.0.2",
    "project_urls": {
        "Homepage": "https://github.com/sbslee/streamlit-openai"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "5b09a65c563fe7a5ee4a35662d487b4791340ddf7a5580368011a3091e84247c",
                "md5": "e9fc8fe57b0742df455f8f6568395c82",
                "sha256": "d56b3ed28351fecb2b54ab90374faee89d0de35f62a59a6412a8c874aa3dc328"
            },
            "downloads": -1,
            "filename": "streamlit_openai-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "e9fc8fe57b0742df455f8f6568395c82",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": null,
            "size": 5179,
            "upload_time": "2025-02-07T05:24:04",
            "upload_time_iso_8601": "2025-02-07T05:24:04.166825Z",
            "url": "https://files.pythonhosted.org/packages/5b/09/a65c563fe7a5ee4a35662d487b4791340ddf7a5580368011a3091e84247c/streamlit_openai-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": null,
            "digests": {
                "blake2b_256": "c52a341d1c8c377e2edd8f5edfc0ef8f9482d3ce0a64eb2886640f87ac65cc14",
                "md5": "58953304bc29b559932d8efffc512fa0",
                "sha256": "4f3deb12488ce13a065db69e264c4000d5978fe656caba09b35767a874bec52b"
            },
            "downloads": -1,
            "filename": "streamlit-openai-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "58953304bc29b559932d8efffc512fa0",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": null,
            "size": 3651,
            "upload_time": "2025-02-07T05:24:05",
            "upload_time_iso_8601": "2025-02-07T05:24:05.833428Z",
            "url": "https://files.pythonhosted.org/packages/c5/2a/341d1c8c377e2edd8f5edfc0ef8f9482d3ce0a64eb2886640f87ac65cc14/streamlit-openai-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2025-02-07 05:24:05",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "sbslee",
    "github_project": "streamlit-openai",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": false,
    "lcname": "streamlit-openai"
}
        
Elapsed time: 0.59139s