Skip to main content

A super simple HTML to bash compiler.

Project description

htmlishell

Support Ukraine

Build Status Code style: black Python support versions badge (from pypi)

A super simple HTML to bash compiler, inspired by this moment.

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

<ls />

Transforms into

ls

ls with arguments

<ls>
  <all />
</ls>

Transforms into

ls --all

ls with short arguments

<ls>
  <all />
  <l short=true />
</ls>

Transforms into

ls --all -l

Installing

Do not use pip for Python packages (see this). TLDR: not venv-wide pip installation may break your system, use pipx (it will manage venvs for you).

pipx install htmlishell

Then run

htmlishell ./path/to/your/file.html

Installing for local developing

git clone https://github.com/PerchunPak/htmlishell.git
cd htmlishell

Installing poetry

Next we need install poetry with recommended way.

If you use Linux, use command:

curl -sSL https://install.python-poetry.org | python -

If you use Windows, open PowerShell with admin privileges and use:

(Invoke-WebRequest -Uri https://install.python-poetry.org -UseBasicParsing).Content | python -

Installing dependencies

poetry install

If something is not clear

You can always write to me!

Thanks

This project was generated with python-template.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

htmlishell-0.2.0.tar.gz (3.5 kB view hashes)

Uploaded Source

Built Distribution

htmlishell-0.2.0-py3-none-any.whl (4.3 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page