avinashkarhana / py-https

A simple python https server

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build and Publish to PyPI

py-https

A simple python https server

INSTALLATION:

pip install py-https

USAGE:

As a module from any location

 python3 -m pyhttps [-option value] [port]

In script

 from pyhttps import startserver

 startServer(host,port,cert,key)
 ##cert : certificate file location
 ##key  : key file location

OPTIONS:

--v             Version Info(**)
--help          Help and usage Info(**)
-p              Port Number [Port 443,80 may require sudo or elivated permissions]
-h              Host address
-c              ssl cert file location
-k              ssl key file location
-gencert        Auto Generate SSL Cert and Key(#)
(-gencert [Value]: Target Path for generating certificates)

** [No value needed for these type of options]
#  [Optional value for this type of option]

>>> openssl must be installed and included in PATH for -gencert otpion to work

About

A simple python https server

License:MIT License


Languages

Language:Python 100.0%