d2py.tools.dashstyle.server#

Module Contents#

Functions#

create_app([name, title, external_stylesheets])

get_Host_name_IP()

run_server(app, layout[, host, port, mode, debug])

Attributes#

META_TAGS

NAME

host_ip

index_string_template

d2py.tools.dashstyle.server.create_app(name=NAME, title='Dash', external_stylesheets=None, **kwargs)[源代码]#
d2py.tools.dashstyle.server.get_Host_name_IP()[源代码]#
async d2py.tools.dashstyle.server.run_server(app, layout, host=host_ip, port=8050, mode='external', debug=True, **kw)[源代码]#
d2py.tools.dashstyle.server.META_TAGS#
d2py.tools.dashstyle.server.NAME#
d2py.tools.dashstyle.server.host_ip#
d2py.tools.dashstyle.server.index_string_template = Multiline-String#
Show Value
"""<!DOCTYPE html>
<html lang="zh">
    <head>
        {%metas%}
        <title>{%title%}</title>
        {%favicon%}
        {%css%}
    </head>
    <body>
        {%app_entry%}
        <article>
            {%config%}
            {%scripts%}
            {%renderer%}
        </article>
    </body>
</html>
"""