An open API service indexing awesome lists of open source software.

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

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

*
*
*