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 directory [.config/].pywebexec/pywebexec_<listen>:<port>.log

Project details


Release history Release notifications | RSS feed

This version

0.1.1

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.1.1.tar.gz (16.4 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.1.1-py3-none-any.whl (15.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pywebexec-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4fa73d07a227488f7a91295a41a2a1c78ae65a55eb23d7fc9cfb40fd52ab87f3
MD5 b72e53ecafe3f7b731292abd4ec34f84
BLAKE2b-256 c23b30ae626015e000ec2f8916c317206121a248a8da5af061cfa184ff44fe00

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pywebexec-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 15.2 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 20b78228d6d404afa7fbcc9df0b4b2541e12878d0229efaf7a0fa65114b096c2
MD5 43a6f262898e8edab82e0c74dce8c9e0
BLAKE2b-256 c50df5be3bbd0f996160b491873fd76c571fcb9ca610c5b5bcdc0060f6b7d76e

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