Skip to main content

Simple WSGI server using pyuv

Project description

uvwsgi is a Python WSGI server whhich uses libuv and http-parser libraries also used in Node.JS through their Python binding libraries:

Motivalion

There are abunch of great WSGI servers out there, so why create a new one? I’ve been playing with Flask and WSGI lately and I wanted to see the guts of it. As you can see the code is pretty short, I expect to make more changes and more features to it though.

Status

uvwsgi should not be used in production. It’s still work in progress.

Installtion

uvwsgi can be easily installed with pip:

pip install uvwsgi

Usage

Example usage:

from flask import Flask
from uvwsgi import run

app = Flask(__name__)

@app.route('/')
def index():
    return 'hello world!'

run(app, ('0.0.0.0', 8088))

The uvwsgi command line application can also be used to serve WSGI applications directly. Assuming the code above this lines is stored in a file called tst.py, it can be served as follows:

uvwsgi tst:app --port 8888

NOTE: You need to install the package first in order to have the uvwsgi command available.

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

uvwsgi-0.1.0.tar.gz (6.4 kB view details)

Uploaded Source

File details

Details for the file uvwsgi-0.1.0.tar.gz.

File metadata

  • Download URL: uvwsgi-0.1.0.tar.gz
  • Upload date:
  • Size: 6.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for uvwsgi-0.1.0.tar.gz
Algorithm Hash digest
SHA256 43038f131f85138febdaceb3a47e031e5d2fa1f1d99dbc952786b16bcd777e22
MD5 692db18d91c437005d8ba167769b6e5f
BLAKE2b-256 427e93bf69548716491198bbc5fff7fdd4f83868d921b6f3bbe1a3cb5f83bc30

See more details on using hashes here.

Provenance

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