Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/iamaziz/fh_pyconsole
A simple FastHTML app to turn browser into Python console. (Experimental ☢️)
https://github.com/iamaziz/fh_pyconsole
fasthtml pythonconsole
Last synced: 27 days ago
JSON representation
A simple FastHTML app to turn browser into Python console. (Experimental ☢️)
- Host: GitHub
- URL: https://github.com/iamaziz/fh_pyconsole
- Owner: iamaziz
- License: mit
- Created: 2024-08-12T11:36:06.000Z (3 months ago)
- Default Branch: main
- Last Pushed: 2024-08-13T20:31:39.000Z (3 months ago)
- Last Synced: 2024-08-14T13:45:51.947Z (3 months ago)
- Topics: fasthtml, pythonconsole
- Language: Python
- Homepage: https://pyconsole.up.railway.app
- Size: 3.9 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# PyConsole
Turn browser into a console for Python using [FastHTML](https://github.com/answerdotai/fasthtml) (in 34 lines).
# Usage
**Setup**
```shell
pip install python-fasthtml
git clone https://github.com/iamaziz/fh_pyconsole.git
cd fh_pyconsole
```**Run**
```python
python main.py
```Open browser and navigate to `http://localhost:5001`
# Demo
[![](./demo.mov)](https://github.com/user-attachments/assets/3d37e95f-fcd2-491d-adac-be86777ef591)
A live demo is available [here](https://pyconsole.up.railway.app/) and [here](https://huggingface.co/spaces/azizalto/fh_pyconsole).
## Disclaimer ⚠️
> Under the hood, `exec()` is used to execute Python code.