Skip to main content

Web Command

Output a command to a web browser console.

Install

pip install web-command

Example

web-command -s -l info -w 60 -- curl -s https://wttr.in/los-angeles

Browse http://localhost:8000/ to see the output.

Usage

usage: web-command [-h] [-a HOST] [-p PORT] [-s] [-l LEVEL] [-w WAIT_TIME]
                   [-V]
                   [COMMAND [COMMAND ...]]

Output a command to a web browser.

positional arguments:
  COMMAND               command to run (default: None)

optional arguments:
  -h, --help            show this help message and exit
  -a HOST, --host HOST  host to bind to (default: localhost)
  -p PORT, --port PORT  port to bind to (default: 8000)
  -s, --suppress-output
                        suppress output (default: False)
  -l LEVEL, --log-level LEVEL
                        log level (default: none)
  -w WAIT_TIME, --wait-time WAIT_TIME
                        seconds to wait before restarting command (default: 5)
  -V, --version         show version and exit (default: False)

Development

git clone https://github.com/vjagaro/web-command.git
cd web-command-server
poetry install
npm install
npm run build

To build and publish:

poetry build
poetry config repositories.testpypi https://test.pypi.org/legacy/
poetry publish -r testpypi
# In another virtual environment:
pip install --index-url https://test.pypi.org/simple/ web-command
# If this looks good...
poetry publish

Metadata

Release files for web-command 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for web-command 0.1.0
File Size Uploaded
web-command-0.1.0.tar.gz 73.9 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for web-command 0.1.0
File Interpreter ABI Platform
web_command-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 148.5 kB

Release files / web-command-0.1.0.tar.gz

Download URL web-command-0.1.0.tar.gz
Size 73.9 kB
Tags Source
SHA-256 checksum
How to use checksums
3f48143e8865463f04fac58794e1316cf6888c4b875ceec8a3b1a0034b808fbb
BLAKE2b-256 checksum
How to use checksums
2db6c63b3259827f8285d697f3485b471bdd5ab07e57cab85b24072fa67705a5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.7.3 Linux/4.19.0-10-amd64

Release files / web_command-0.1.0-py3-none-any.whl

Download URL web_command-0.1.0-py3-none-any.whl
Size 74.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7698af7cc5787aaa682be5a1ec37905467423640c3ec55ecf940b279a6f08cb8
BLAKE2b-256 checksum
How to use checksums
24107c40e597bc76b364b05a38c542688c2e76db770900b78ba8fd96f7549a10
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.0.10 CPython/3.7.3 Linux/4.19.0-10-amd64

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page