Skip to main content

A simple runner for Python wsgi application. Like Gunicorn but can run on Windows. It's to simple, so do not use at production environment.

Project description

runwsgi

A simple runner for Python wsgi application. Like Gunicorn but can run on Windows. It’s to simple, so do not use at production environment.

Install

pip install runwsgi

Use

run command:

runwsgi -b 128.0.0.1:8000 -d /home/robin/demo/ -p "robin" demo:app

on Windows use:

runwsgi.bat -b 128.0.0.1:8000 -d C:\Users\Administrator\Desktop\demo\ -p "robin" demo:app

if can’t find runwsgi command, try:

python -m runwsgi -b 128.0.0.1:8000 -d /home/robin/demo/ -p "robin" demo:app

open broswer with url http://127.0.0.1:8000

Other tips

1. -b

set bind address

2. -d

set you wsgi work dir

3. -p

set environment variable of WSGI_PARAMS, and then you can use "os.environ.get('WSGI_PARAMS')" to get the parameter.

4. wsgi application

model:application

CHANGES

0.0.1

  • test

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

runwsgi-0.0.1.zip (8.2 kB view details)

Uploaded Source

File details

Details for the file runwsgi-0.0.1.zip.

File metadata

  • Download URL: runwsgi-0.0.1.zip
  • Upload date:
  • Size: 8.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for runwsgi-0.0.1.zip
Algorithm Hash digest
SHA256 5dd15b1706622e24124b76095787bef47c3a1ed1d80255458549911a1975d79c
MD5 f2cb1a2faef7a08091ea0e683cfb0eb9
BLAKE2b-256 4321d0d8849eb3c3e37873bcf451b12b30d2d28497575dc313c7a7f2b85ae1d9

See more details on using hashes here.

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