Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/snehankekre/streamlit-forum
Streamlit component to display topics from Streamlit's community forum related to any exception.
https://github.com/snehankekre/streamlit-forum
developer-tools discourse python streamlit streamlit-component
Last synced: 4 months ago
JSON representation
Streamlit component to display topics from Streamlit's community forum related to any exception.
- Host: GitHub
- URL: https://github.com/snehankekre/streamlit-forum
- Owner: snehankekre
- License: apache-2.0
- Created: 2022-02-09T13:02:33.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-02-11T12:03:24.000Z (almost 3 years ago)
- Last Synced: 2024-09-30T09:18:55.281Z (4 months ago)
- Topics: developer-tools, discourse, python, streamlit, streamlit-component
- Language: Python
- Homepage: https://pypi.org/project/streamlit-forum/
- Size: 5.43 MB
- Stars: 8
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# streamlit-forum
Streamlit component to display topics from Streamlit's [community forum](https://discuss.streamlit.io/) related to any exception.## Installation
[![PyPI version fury.io](https://badge.fury.io/py/streamlit-forum.svg)](https://pypi.python.org/pypi/streamlit-forum/)
```bash
pip install streamlit-forum
```## Usage
```python
import streamlit as st
from streamlit_forum import forumwith forum():
import streamlit as st
# Your code that may raise an exception here. E.g.
0/0
```https://user-images.githubusercontent.com/20672874/153559386-02d1eee9-267e-4438-b760-e853244f5e63.mp4
## Docs
To view the docstring, import Streamlit and the component and call `st.help(forum)`.
```markdown
streamlit_forum.forum(top=5, criteria='broad', sortby='relevance', status='any')
Use in a `with` block to execute some code and display
topics from Streamlit's community forum related to any exception.Parameters
----------
top : int
Number of topics to display. Default is 5.
criteria : str
Search criteria. Either 'broad' or 'narrow'. Default is 'broad'.
sortby : str
Sort criteria. Either 'relevance', 'views', 'likes', or 'latest_topic'.
Default is 'relevance'.
status : str
Status of forum topic. Either 'open', 'closed', 'public', 'archived',
'noreplies', 'single_user', 'solved', 'unsolved'. Default is 'any'.Examples
--------
>>> import streamlit as st
>>> from streamlit_forum import forum
...
>>> with forum():
>>> import streamlit as st
>>> # Your code that may raise an exception here. E.g.
>>> 0/0```