# Path: coaster/auth.py
# def add_auth_attribute(attr, value, actor=False):
# def add_auth_anchor(anchor):
# def request_has_auth():
#     def __init__(self, user):
#     def __setattr__(self, attr, value):
#     def __repr__(self):  # pragma: no cover
#     def __bool__(self):
#     def is_anonymous(self):
#     def not_anonymous(self):
#     def is_authenticated(self):
#     def not_authenticated(self):
# def _get_current_auth():
# class CurrentAuth:


from datetime import datetime, timedelta
from html import escape
from io import StringIO
from pprint import pprint
from threading import Lock
from typing import Any, Dict
from flask import g, request, session
from flask.config import Config
from .auth import current_auth
import logging
import logging.handlers
import re
import textwrap
import traceback
import requests
                    for k, v in request.args.to_dict(flat=False).items()
                },
                'headers': request.headers,
                'environ': request.environ,
                'method': request.method,
                'blueprint': request.blueprint,
                'endpoint': request.endpoint,
                'view_args': request.view_args,
            }
            try:
                pprint_with_indent(request_data, sio)
            except:  # noqa: B901, E722
                print("<ERROR WHILE PRINTING VALUE>", file=sio)  # noqa: T001

        if session:
            print('\n----------\n', file=sio)  # noqa: T001
            print("Session cookie contents:", file=sio)  # noqa: T001
            try:
                pprint_with_indent(session, sio)
            except:  # noqa: B901, E722
                print("<ERROR WHILE PRINTING VALUE>", file=sio)  # noqa: T001

        if g:
            print('\n----------\n', file=sio)  # noqa: T001
            print("App context:", file=sio)  # noqa: T001
            try:
                pprint_with_indent(vars(g), sio)
            except:  # noqa: B901, E722
                print("<ERROR WHILE PRINTING VALUE>", file=sio)  # noqa: T001


# Path: coaster/auth.py
# def add_auth_attribute(attr, value, actor=False):
# def add_auth_anchor(anchor):
# def request_has_auth():
#     def __init__(self, user):
#     def __setattr__(self, attr, value):
#     def __repr__(self):  # pragma: no cover
#     def __bool__(self):
#     def is_anonymous(self):
#     def not_anonymous(self):
#     def is_authenticated(self):
#     def not_authenticated(self):
# def _get_current_auth():
# class CurrentAuth:


# Path: coaster/logger.py
from datetime import datetime, timedelta
from html import escape
from io import StringIO
from pprint import pprint
from threading import Lock
from typing import Any, Dict
from flask import g, request, session
from flask.config import Config
from .auth import current_auth
import logging
import logging.handlers
import re
import textwrap
import traceback
import requests

                    for k, v in request.args.to_dict(flat=False).items()
                },
                'headers': request.headers,
                'environ': request.environ,
                'method': request.method,
                'blueprint': request.blueprint,
                'endpoint': request.endpoint,
                'view_args': request.view_args,
            }
            try:
                pprint_with_indent(request_data, sio)
            except:  # noqa: B901, E722
                print("<ERROR WHILE PRINTING VALUE>", file=sio)  # noqa: T001

        if session:
            print('\n----------\n', file=sio)  # noqa: T001
            print("Session cookie contents:", file=sio)  # noqa: T001
            try:
                pprint_with_indent(session, sio)
            except:  # noqa: B901, E722
                print("<ERROR WHILE PRINTING VALUE>", file=sio)  # noqa: T001

        if g:
            print('\n----------\n', file=sio)  # noqa: T001
            print("App context:", file=sio)  # noqa: T001
            try:
                pprint_with_indent(vars(g), sio)
            except:  # noqa: B901, E722
                print("<ERROR WHILE PRINTING VALUE>", file=sio)  # noqa: T001


        if current_auth: