https://github.com/perchunpak/htmlishell
A super simple HTML to bash compiler.
https://github.com/perchunpak/htmlishell
Last synced: 21 days ago
JSON representation
A super simple HTML to bash compiler.
- Host: GitHub
- URL: https://github.com/perchunpak/htmlishell
- Owner: PerchunPak
- License: mit
- Created: 2024-03-06T16:36:23.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2025-04-16T00:37:08.000Z (about 1 year ago)
- Last Synced: 2025-09-28T05:24:05.847Z (9 months ago)
- Language: Python
- Size: 127 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# htmlishell
[](https://www.gov.uk/government/news/ukraine-what-you-can-do-to-help)
[](https://github.com/PerchunPak/htmlishell/actions?query=workflow%3Atest)
[](https://github.com/psf/black)
[](https://www.python.org/downloads/)
A super simple HTML to bash compiler, inspired by [this moment](https://youtu.be/mokGJiXVw_4?t=1384).
```
htmlishell
| |^^^^^
| \because with sh it didn't sound
\ what Primagen likes
I hate JS so much so I won't do react, but rather just html
```
## Examples
I am too dumb (and lazy too) to do all the bash spec, so I just did a few features.
### Simple `ls`
```html
```
Transforms into
```bash
ls
```
### `ls` with arguments
```html
```
Transforms into
```bash
ls --all
```
### `ls` with short arguments
```html
```
Transforms into
```bash
ls --all -l
```
## Installing
Do not use `pip` for Python packages (see [this](https://packaging.python.org/en/latest/specifications/externally-managed-environments/#externally-managed-environments)).
TLDR: not venv-wide `pip` installation may break your system, use [`pipx`](https://pipx.pypa.io/stable/installation/) (it will manage venvs for you).
```bash
pipx install htmlishell
```
Then run
```bash
htmlishell ./path/to/your/file.html
```
## Installing for local developing
```bash
git clone https://github.com/PerchunPak/htmlishell.git
cd htmlishell
```
### Installing `poetry`
Next we need install `poetry` with [recommended way](https://python-poetry.org/docs/master/#installation).
If you use Linux, use command:
```bash
curl -sSL https://install.python-poetry.org | python -
```
If you use Windows, open PowerShell with admin privileges and use:
```powershell
(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -
```
### Installing dependencies
```bash
poetry install
```
### If something is not clear
You can always write to me!
## Thanks
This project was generated with [python-template](https://github.com/PerchunPak/python-template).