https://github.com/entorb/streamlit-examples
Streamlit Examples / Snippets
https://github.com/entorb/streamlit-examples
altair azure msal postgresql python streamlit
Last synced: 6 months ago
JSON representation
Streamlit Examples / Snippets
- Host: GitHub
- URL: https://github.com/entorb/streamlit-examples
- Owner: entorb
- License: gpl-3.0
- Created: 2024-12-19T02:00:23.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2025-02-09T14:06:55.000Z (8 months ago)
- Last Synced: 2025-02-09T15:22:37.827Z (8 months ago)
- Topics: altair, azure, msal, postgresql, python, streamlit
- Language: Python
- Homepage:
- Size: 52.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Streamlit Examples / Snippets
Some code examples using Python [Streamlit](https://streamlit.io).
## Contents
* [app.py](src/app.py): Main app including multiple examples in [src/reports](src/reports/)
* [Selects](src/reports/r02_Selects.py): selects, filter, read write url parameters
* [Charts](src/reports/r03_Charts.py): x-y-lines, regression, mean; bar charts
* [Tables](src/reports/r04_Tables.py): simple to fancy tables
* [Data_Editor](src/reports/r05_Data_Editor.py): data editor with save button
* [File_Download](src/reports/r11_File_Download.py): Download data as text or Excel file
* [File_Upload](src/reports/r12_File_Upload.py): Upload data
* Stand-alone example apps
* [app_azure_login_msal.py](src/app_azure_login_msal.py): Azure Login/Authentication using MSAL
* [app_db_con_limit.py](src/app_db_con_limit.py): Database access, using connection pool to restrict concurrent connections
* [app_localization.py](src/app_localization.py): Language localization## Repo Setup
### Install
Using Python 3.11 here, since my webserver does not yet provide 3.12 or newer.
see [install.sh](scripts/install.sh)
### Run
see [run.sh](scripts/run.sh)
### Check Code
```sh
pre-commit run --all-files
pytest --cov --cov-report=html:coverage_report
```are executed via a [GitHub Action](.github/workflows/check.yml)
### Config
see [.streamlit/config.toml](.streamlit/config.toml)
can be converted to `config-prod.toml` via [scripts/config_convert.py](scripts/config_convert.py)## Links
### My Streamlit Projects
*
*### Other Python Examples/Snippets
*
*
*