PageRenderTime 22ms CodeModel.GetById 18ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/circuits/web/__init__.py

https://bitbucket.org/prologic/circuits/
Python | 30 lines | 16 code | 5 blank | 9 comment | 0 complexity | 6894a09548bc079175a198022ea18e8f MD5 | raw file
 1# Module:   __init__
 2# Date:     3rd October 2008
 3# Author:   James Mills, prologic at shortcircuit dot net dot au
 4
 5"""Circuits Library - Web
 6
 7circuits.web contains the circuits full stack web server that is HTTP
 8and WSGI compliant.
 9"""
10
11from .loggers import Logger
12from .sessions import Sessions
13from .url import parse_url, URL
14from .servers import BaseServer, Server
15from .controllers import expose, Controller
16from .events import request, response, stream
17from .errors import httperror, forbidden, notfound, redirect
18from .dispatchers import Static, Dispatcher, VirtualHosts, XMLRPC
19
20try:
21    from .dispatchers import JSONRPC
22except ImportError:
23    pass
24
25try:
26    from .controllers import JSONController
27except ImportError:
28    pass
29
30# flake8: noqa