Ultra fast asyncio event loop.
This report summarizes scanner evidence for MagicStack/uvloop, a Cython project with 11,911 GitHub stars. SynthScan examined 12,042 lines of code across 43 source files, recording 246 pattern matches distributed across 7 syntactic categories. The legacy adjusted pattern signal is 29.4 (Elevated pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Can maintainers explain intent, assumptions, and trade-offs? 161 finding(s).
Are imports declared and package/API names verified? 24 finding(s).
Are wrappers, guards, and repeated structures necessary? 203 finding(s).
Which changes need focused human review? 246 finding(s).
Run additional scans to build a history of the legacy pattern signal. Score changes are not a measure of AI adoption or code quality.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 246 distinct pattern matches across 7 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/test_unix.py | 417 | except BlockingIOError: | CODE |
| HIGH | tests/test_aiohttp.py | 113 | except asyncio.CancelledError: | CODE |
| HIGH | tests/test_process.py | 655 | except asyncio.CancelledError: | CODE |
| HIGH | tests/test_process.py | 675 | except asyncio.CancelledError: | CODE |
| HIGH | tests/test_process.py | 702 | except asyncio.CancelledError: | CODE |
| HIGH | tests/test_process.py | 377 | except FileNotFoundError: | CODE |
| HIGH | tests/test_cython.py | 32 | except TypeError: | CODE |
| HIGH | tests/test_tcp.py | 746 | except BlockingIOError: | CODE |
| HIGH | tests/test_tcp.py | 764 | except ConnectionAbortedError: | CODE |
| HIGH | tests/test_tcp.py | 994 | except ConnectionResetError: | CODE |
| HIGH | tests/test_tcp.py | 1581 | except ConnectionAbortedError: | CODE |
| HIGH | tests/test_tcp.py | 1621 | except (ssl.SSLError, OSError): | CODE |
| HIGH | tests/test_tcp.py | 1796 | except ssl.SSLError: | CODE |
| HIGH | tests/test_tcp.py | 1815 | except ssl.SSLError: | CODE |
| HIGH | tests/test_tcp.py | 2075 | except ConnectionAbortedError: | CODE |
| HIGH | tests/test_tcp.py | 2672 | except (ConnectionResetError, BrokenPipeError): | CODE |
| HIGH | tests/test_tcp.py | 2763 | except ConnectionResetError: | CODE |
| HIGH | tests/test_tcp.py | 2915 | except (ConnectionRefusedError, asyncio.TimeoutError): | CODE |
| HIGH | tests/test_tcp.py | 2948 | except (ConnectionRefusedError, asyncio.TimeoutError): | CODE |
| HIGH | tests/test_tcp.py | 1174 | except TypeError: | CODE |
| HIGH | tests/test_tcp.py | 2376 | except openssl_ssl.WantReadError: | CODE |
| HIGH | tests/test_tcp.py | 2392 | except openssl_ssl.WantReadError: | CODE |
| HIGH | tests/test_tcp.py | 3259 | except ssl.SSLWantReadError: | CODE |
| HIGH | tests/test_udp.py | 173 | except Exception: | CODE |
| HIGH | tests/test_base.py | 366 | except KeyboardInterrupt: | CODE |
| HIGH | tests/test_base.py | 675 | except asyncio.CancelledError: | CODE |
| HIGH | tests/test_sockets.py | 542 | except Abort: | CODE |
| HIGH | tests/test_sockets.py | 83 | except (asyncio.TimeoutError, ConnectionRefusedError): | CODE |
| HIGH | tests/test_process_spawning.py | 39 | except asyncio.TimeoutError: | CODE |
| HIGH | examples/bench/rlserver.py | 16 | except (OSError, NameError): | CODE |
| HIGH | examples/bench/echoclient.py | 72 | except (OSError, NameError): | CODE |
| HIGH | examples/bench/echoserver.py | 35 | except (OSError, NameError): | CODE |
| HIGH | examples/bench/echoserver.py | 52 | except (OSError, NameError): | CODE |
| HIGH | uvloop/_testbase.py | 78 | except (BrokenPipeError, ConnectionError): | CODE |
| HIGH | uvloop/_testbase.py | 222 | except OSError: | CODE |
| HIGH | uvloop/_testbase.py | 454 | except OSError: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_libuv_api.py | 7 | def test_libuv_get_loop_t_ptr(self): | CODE |
| LOW | tests/test_unix.py | 198 | def test_create_unix_server_existing_path_sock(self): | CODE |
| LOW | tests/test_unix.py | 211 | def test_create_unix_connection_open_unix_con_addr(self): | CODE |
| LOW | tests/test_unix.py | 226 | def test_create_unix_connection_open_unix_con_sock(self): | CODE |
| LOW | tests/test_unix.py | 243 | def test_create_unix_connection_open_con_sock(self): | CODE |
| LOW | tests/test_unix.py | 407 | def test_create_unix_connection_sock_cancel_detaches(self): | CODE |
| LOW | tests/test_unix.py | 438 | def test_create_unix_connection_sock_cancel_fd_leak(self): | CODE |
| LOW | tests/test_unix.py | 522 | def test_create_unix_connection_pathlib(self): | CODE |
| LOW | tests/test_unix.py | 533 | def test_create_unix_server_pathlib(self): | CODE |
| LOW | tests/test_unix.py | 541 | def test_transport_fromsock_get_extra_info(self): | CODE |
| LOW | tests/test_unix.py | 564 | def test_create_unix_server_path_dgram(self): | CODE |
| LOW | tests/test_unix.py | 575 | def test_create_unix_server_path_stream_bittype(self): | CODE |
| LOW | tests/test_pipes.py | 184 | def test_write_pipe_disconnect_on_close(self): | CODE |
| LOW | tests/test_signals.py | 16 | def test_signals_sigint_pycode_stop(self): | CODE |
| LOW | tests/test_signals.py | 56 | def test_signals_sigint_pycode_continue(self): | STRING |
| LOW | tests/test_signals.py | 101 | def test_signals_sigint_uvcode(self): | STRING |
| LOW | tests/test_signals.py | 140 | def test_signals_sigint_uvcode_two_loop_runs(self): | STRING |
| LOW | tests/test_signals.py | 179 | def test_signals_sigint_and_custom_handler(self): | STRING |
| LOW⚡ | tests/test_signals.py | 298 | def test_signals_invalid_signal(self): | STRING |
| LOW⚡ | tests/test_signals.py | 305 | def test_signals_coro_callback(self): | STRING |
| LOW⚡ | tests/test_signals.py | 311 | def test_signals_wakeup_fd_unchanged(self): | STRING |
| LOW | tests/test_signals.py | 350 | def test_signals_fork_in_thread(self): | STRING |
| LOW | tests/test_aiohttp.py | 51 | def test_aiohttp_graceful_shutdown(self): | CODE |
| LOW | tests/test_dns.py | 220 | def test_getaddrinfo_broadcast(self): | CODE |
| LOW | tests/test_dns.py | 244 | def test_getaddrinfo_close_loop(self): | CODE |
| LOW | tests/test_process.py | 293 | def test_process_streams_stderr_to_stdout(self): | STRING |
| LOW | tests/test_process.py | 312 | def test_process_streams_devnull(self): | STRING |
| LOW | tests/test_process.py | 332 | def test_process_streams_pass_fds(self): | STRING |
| LOW | tests/test_process.py | 407 | def test_subprocess_invalid_stdin(self): | STRING |
| LOW | tests/test_process.py | 438 | def test_process_streams_redirect(self): | STRING |
| LOW | tests/test_process.py | 486 | def test_stdin_not_inheritable(self): | STRING |
| LOW | tests/test_process.py | 667 | def test_cancel_make_subprocess_transport_exec(self): | STRING |
| LOW | tests/test_process.py | 715 | def test_close_gets_process_closed(self): | STRING |
| LOW | tests/test_process.py | 749 | def _test_communicate_large_stdout(self, size): | STRING |
| LOW | tests/test_process.py | 819 | def test_process_double_close(self): | CODE |
| LOW | tests/test_process.py | 917 | def test_process_delayed_stdio__paused__stdin_pipe(self): | STRING |
| LOW | tests/test_process.py | 936 | def test_process_delayed_stdio__paused__no_stdin(self): | STRING |
| LOW | tests/test_process.py | 955 | def test_process_delayed_stdio__not_paused__no_stdin(self): | STRING |
| LOW | tests/test_cython.py | 8 | def test_cython_coro_is_coroutine(self): | CODE |
| LOW | tests/test_context.py | 149 | def test_task_decimal_context(self): | CODE |
| LOW | tests/test_context.py | 344 | def test_create_server_protocol_factory_context(self): | CODE |
| LOW | tests/test_context.py | 376 | def test_create_server_connection_protocol(self): | CODE |
| LOW | tests/test_context.py | 395 | def test_create_ssl_server_connection_protocol(self): | CODE |
| LOW | tests/test_context.py | 435 | def test_create_server_manual_connection_lost(self): | CODE |
| LOW | tests/test_context.py | 454 | def test_create_ssl_server_manual_connection_lost(self): | CODE |
| LOW | tests/test_context.py | 498 | def test_create_connection_protocol(self): | CODE |
| LOW | tests/test_context.py | 645 | def test_connect_accepted_socket(self): | CODE |
| LOW⚡ | tests/test_tcp.py | 1309 | def test_create_connection_wrong_sock(self): | CODE |
| LOW⚡ | tests/test_tcp.py | 1318 | def test_create_server_wrong_sock(self): | CODE |
| LOW⚡ | tests/test_tcp.py | 1328 | def test_create_server_stream_bittype(self): | CODE |
| LOW⚡ | tests/test_tcp.py | 1337 | def test_flowcontrol_mixin_set_write_limits(self): | CODE |
| LOW | tests/test_tcp.py | 208 | async def start_server_ephemeral_ports(): | CODE |
| LOW | tests/test_tcp.py | 400 | def test_create_connection_open_con_addr(self): | CODE |
| LOW | tests/test_tcp.py | 427 | def test_create_connection_open_con_sock(self): | CODE |
| LOW | tests/test_tcp.py | 643 | def test_tcp_handle_exception_in_connection_made(self): | CODE |
| LOW | tests/test_tcp.py | 687 | def test_resume_writing_write_different_transport(self): | CODE |
| LOW | tests/test_tcp.py | 740 | def test_create_connection_sock_cancel_detaches(self): | CODE |
| LOW | tests/test_tcp.py | 772 | def test_create_connection_sock_cancel_fd_leak(self): | CODE |
| LOW | tests/test_tcp.py | 1024 | def test_transport_get_extra_info(self): | CODE |
| LOW | tests/test_tcp.py | 1119 | def test_create_server_float_backlog(self): | CODE |
| 82 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_unix.py | 697 | except Exception as ex: | CODE |
| MEDIUM | tests/test_unix.py | 681 | def prog(sock): | CODE |
| LOW | tests/test_dns.py | 72 | except Exception as ex: | CODE |
| LOW | tests/test_dns.py | 78 | except Exception as ex: | CODE |
| LOW | tests/test_regr1.py | 54 | except Exception as exc: | CODE |
| LOW | tests/test_context.py | 351 | except Exception as e: | CODE |
| MEDIUM | tests/test_context.py | 348 | def factory(): | CODE |
| MEDIUM | tests/test_tcp.py | 558 | def server(sock): | CODE |
| MEDIUM | tests/test_tcp.py | 1417 | def prog(sock): | CODE |
| MEDIUM | tests/test_tcp.py | 1578 | def server(sock): | CODE |
| LOW | tests/test_tcp.py | 1270 | except Exception as exc: | CODE |
| LOW | tests/test_tcp.py | 1432 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 2245 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 2301 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 2515 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 2690 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 2734 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 2895 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 3212 | except Exception as ex: | CODE |
| LOW | tests/test_tcp.py | 3264 | except Exception as ex: | CODE |
| LOW | tests/test_udp.py | 173 | except Exception: | CODE |
| MEDIUM | tests/test_base.py | 650 | def waiter(timeout, finalized): | CODE |
| LOW | tests/test_base.py | 285 | except Exception as exc: | CODE |
| LOW | tests/test_base.py | 954 | except Exception: | STRING |
| LOW | tests/test_process_spawning.py | 69 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/test_sourcecode.py | 20 | CODE | |
| LOW | tests/test_sourcecode.py | 47 | CODE | |
| LOW | uvloop/__init__.py | 6 | CODE | |
| LOW | uvloop/__init__.py | 8 | CODE | |
| LOW | uvloop/includes/__init__.py | 4 | CODE | |
| LOW | uvloop/includes/__init__.py | 5 | CODE | |
| LOW | uvloop/includes/__init__.py | 6 | CODE | |
| LOW | uvloop/includes/__init__.py | 7 | CODE | |
| LOW | uvloop/includes/__init__.py | 8 | CODE | |
| LOW | uvloop/includes/__init__.py | 9 | CODE | |
| LOW | uvloop/includes/__init__.py | 10 | CODE | |
| LOW | uvloop/includes/__init__.py | 11 | CODE | |
| LOW | uvloop/includes/__init__.py | 12 | CODE | |
| LOW | uvloop/includes/__init__.py | 13 | CODE | |
| LOW | uvloop/includes/__init__.py | 14 | CODE | |
| LOW | uvloop/includes/__init__.py | 15 | CODE | |
| LOW | uvloop/includes/__init__.py | 16 | CODE | |
| LOW | uvloop/includes/__init__.py | 17 | CODE | |
| LOW | uvloop/includes/__init__.py | 18 | CODE | |
| LOW | uvloop/includes/__init__.py | 19 | CODE | |
| LOW | uvloop/includes/__init__.py | 20 | CODE | |
| LOW | uvloop/includes/__init__.py | 21 | CODE | |
| LOW | uvloop/includes/__init__.py | 22 | CODE | |
| LOW | uvloop/includes/__init__.py | 23 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | setup.py | 92 | CODE | |
| LOW | tests/test_dns.py | 8 | CODE | |
| LOW | tests/test_process.py | 438 | CODE | |
| LOW | tests/test_context.py | 266 | CODE | |
| LOW | tests/test_context.py | 498 | CODE | |
| LOW | tests/test_context.py | 499 | CODE | |
| LOW | tests/test_tcp.py | 2201 | CODE | |
| LOW | tests/test_tcp.py | 2770 | CODE | |
| LOW | tests/test_tcp.py | 3221 | CODE | |
| LOW | tests/test_tcp.py | 2256 | CODE | |
| LOW | tests/test_tcp.py | 2785 | CODE | |
| LOW | tests/test_tcp.py | 2854 | CODE | |
| LOW | tests/test_tcp.py | 3232 | CODE | |
| LOW | tests/test_tcp.py | 2259 | CODE | |
| LOW | uvloop/_testbase.py | 468 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | uvloop/_version.py | 1 | # This file MUST NOT contain anything but the __version__ assignment. | COMMENT |
| LOW | uvloop/includes/debug.h | 1 | #ifndef UVLOOP_DEBUG | COMMENT |
| LOW | uvloop/includes/compat.h | 1 | #include <errno.h> | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/test_process.py | 650 | # Create an internal future waiting on the process exit | STRING |