Skip to content

if __name__ == '__main__' for main examples. #3775

Closed
@samuelcolvin

Description

aio-libs/aiohttp-devtools#229

Would be useful if we wrapped web.run_app(app) if a main check:

if __name__ == '__main__':
    web.run_app(app)

To work with aiohttp-devtools and other such tools.

If you're happy with this I'll submit a PR.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions