-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
re-exports the most commonly used types from the main module 🐱
- Loading branch information
1 parent
aa58247
commit 2c6b613
Showing
10 changed files
with
114 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,75 @@ | ||
""" | ||
Root module of the framework. This module re-exports the most commonly | ||
used types to reduce the verbosity of the imports statements. | ||
""" | ||
__author__ = "Roberto Prevato <[email protected]>" | ||
|
||
from .contents import ( | ||
Content, | ||
FormContent, | ||
FormPart, | ||
HTMLContent, | ||
HtmlContent, | ||
JSONContent, | ||
JsonContent, | ||
MultiPartFormData, | ||
StreamedContent, | ||
TextContent, | ||
parse_www_form, | ||
) | ||
from .cookies import ( | ||
Cookie, | ||
CookieSameSiteMode, | ||
datetime_from_cookie_format, | ||
datetime_to_cookie_format, | ||
parse_cookie, | ||
) | ||
from .exceptions import HTTPException | ||
from .headers import Header, Headers | ||
from .messages import Request, Response | ||
from .server import Application, Route, Router | ||
from .server.websocket import WebSocket, WebSocketDisconnectError | ||
from .url import URL, InvalidURL | ||
from .contents import Content as Content | ||
from .contents import FormContent as FormContent | ||
from .contents import FormPart as FormPart | ||
from .contents import HTMLContent as HTMLContent | ||
from .contents import HtmlContent as HtmlContent | ||
from .contents import JSONContent as JSONContent | ||
from .contents import MultiPartFormData as MultiPartFormData | ||
from .contents import StreamedContent as StreamedContent | ||
from .contents import TextContent as TextContent | ||
from .contents import parse_www_form as parse_www_form | ||
from .cookies import Cookie as Cookie | ||
from .cookies import CookieSameSiteMode as CookieSameSiteMode | ||
from .cookies import datetime_from_cookie_format as datetime_from_cookie_format | ||
from .cookies import datetime_to_cookie_format as datetime_to_cookie_format | ||
from .cookies import parse_cookie as parse_cookie | ||
from .exceptions import HTTPException as HTTPException | ||
from .headers import Header as Header | ||
from .headers import Headers as Headers | ||
from .messages import Message as Message | ||
from .messages import Request as Request | ||
from .messages import Response as Response | ||
from .server.application import Application as Application | ||
from .server.authorization import allow_anonymous as allow_anonymous | ||
from .server.authorization import auth as auth | ||
from .server.bindings import ClientInfo as ClientInfo | ||
from .server.bindings import FromBytes as FromBytes | ||
from .server.bindings import FromCookie as FromCookie | ||
from .server.bindings import FromFiles as FromFiles | ||
from .server.bindings import FromForm as FromForm | ||
from .server.bindings import FromHeader as FromHeader | ||
from .server.bindings import FromJSON as FromJSON | ||
from .server.bindings import FromQuery as FromQuery | ||
from .server.bindings import FromRoute as FromRoute | ||
from .server.bindings import FromServices as FromServices | ||
from .server.bindings import FromText as FromText | ||
from .server.bindings import ServerInfo as ServerInfo | ||
from .server.responses import ContentDispositionType as ContentDispositionType | ||
from .server.responses import FileInput as FileInput | ||
from .server.responses import accepted as accepted | ||
from .server.responses import bad_request as bad_request | ||
from .server.responses import created as created | ||
from .server.responses import file as file | ||
from .server.responses import forbidden as forbidden | ||
from .server.responses import html as html | ||
from .server.responses import json as json | ||
from .server.responses import moved_permanently as moved_permanently | ||
from .server.responses import no_content as no_content | ||
from .server.responses import not_found as not_found | ||
from .server.responses import not_modified as not_modified | ||
from .server.responses import ok as ok | ||
from .server.responses import permanent_redirect as permanent_redirect | ||
from .server.responses import pretty_json as pretty_json | ||
from .server.responses import redirect as redirect | ||
from .server.responses import see_other as see_other | ||
from .server.responses import status_code as status_code | ||
from .server.responses import temporary_redirect as temporary_redirect | ||
from .server.responses import text as text | ||
from .server.responses import unauthorized as unauthorized | ||
from .server.routing import Route as Route | ||
from .server.routing import RouteException as RouteException | ||
from .server.routing import Router as Router | ||
from .server.routing import RoutesRegistry as RoutesRegistry | ||
from .server.templating import use_templates as use_templates | ||
from .server.websocket import WebSocket as WebSocket | ||
from .server.websocket import WebSocketDisconnectError as WebSocketDisconnectError | ||
from .server.websocket import WebSocketError as WebSocketError | ||
from .server.websocket import WebSocketState as WebSocketState | ||
from .url import URL as URL | ||
from .url import InvalidURL as InvalidURL |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
from .session import ( | ||
CircularRedirectError, | ||
ClientSession, | ||
ConnectionTimeout, | ||
MaximumRedirectsExceededError, | ||
MissingLocationForRedirect, | ||
RequestTimeout, | ||
) | ||
from .session import CircularRedirectError as CircularRedirectError | ||
from .session import ClientSession as ClientSession | ||
from .session import ConnectionTimeout as ConnectionTimeout | ||
from .session import MaximumRedirectsExceededError as MaximumRedirectsExceededError | ||
from .session import MissingLocationForRedirect as MissingLocationForRedirect | ||
from .session import RequestTimeout as RequestTimeout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
from .application import Application | ||
from .routing import Route, Router | ||
from .application import Application as Application | ||
from .routing import Route as Route | ||
from .routing import Router as Router | ||
from .routing import RoutesRegistry as RoutesRegistry |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters