1#
2# Copyright 2009 Facebook
3#
4# Licensed under the Apache License, Version 2.0 (the "License"); you may
5# not use this file except in compliance with the License. You may obtain
6# a copy of the License at
7#
8# http://www.apache.org/licenses/LICENSE-2.0
9#
10# Unless required by applicable law or agreed to in writing, software
11# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
13# License for the specific language governing permissions and limitations
14# under the License.
15
16"""The Tornado web server and tools."""
17
18# version is a human-readable version number.
19
20# version_info is a four-tuple for programmatic comparison. The first
21# three numbers are the components of the version number. The fourth
22# is zero for an official release, positive for a development branch,
23# or negative for a release candidate or beta (after the base version
24# number has been incremented)
25version = "6.4.1"
26version_info = (6, 4, 0, 1)
27
28import importlib
29import typing
30
31__all__ = [
32 "auth",
33 "autoreload",
34 "concurrent",
35 "curl_httpclient",
36 "escape",
37 "gen",
38 "http1connection",
39 "httpclient",
40 "httpserver",
41 "httputil",
42 "ioloop",
43 "iostream",
44 "locale",
45 "locks",
46 "log",
47 "netutil",
48 "options",
49 "platform",
50 "process",
51 "queues",
52 "routing",
53 "simple_httpclient",
54 "tcpclient",
55 "tcpserver",
56 "template",
57 "testing",
58 "util",
59 "web",
60]
61
62
63# Copied from https://peps.python.org/pep-0562/
64def __getattr__(name: str) -> typing.Any:
65 if name in __all__:
66 return importlib.import_module("." + name, __name__)
67 raise AttributeError(f"module {__name__!r} has no attribute {name!r}")