Metadata-Version: 2.4
Name: PoorWSGI
Version: 2.8.0
Summary: Poor WSGI connector for Python
Home-page: http://poorhttp.zeropage.cz/poorwsgi
Author: Ondřej Tůma
Author-email: mcbig@zeropage.cz
Maintainer: Ondrej Tuma
Maintainer-email: mcbig@zeropage.cz
License: BSD
Project-URL: Documentation, http://poorhttp.zeropage.cz/poorwsgi
Project-URL: Funding, https://github.com/sponsors/ondratu
Project-URL: Source, https://github.com/poorHttp/PoorWSGI
Project-URL: Tracker, https://github.com/PoorHttp/PoorWSGI/issues
Keywords: web wsgi development
Classifier: Development Status :: 5 - Production/Stable
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: Natural Language :: English
Classifier: Natural Language :: Czech
Classifier: Operating System :: MacOS :: MacOS X
Classifier: Operating System :: POSIX
Classifier: Operating System :: POSIX :: BSD
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Internet :: WWW/HTTP :: WSGI :: Middleware
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Requires-Python: >=3.11
Description-Content-Type: text/x-rst
License-File: doc/licence.txt
Provides-Extra: jsongeneratorresponse
Requires-Dist: simplejson; extra == "jsongeneratorresponse"
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: license-file
Dynamic: maintainer
Dynamic: maintainer-email
Dynamic: project-url
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

.. image:: https://img.shields.io/pypi/v/PoorWSGI.svg
    :target: https://pypi.python.org/pypi/poorwsgi/
    :alt: Latest version

.. image:: https://img.shields.io/pypi/pyversions/PoorWSGI.svg
    :target: https://pypi.python.org/pypi/poorwsgi/
    :alt: Supported Python versions

.. image:: https://img.shields.io/pypi/status/PoorWSGI.svg
    :target: https://pypi.python.org/pypi/poorwsgi/
    :alt: Development Status

.. image:: https://img.shields.io/github/actions/workflow/status/PoorHTTP/PoorWSGI/python-package.yml?branch=master
    :target: https://github.com/PoorHttp/PoorWSGI/actions/workflows/python-package.yml
    :alt: GitHub Build Workflow Status

.. image:: https://img.shields.io/github/actions/workflow/status/PoorHTTP/PoorWSGI/codeql-analysis.yml?branch=master&label=CodeQL
    :target: https://github.com/PoorHttp/PoorWSGI/actions/workflows/codeql-analysis.yml
    :alt: GitHub CodeQL Workflow Status

.. image:: https://img.shields.io/pypi/l/PoorWSGI.svg
    :target: https://pypi.python.org/pypi/poorwsgi/
    :alt: License

Poor WSGI for Python
====================

Poor WSGI for Python is a lightweight WSGI connector with URI routing between the WSGI server
and your application. The simplest way to run and test it looks like this:

.. code-block:: python

    from wsgiref.simple_server import make_server
    from poorwsgi import Application

    app = Application('test')

    @app.route('/test')
    def root_uri(req):
        return 'Hello world'

    if __name__ == '__main__':
        httpd = make_server('127.0.0.1', 8080, app)
        httpd.serve_forever()

You can use Python's wsgiref.simple_server to test it:

.. code-block::

    ~$ python simple.py

For more information see
`Project homepage <http://poorhttp.zeropage.cz/poorwsgi>`_
