Skip to main content

React-ish bash dialect.

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.1.0.post1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

htmlishell-0.1.0.post1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file htmlishell-0.1.0.post1.tar.gz.

File metadata

  • Download URL: htmlishell-0.1.0.post1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/4.0.2 CPython/3.11.8

File hashes

Hashes for htmlishell-0.1.0.post1.tar.gz
Algorithm Hash digest
SHA256 f9dd777b5331f68a7073fccff6d22acf5b67bb9b7a183cf453cb7cc45b31efd7
MD5 ef35b37044eb9603479a5621a3c345c6
BLAKE2b-256 f843d50fb79ff56011d4db66d75b41cb0cc4ec21ac187c0fa2453046e7e90bec

See more details on using hashes here.

File details

Details for the file htmlishell-0.1.0.post1-py3-none-any.whl.

File metadata

File hashes

Hashes for htmlishell-0.1.0.post1-py3-none-any.whl
Algorithm Hash digest
SHA256 02eeef9fae3633c982fe96f273aa73e262a9a7a40aa0baf8a4fb87028a7bb851
MD5 65b17e48e0861d485b6d3208fdca97d5
BLAKE2b-256 7cf08e94bf29dc07407529cb0a09e7dbe3c22e97e76a3332b05b190ade74a7c0

See more details on using hashes here.

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