https://github.com/shreyansh26/pyscript-flask-integration-poc
A quick PoC demonstrating how PyScript can be used with Flask to handle variables and dataframes and display analytics over them through plots.
https://github.com/shreyansh26/pyscript-flask-integration-poc
flask matplotlib numpy pandas pyscript
Last synced: 6 months ago
JSON representation
A quick PoC demonstrating how PyScript can be used with Flask to handle variables and dataframes and display analytics over them through plots.
- Host: GitHub
- URL: https://github.com/shreyansh26/pyscript-flask-integration-poc
- Owner: shreyansh26
- License: mit
- Created: 2022-05-03T07:36:54.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2022-05-03T13:59:06.000Z (over 3 years ago)
- Last Synced: 2025-03-24T18:52:36.129Z (7 months ago)
- Topics: flask, matplotlib, numpy, pandas, pyscript
- Language: HTML
- Homepage:
- Size: 162 KB
- Stars: 8
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyScript-Flask Integration PoC
The PoC aims to show how to use PyScript with Flask. The Flask server sends some data to the template, PyScript reads it using Pandas and makes a Matplotlib plot on the data. Additionally, I also show how more plots can be displayed on the webpage easily through the PyScript support for Numpy and Matplotlib.

## Usage
Simply run the following command to run the Flask app
```
python app.py
```Then head to `localhost:5000`.
### Huge thanks to [pyscript](https://github.com/pyscript/pyscript) for this amazing project! :clap: :clap: