The uWSGI server as a Python module
Install
pip install pyuwsgi
Run
uWSGI will get installed to your Python path with a console script named pyuwsgi
. To
make it a full drop-in replacement it will install a script named uwsgi
as well.
You can also call it directly in your Python code with a list of valid uWSGI options:
import pyuwsgi
pyuwsgi.run(["--help"])
Differences from uWSGI
This is built from uWSGI's source without any modifications.
A different setup.py
is used to make the project a friendlier part of the Python ecosystem. It allows it
to be imported as a Python module and distributed using the
wheel format. The pre-packaged wheels
include the following common libraries used by uWSGI:
SSL is intentionally excluded for security reasons. If you need SSL support, you can
force a wheel to be built locally with the pip
flag --no-binary=pyuwsgi
.
In addition to the default plugins, the stats_pusher_statsd
plugin is included by default in pyuwsgi
where it is typically optional for uWSGI.
The full uWSGI documentation can be found at
https://uwsgi-docs.readthedocs.io.
License
uWSGI is licensed GPLv2 with
a linking exception which means
you are allowed to use uWSGI (or pyuwsgi) unmodified in a proprietary or otherwise non-GPL
licensed project without invoking the GPL on the rest of the code.
The full license can be found
on GitHub.
![Lincoln Loop](https://cldup.com/gyNz5rfTkR.png)
pyuwsgi
is sponsored by Lincoln Loop.
![Unbit](https://cldup.com/TTNag1Zlcw.png)
uwsgi
is the creation of Unbit.