# streamlit-gpt-vis
[![Latest Stable Version](https://img.shields.io/pypi/v/streamlit-gpt-vis.svg)](https://pypi.python.org/pypi/streamlit-gpt-vis) [![Pypi Download](https://img.shields.io/pypi/dm/streamlit-gpt-vis)](https://pypi.python.org/pypi/streamlit-gpt-vis)
Streamlit binding for [`@AntV/GPT-Vis`](https://github.com/antvis/GPT-Vis) Components for GPTs, generative AI, and LLM projects. Not only UI Components.
## Installation
```sh
pip install streamlit-gpt-vis
```
## Usage
```python
import streamlit as st
from streamlit_gpt_vis import set_gpt_vis
content = '''
# GPT-VIS \n\nComponents for GPTs, generative AI, and LLM projects. Not only UI Components.
Here’s a visualization of Haidilao's food delivery revenue from 2013 to 2022. You can see a steady increase over the years, with notable *growth* particularly in recent years.
\`\`\`vis-chart
{"type": "line","data": [{"time":2013,"value":59.3},{"time":2014,"value":64.4},{"time":2015,"value":68.9},{"time":2016,"value":74.4},{"time":2017,"value":82.7},{"time":2018,"value":91.9},{"time":2019,"value":99.1},{"time":2020,"value":101.6},{"time":2021,"value":114.4},{"time":2022,"value":121}]}
\`\`\`
'''
set_gpt_vis(content)
```
## API
### `set_gpt_vis(content: str, config: dict = None)`
- content:Markdown content
- config: GPT-Vis [ConfigProvider](https://github.com/antvis/GPT-Vis/blob/main/src/ConfigProvider/index.md) config
## License
[MIT](./LICENSE)
Raw data
{
"_id": null,
"home_page": "https://github.com/antvis/GPT-Vis/bindings/streamlit-gpt-vis",
"name": "streamlit-gpt-vis",
"maintainer": null,
"docs_url": null,
"requires_python": ">=3.7",
"maintainer_email": null,
"keywords": null,
"author": "@lvisei",
"author_email": "yunji.me@outlook.com",
"download_url": "https://files.pythonhosted.org/packages/ac/5f/4fb1c91f949eb982aa30fd23e9b7b824c26fd75ff35561ce4f29d9723a02/streamlit-gpt-vis-0.0.3.tar.gz",
"platform": null,
"description": "# streamlit-gpt-vis\n\n[![Latest Stable Version](https://img.shields.io/pypi/v/streamlit-gpt-vis.svg)](https://pypi.python.org/pypi/streamlit-gpt-vis) [![Pypi Download](https://img.shields.io/pypi/dm/streamlit-gpt-vis)](https://pypi.python.org/pypi/streamlit-gpt-vis)\n\nStreamlit binding for [`@AntV/GPT-Vis`](https://github.com/antvis/GPT-Vis) Components for GPTs, generative AI, and LLM projects. Not only UI Components.\n\n## Installation\n\n```sh\npip install streamlit-gpt-vis\n```\n\n## Usage\n\n```python\nimport streamlit as st\nfrom streamlit_gpt_vis import set_gpt_vis\n\ncontent = '''\n# GPT-VIS \\n\\nComponents for GPTs, generative AI, and LLM projects. Not only UI Components.\n\nHere\u2019s a visualization of Haidilao's food delivery revenue from 2013 to 2022. You can see a steady increase over the years, with notable *growth* particularly in recent years.\n\n\\`\\`\\`vis-chart\n{\"type\": \"line\",\"data\": [{\"time\":2013,\"value\":59.3},{\"time\":2014,\"value\":64.4},{\"time\":2015,\"value\":68.9},{\"time\":2016,\"value\":74.4},{\"time\":2017,\"value\":82.7},{\"time\":2018,\"value\":91.9},{\"time\":2019,\"value\":99.1},{\"time\":2020,\"value\":101.6},{\"time\":2021,\"value\":114.4},{\"time\":2022,\"value\":121}]}\n\\`\\`\\`\n'''\n\nset_gpt_vis(content)\n```\n\n## API\n\n### `set_gpt_vis(content: str, config: dict = None)`\n\n- content\uff1aMarkdown content\n- config: GPT-Vis [ConfigProvider](https://github.com/antvis/GPT-Vis/blob/main/src/ConfigProvider/index.md) config\n\n## License\n\n[MIT](./LICENSE)\n\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Binding for GPT-Vis, Components for GPTs, generative AI, and LLM projects. Not only UI Components.",
"version": "0.0.3",
"project_urls": {
"Homepage": "https://github.com/antvis/GPT-Vis/bindings/streamlit-gpt-vis"
},
"split_keywords": [],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "7896358fbe6948cf38cb660fca8b6aa064a50e7fead75212f7ef72ea397b5749",
"md5": "7a47c73369893f1e4e35d57ea5362615",
"sha256": "c9b562ae702c46bb57abbc4bb404d2dbbd0f7be31b09f0ce0991fa0f665e7b28"
},
"downloads": -1,
"filename": "streamlit_gpt_vis-0.0.3-py3-none-any.whl",
"has_sig": false,
"md5_digest": "7a47c73369893f1e4e35d57ea5362615",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": ">=3.7",
"size": 1404639,
"upload_time": "2024-12-02T03:43:38",
"upload_time_iso_8601": "2024-12-02T03:43:38.813404Z",
"url": "https://files.pythonhosted.org/packages/78/96/358fbe6948cf38cb660fca8b6aa064a50e7fead75212f7ef72ea397b5749/streamlit_gpt_vis-0.0.3-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "ac5f4fb1c91f949eb982aa30fd23e9b7b824c26fd75ff35561ce4f29d9723a02",
"md5": "58a99a38944b5f8ffcd1ebf2e0a1080b",
"sha256": "270c8ba59316e02ccb68e59e6e9758e4f83534eae5a57d89f52b3359828cb6c3"
},
"downloads": -1,
"filename": "streamlit-gpt-vis-0.0.3.tar.gz",
"has_sig": false,
"md5_digest": "58a99a38944b5f8ffcd1ebf2e0a1080b",
"packagetype": "sdist",
"python_version": "source",
"requires_python": ">=3.7",
"size": 1399675,
"upload_time": "2024-12-02T03:43:46",
"upload_time_iso_8601": "2024-12-02T03:43:46.246542Z",
"url": "https://files.pythonhosted.org/packages/ac/5f/4fb1c91f949eb982aa30fd23e9b7b824c26fd75ff35561ce4f29d9723a02/streamlit-gpt-vis-0.0.3.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-12-02 03:43:46",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "antvis",
"github_project": "GPT-Vis",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "streamlit-gpt-vis"
}