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 image

features

  • Serve executables in current directory
  • Launch commands with params from web browser or API call
  • 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.5

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.5.tar.gz (15.0 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.5-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pywebexec-0.0.5.tar.gz
  • Upload date:
  • Size: 15.0 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.5.tar.gz
Algorithm Hash digest
SHA256 4f8b0187d1cbdc77bc7b83f5fc04aa05ceabc391e2b52222c87b98ff0862c89c
MD5 3c104776c2005446b83902605704b5c0
BLAKE2b-256 5b4614f5f78bf1ca34114cfd50b475c10d548c8be16877262d090dc26cff2211

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywebexec-0.0.5-py3-none-any.whl
  • Upload date:
  • Size: 13.9 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.5-py3-none-any.whl
Algorithm Hash digest
SHA256 9575a04ddc6bab744e1a210d340fa5882e1c6a887f6e2ee0c51078173b8a6459
MD5 598191079c92fd4c13923a35bd822b2a
BLAKE2b-256 82cfa8e492309db93eedb227495d4569c2f22ca2434b0daee11d47835f0522a6

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