Simple Python HTTP Exec Server
Project description
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
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
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.0.tar.gz
(16.3 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
pywebexec-0.1.0-py3-none-any.whl
(15.1 kB
view details)
File details
Details for the file pywebexec-0.1.0.tar.gz.
File metadata
- Download URL: pywebexec-0.1.0.tar.gz
- Upload date:
- Size: 16.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d647283890e60db9b18d227e6f0d39e3269852148bdd64f02c899a937e58d07a
|
|
| MD5 |
ee5133832063e5bab2134ff2e702089f
|
|
| BLAKE2b-256 |
f1b4daa812b69c32769e6bfb6ef7ca0d66918313f4279e53f06bf69cc0145e41
|
File details
Details for the file pywebexec-0.1.0-py3-none-any.whl.
File metadata
- Download URL: pywebexec-0.1.0-py3-none-any.whl
- Upload date:
- Size: 15.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.9.21
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3d1bd53620cea317502389c08f251812157b16aba9b34193373d007eeb384b27
|
|
| MD5 |
c83e972a642ad4a7e957db247a26791d
|
|
| BLAKE2b-256 |
06466af462160e4b8a239e2f6b85dd0c63151ff3ac2f70a50e9b84b5b8e67381
|