PyWebIO demos from document Run the demos from the document online.
()
| 128 | |
| 129 | |
| 130 | def get_app(): |
| 131 | """PyWebIO demos from document |
| 132 | |
| 133 | Run the demos from the document online. |
| 134 | """ |
| 135 | app = {} |
| 136 | try: |
| 137 | demos = listdir(path.join(here_dir, 'doc_demos')) |
| 138 | except Exception: |
| 139 | demos = [] |
| 140 | |
| 141 | for name in demos: |
| 142 | code = open(path.join(here_dir, 'doc_demos', name)).read() |
| 143 | title, code = code.split('\n\n', 1) |
| 144 | app[name] = partial(handle_code, code=code, title=title) |
| 145 | app[name] = config(title=name, description=title)(app[name]) |
| 146 | |
| 147 | return app |
| 148 | |
| 149 | |
| 150 | main = get_app() |
no test coverage detected
searching dependent graphs…