Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

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 ☢️)

Awesome Lists containing this project

README

        

# PyConsole


Railway Badge

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.