Skip to main content

A simple python https server

Project description

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]

Project details


Download files

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

Source Distribution

py-https-0.0.2.1.tar.gz (3.8 kB view hashes)

Uploaded Source

Built Distribution

py_https-0.0.2.1-py3-none-any.whl (5.3 kB view hashes)

Uploaded Python 3

Supported by

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