File: __init__.py

package info (click to toggle)
aiohttp-wsgi 0.10.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 236 kB
  • sloc: python: 790; makefile: 19; sh: 8
file content (57 lines) | stat: -rw-r--r-- 981 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
"""
aiohttp-wsgi
============

WSGI adapter for :ref:`aiohttp <aiohttp-web>`.


Features
--------

-   Run WSGI applications (e.g. `Django`_, `Flask`_) on :ref:`aiohttp <aiohttp-web>`.
-   Handle thousands of client connections, using :mod:`asyncio`.
-   Add :ref:`websockets <aiohttp-web-websockets>` to your existing Python web app!


Resources
---------

-   `Documentation`_ is on Read the Docs.
-   `Issue tracking`_ and `source code`_ is on GitHub.


Usage
-----

.. toctree::
    :maxdepth: 1

    installation
    wsgi
    main


More information
----------------

.. toctree::
    :maxdepth: 1

    contributing
    changelog


.. include:: /_include/links.rst
"""

try:
    import aiohttp  # noqa
except ImportError:  # pragma: no cover
    # The top-level API requires aiohttp, which might not be present if setup.py
    # is importing aiohttp_wsgi to get __version__.
    pass
else:
    from aiohttp_wsgi.wsgi import WSGIHandler, serve  # noqa


__version__ = "0.10.0"