module documentation

Undocumented

Class _ColorStreamHandler On Windows, wrap stream with Colorama for ANSI style support.
Class _DictAccessorProperty Baseclass for `environ_property` and `header_property`.
Class _Missing Undocumented
Function _check_str_tuple Ensure tuple items are all strings or all bytes.
Function _cookie_parse_impl Lowlevel cookie parsing facility that operates on bytes.
Function _cookie_quote Undocumented
Function _cookie_unquote Undocumented
Function _decode_idna Undocumented
Function _dt_as_utc Undocumented
Function _easteregg Like the name says. But who knows how it works?
Function _encode_idna Undocumented
Function _get_environ Undocumented
Function _has_level_handler Check if there is a handler in the logging chain that will handle the given logger's effective level.
Function _log Log a message to the 'werkzeug' logger.
Function _make_cookie_domain Undocumented
Function _make_encode_wrapper Create a function that will be called with a string argument. If the reference is bytes, values will be encoded to bytes.
Function _to_bytes Undocumented
Function _to_str Undocumented
Function _wsgi_decoding_dance Undocumented
Function _wsgi_encoding_dance Undocumented
Type Variable _TAccessorValue Undocumented
Variable _cookie_quoting_map Undocumented
Variable _cookie_re Undocumented
Variable _default_encoding Undocumented
Variable _epoch_ord Undocumented
Variable _legal_cookie_chars Undocumented
Variable _legal_cookie_chars_re Undocumented
Variable _logger Undocumented
Variable _missing Undocumented
Variable _octal_re Undocumented
Variable _quote_re Undocumented
Variable _signature_cache Undocumented
def _check_str_tuple(value: t.Tuple[t.AnyStr, ...]): (source)

Ensure tuple items are all strings or all bytes.

def _cookie_parse_impl(b: bytes) -> t.Iterator[t.Tuple[bytes, bytes]]: (source)

Lowlevel cookie parsing facility that operates on bytes.

def _cookie_quote(b: bytes) -> bytes: (source)

Undocumented

def _cookie_unquote(b: bytes) -> bytes: (source)

Undocumented

def _decode_idna(domain: t.Union[str, bytes]) -> str: (source)

Undocumented

@typing.overload
def _dt_as_utc(dt: None):
@typing.overload
def _dt_as_utc(dt: datetime) -> datetime:
(source)

Undocumented

def _easteregg(app: t.Optional[WSGIApplication] = None) -> WSGIApplication: (source)

Like the name says. But who knows how it works?

def _encode_idna(domain: str) -> bytes: (source)

Undocumented

def _get_environ(obj: t.Union[WSGIEnvironment, Request]) -> WSGIEnvironment: (source)

Undocumented

def _has_level_handler(logger: logging.Logger) -> bool: (source)

Check if there is a handler in the logging chain that will handle the given logger's effective level.

def _log(type: str, message: str, *args: t.Any, **kwargs: t.Any): (source)

Log a message to the 'werkzeug' logger. The logger is created the first time it is needed. If there is no level set, it is set to :data:`logging.INFO`. If there is no handler for the logger's effective level, a :class:`logging.StreamHandler` is added.

@typing.overload
def _make_cookie_domain(domain: None):
@typing.overload
def _make_cookie_domain(domain: str) -> bytes:
(source)

Undocumented

@typing.overload
def _make_encode_wrapper(reference: str) -> t.Callable[[str], str]:
@typing.overload
def _make_encode_wrapper(reference: bytes) -> t.Callable[[str], bytes]:
(source)

Create a function that will be called with a string argument. If the reference is bytes, values will be encoded to bytes.

def _to_bytes(x: t.Union[str, bytes], charset: str = _default_encoding, errors: str = 'strict') -> bytes: (source)

Undocumented

@typing.overload
def _to_str(x: None, charset: t.Optional[str] = ..., errors: str = ..., allow_none_charset: bool = ...):
@typing.overload
def _to_str(x: t.Any, charset: t.Optional[str] = ..., errors: str = ..., allow_none_charset: bool = ...) -> str:
(source)

Undocumented

def _wsgi_decoding_dance(s: str, charset: str = 'utf-8', errors: str = 'replace') -> str: (source)

Undocumented

def _wsgi_encoding_dance(s: str, charset: str = 'utf-8', errors: str = 'replace') -> str: (source)

Undocumented

_TAccessorValue = (source)

Undocumented

Value
t.TypeVar('_TAccessorValue')
_cookie_quoting_map: dict[bytes, bytes] = (source)

Undocumented

_cookie_re = (source)

Undocumented

_default_encoding = (source)

Undocumented

_epoch_ord = (source)

Undocumented

_legal_cookie_chars = (source)

Undocumented

_legal_cookie_chars_re: bytes = (source)

Undocumented

_missing = (source)

Undocumented

_octal_re = (source)

Undocumented

_quote_re = (source)

Undocumented

_signature_cache = (source)

Undocumented