Skip to main content

Simple Python HTTP Exec Server

Project description

Pypi version example Licence Python versions

pywebexec

Simple Python HTTP(S) API/Web Command Launcher

Install

$ pip install pywebexec

Quick start

  • start http server serving current directory executables listening on 0.0.0.0 port 8080
$ pywebexec
  • Launch commands with params/view live output/Status using browser http://<yourserver>:8080

features

  • Serve executables in current directory
  • Launch commands with params from web browser
  • Follow live output
  • Stop command
  • Relaunch command
  • HTTPS support
  • HTTPS self-signed certificate generator
  • Can be started as a daemon (POSIX)
  • uses gunicorn to serve http/https

Customize server

$ pywebexec --listen 0.0.0.0 --port 8080
$ pywebexec -l 0.0.0.0 -p 8080

Basic auth user/password

$ pywebexec --user myuser [--password mypass]
$ pywebfs -u myuser [-P mypass]

Generated password is given if no --pasword option

HTTPS server

  • Generate auto-signed certificate and start https server
$ pywebfs --gencert
$ pywebfs --g
  • Start https server using existing certificate
$ pywebfs --cert /pathto/host.cert --key /pathto/host.key
$ pywebfs -c /pathto/host.cert -k /pathto/host.key

Launch server as a daemon (Linux)

$ pywebexec start
$ pywebexec status
$ pywebexec stop
  • log of server are stored in current directory .web_status/pwexec_<listen>:<port>.log

Project details


Release history Release notifications | RSS feed

This version

0.0.3

Download files

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

Source Distribution

pywebexec-0.0.3.tar.gz (14.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pywebexec-0.0.3-py3-none-any.whl (13.8 kB view details)

Uploaded Python 3

File details

Details for the file pywebexec-0.0.3.tar.gz.

File metadata

  • Download URL: pywebexec-0.0.3.tar.gz
  • Upload date:
  • Size: 14.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for pywebexec-0.0.3.tar.gz
Algorithm Hash digest
SHA256 1b7bcbdebbdabeb9b57b73df56e73381b9ac14b50b60cd6f9d58d879fa47604f
MD5 01c532606f553dfcfd0dae8f9230bec6
BLAKE2b-256 097c7446803fb1c99ab599493b92d3e4299811c77f6e8aa62e76480ad33d0824

See more details on using hashes here.

File details

Details for the file pywebexec-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pywebexec-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 13.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.0.1 CPython/3.9.21

File hashes

Hashes for pywebexec-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f60a0cfc420120bea1309df7793df969216fc7b494a0ee0f04e0376acffc4400
MD5 135d240b373acb8ca5026a8cd1e4d427
BLAKE2b-256 88cb4fa87a998568be51229c2f95261271bc66ccd108df767825e0767ea166ec

See more details on using hashes here.

Supported by

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