Python binding for curl-impersonate fork via cffi. A http client that can impersonate browser tls/ja3/http2 fingerprints.
This report presents the forensic synthetic code analysis of lexiforest/curl_cffi, a Python project with 6,210 GitHub stars. SynthScan v2.0 examined 24,837 lines of code across 111 source files, recording 509 pattern matches distributed across 15 syntactic categories. The overall adjusted score of 22.8 places this repository in the Moderate AI signal band.
The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).
Longitudinal tracking requires multiple scan runs. Once this repository is re-scanned after new commits land, this chart will visualise how the synthetic code signal evolves over time — enabling you to detect whether AI authorship is growing, stabilising, or being actively corrected by human engineers.
Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.
This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.
The scanner identified 509 distinct pattern matches across 15 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unittest/test_async_websockets.py | 1253 | async def test_full_session_lifecycle( | CODE |
| LOW⚡ | tests/unittest/test_async_websockets.py | 1315 | async def test_various_recv_queue_sizes( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 164 | async def close_immediately_handler( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 237 | def start_configurable_ws_server(port: int) -> ConfigurableWSServer: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 437 | async def test_echo_multiple_messages(self, ws_connection: AsyncWebSocket) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 527 | async def test_pong_is_silently_consumed( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 547 | async def test_server_ping_is_silently_consumed( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 586 | async def test_recv_timeout_returns_if_data_arrives( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 617 | async def test_message_at_curl_frame_boundary( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 626 | async def test_message_just_over_frame_boundary( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 639 | async def test_concurrent_recv_single_consumer( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 655 | async def test_concurrent_recv_multiple_consumers( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 683 | async def test_send_while_receiving(self, ws_connection: AsyncWebSocket) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 704 | async def test_more_recv_callers_than_queue_size( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 771 | async def test_recv_callers_exceed_queue_with_slow_producer( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 828 | async def test_concurrent_recv_with_connection_close( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 905 | async def test_cancel_recv_before_message( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 949 | async def test_recv_after_close_raises( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 962 | async def test_send_after_close_raises( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 974 | async def test_server_close_received( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1023 | async def test_aiter_on_closed_raises( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1036 | async def test_iterator_skips_control_frames( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1061 | async def test_recv_queue_size_limit( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1087 | async def test_drain_on_error_false( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1130 | async def test_ping_too_large_raises(self, ws_connection: AsyncWebSocket) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1143 | async def test_flush_waits_for_queue(self, ws_connection: AsyncWebSocket) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1155 | async def test_is_alive_true_when_connected( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1161 | async def test_is_alive_false_after_close( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1175 | async def test_close_code_and_reason( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1208 | async def test_empty_string_message(self, ws_connection: AsyncWebSocket) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1229 | async def test_binary_all_byte_values(self, ws_connection: AsyncWebSocket) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1337 | async def test_various_send_queue_sizes( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1430 | async def test_various_max_message_sizes( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1450 | async def test_client_enforces_max_message_size( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1480 | async def test_server_enforces_max_message_size( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1513 | async def test_coalesce_frames_enabled( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1542 | async def test_coalesce_frames_disabled( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1559 | async def test_coalesce_send_then_recv( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1578 | async def test_coalesce_preserves_message_order( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1611 | async def test_coalesce_control_frame_interleaving( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1651 | async def test_partial_write_exact_boundary_resumption( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1696 | async def test_send_eagain_retry_preserves_state( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1727 | async def test_manual_fragmentation_with_cont_flag( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1816 | async def test_block_on_recv_queue_full_true( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1846 | async def test_block_on_recv_queue_full_false( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1928 | async def test_close_with_long_reason( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1965 | async def test_send_binary_explicit( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 1979 | async def test_multiple_flush_calls( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2000 | async def test_close_code_extraction( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2055 | async def test_terminate_while_operations_pending( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2084 | async def test_recv_timeout_race_condition( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2118 | async def test_recv_json_enforces_text_frame( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2140 | async def test_raw_fragment_assembly_with_interleaved_control_frames(self) -> None: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2196 | async def test_high_concurrency_mixed_frame_stress( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2278 | async def test_unaligned_simd_xor_masking( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2309 | async def test_huge_payload_stress_and_fairness( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2373 | async def test_high_frequency_ping_pong( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2386 | def test_multithreaded_event_loops( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2414 | async def test_boundary_fragmentation_plus_one( | CODE |
| LOW | tests/unittest/test_async_websockets.py | 2429 | async def test_transport_exception_bubbles_to_all_waiters( | CODE |
| 216 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | tests/unittest/test_async_websockets.py | 1245 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/unittest/test_async_websockets.py | 1247 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/unittest/test_async_websockets.py | 1306 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/unittest/test_async_websockets.py | 1308 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 57 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 59 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 294 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 296 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 358 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 360 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 399 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 401 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 1943 | # ============================================================================= | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 1945 | # ============================================================================= | COMMENT |
| MEDIUM⚡ | tests/unittest/test_curl.py | 441 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unittest/test_curl.py | 443 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unittest/cli/test_run.py | 145 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | tests/unittest/cli/test_run.py | 147 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unittest/cli/test_run.py | 18 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unittest/cli/test_run.py | 20 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unittest/cli/test_run.py | 230 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | tests/unittest/cli/test_run.py | 232 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | curl_cffi/cli/run.py | 14 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | curl_cffi/cli/run.py | 17 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | curl_cffi/cli/run.py | 165 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM | curl_cffi/cli/run.py | 167 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | curl_cffi/cli/run.py | 233 | # --------------------------------------------------------------------------- | COMMENT |
| MEDIUM⚡ | curl_cffi/cli/run.py | 235 | # --------------------------------------------------------------------------- | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unittest/test_async_websockets.py | 17 | CODE | |
| LOW | curl_cffi/curl.py | 1 | CODE | |
| LOW | curl_cffi/__init__.py | 52 | CODE | |
| LOW | curl_cffi/__init__.py | 54 | CODE | |
| LOW | curl_cffi/__init__.py | 54 | CODE | |
| LOW | curl_cffi/__init__.py | 54 | CODE | |
| LOW | curl_cffi/__init__.py | 54 | CODE | |
| LOW | curl_cffi/__init__.py | 57 | CODE | |
| LOW | curl_cffi/__init__.py | 57 | CODE | |
| LOW | curl_cffi/__init__.py | 58 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 59 | CODE | |
| LOW | curl_cffi/__init__.py | 69 | CODE | |
| LOW | curl_cffi/__init__.py | 69 | CODE | |
| LOW | curl_cffi/__init__.py | 69 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 71 | CODE | |
| LOW | curl_cffi/__init__.py | 105 | CODE | |
| LOW | curl_cffi/__init__.py | 105 | CODE | |
| LOW | curl_cffi/__init__.py | 105 | CODE | |
| LOW | curl_cffi/cli/run.py | 1 | CODE | |
| LOW | curl_cffi/cli/request.py | 1 | CODE | |
| LOW | curl_cffi/cli/__init__.py | 7 | CODE | |
| LOW | curl_cffi/cli/__init__.py | 8 | CODE | |
| LOW | curl_cffi/cli/__init__.py | 8 | CODE | |
| LOW | curl_cffi/cli/__init__.py | 8 | CODE | |
| 35 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/benchmark.py | 84 | except Exception: | CODE |
| LOW | benchmark/ws_bench_2.py | 93 | except Exception: | CODE |
| LOW | benchmark/ws_bench_2.py | 210 | except Exception: | CODE |
| LOW | benchmark/ws_bench_1_client.py | 145 | except Exception: | CODE |
| LOW | benchmark/ws_bench_1_server.py | 75 | except Exception: | CODE |
| LOW | tests/unittest/test_async_websockets.py | 891 | except Exception: | CODE |
| LOW | tests/unittest/conftest.py | 858 | except Exception: | CODE |
| LOW | tests/pro/test_fp_verify.py | 114 | except Exception as exc: | CODE |
| LOW | curl_cffi/aio.py | 290 | except Exception: | CODE |
| MEDIUM | curl_cffi/cli/run.py | 141 | print("Error: no requests found in file.", file=sys.stderr) | CODE |
| MEDIUM | curl_cffi/cli/run.py | 188 | print(f"Error: invalid HAR JSON: {exc}", file=sys.stderr) | CODE |
| MEDIUM | curl_cffi/cli/run.py | 193 | print("Error: no entries found in HAR file.", file=sys.stderr) | CODE |
| MEDIUM⚡ | curl_cffi/cli/run.py | 245 | print(f"Error: file not found: {filepath}", file=sys.stderr) | CODE |
| MEDIUM | curl_cffi/cli/run.py | 257 | print(f"Error: unsupported file format: {filepath}", file=sys.stderr) | CODE |
| LOW | curl_cffi/cli/request.py | 53 | except Exception as e: | CODE |
| MEDIUM | curl_cffi/cli/request.py | 54 | print(f"Error: {e}", file=sys.stderr) | CODE |
| MEDIUM | curl_cffi/cli/parse.py | 57 | print(f"Error: invalid JSON in '{item}': {exc}", file=sys.stderr) | CODE |
| MEDIUM | curl_cffi/cli/parse.py | 75 | print(f"Error: unknown request item '{item}'", file=sys.stderr) | CODE |
| LOW | curl_cffi/cli/doctor.py | 33 | except Exception as exc: | CODE |
| MEDIUM | curl_cffi/requests/websockets.py | 848 | def __anext__(self) -> bytes: | CODE |
| LOW | curl_cffi/requests/websockets.py | 189 | except Exception as e: | CODE |
| LOW | curl_cffi/requests/websockets.py | 284 | except Exception as e: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1072 | except Exception as e: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1322 | except Exception: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1428 | except Exception as exc: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1442 | except Exception: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1541 | except Exception as e: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1662 | except Exception as e: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1753 | except Exception as exc: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1767 | except Exception: | CODE |
| LOW | curl_cffi/requests/websockets.py | 1820 | except Exception as exc: | CODE |
| LOW | curl_cffi/requests/session.py | 410 | except Exception: | CODE |
| LOW | curl_cffi/requests/session.py | 1327 | except Exception: | CODE |
| LOW | curl_cffi/requests/cache.py | 80 | except Exception: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/ws_bench_2.py | 147 | CODE | |
| LOW | benchmark/ws_bench_2.py | 297 | CODE | |
| LOW | tests/unittest/test_async_websockets.py | 2196 | CODE | |
| LOW | tests/unittest/conftest.py | 84 | CODE | |
| LOW | tests/unittest/test_requests.py | 1080 | CODE | |
| LOW | tests/unittest/test_requests.py | 1125 | CODE | |
| LOW | tests/pro/test_fp_verify.py | 57 | CODE | |
| LOW | curl_cffi/_asyncio_selector.py | 168 | CODE | |
| LOW | curl_cffi/curl.py | 347 | CODE | |
| LOW | curl_cffi/aio.py | 259 | CODE | |
| LOW | curl_cffi/fingerprints.py | 524 | CODE | |
| LOW | curl_cffi/cli/run.py | 56 | CODE | |
| LOW | curl_cffi/cli/parse.py | 45 | CODE | |
| LOW | curl_cffi/cli/output.py | 205 | CODE | |
| LOW | curl_cffi/requests/cookies.py | 136 | CODE | |
| LOW | curl_cffi/requests/impersonate.py | 104 | CODE | |
| LOW | curl_cffi/requests/streams.py | 208 | CODE | |
| LOW | curl_cffi/requests/models.py | 180 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 486 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 580 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 1328 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 1544 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 1670 | CODE | |
| LOW | curl_cffi/requests/session.py | 667 | CODE | |
| LOW | curl_cffi/requests/utils.py | 70 | CODE | |
| LOW | curl_cffi/requests/utils.py | 580 | CODE | |
| LOW | curl_cffi/requests/headers.py | 84 | CODE | |
| LOW | curl_cffi/requests/headers.py | 126 | CODE | |
| LOW | scripts/build.py | 30 | CODE | |
| LOW | scripts/check_preset.py | 27 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | benchmark/ws_bench_utils.py | 103 | # Initialize config object | COMMENT |
| MEDIUM | tests/unittest/test_async_websockets.py | 2626 | # Create a view starting at an odd offset (e.g., address ends in 1, 3, 7) | COMMENT |
| MEDIUM | curl_cffi/_asyncio_selector.py | 125 | # Create a thread to run the select system call. We manage this thread | COMMENT |
| MEDIUM | curl_cffi/_asyncio_selector.py | 299 | # This class is a __getattribute__-based proxy. All attributes other than those | COMMENT |
| MEDIUM | curl_cffi/const.py | 1 | # This file is automatically generated, do not modify it directly. | COMMENT |
| MEDIUM | curl_cffi/requests/websockets.py | 1799 | # Create a task for the queue join operation | COMMENT |
| MEDIUM | scripts/generate_consts.py | 20 | f.write("# This file is automatically generated, do not modify it directly.\n\n") | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | curl_cffi/curl.py | 743 | Send data to a websocket connection. Args: payload: content to send. flags: websocket f | STRING |
| HIGH | curl_cffi/curl.py | 770 | Close a websocket connection. Shorthand for :meth:`ws_send` with close code and message. Note that to completely | STRING |
| HIGH | curl_cffi/requests/websockets.py | 918 | Receive a WebSocket message. This method waits for and returns the next complete WebSocket message. Ar | STRING |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/unittest/test_async_websockets.py | 246 | def set_config(cfg: ServerConfig) -> None: | CODE |
| LOW | curl_cffi/curl.py | 299 | def _set_error_buffer(self) -> None: | CODE |
| LOW | curl_cffi/__init__.py | 1 | __all__ = [ | CODE |
| LOW | curl_cffi/aio.py | 13 | __all__ = ["AsyncCurl"] | CODE |
| LOW | curl_cffi/fingerprints.py | 14 | __all__ = [ | CODE |
| LOW | curl_cffi/fingerprints.py | 474 | def set_api_key(cls, api_key: str) -> None: | CODE |
| LOW | curl_cffi/cli/__init__.py | 16 | __all__ = [ | CODE |
| LOW | curl_cffi/requests/cookies.py | 5 | __all__ = ["Cookies"] | CODE |
| LOW | curl_cffi/requests/cookies.py | 221 | def update_cookies_from_curl_changes(self, changes: list[bytes]) -> None: | CODE |
| LOW | curl_cffi/requests/cache.py | 22 | __all__ = [ | CODE |
| LOW | curl_cffi/requests/__init__.py | 1 | __all__ = [ | CODE |
| LOW | curl_cffi/requests/utils.py | 3 | __all__ = ["HttpVersionLiteral", "set_curl_options", "NOT_SET"] | CODE |
| LOW | curl_cffi/requests/errors.py | 3 | __all__ = ["CurlError", "RequestsError", "CookieConflict", "SessionClosed"] | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | curl_cffi/cli/request.py | 16 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 220 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 297 | CODE | |
| LOW | curl_cffi/requests/websockets.py | 698 | CODE | |
| LOW | curl_cffi/requests/session.py | 225 | CODE | |
| LOW | curl_cffi/requests/session.py | 667 | CODE | |
| LOW | curl_cffi/requests/session.py | 853 | CODE | |
| LOW | curl_cffi/requests/session.py | 1162 | CODE | |
| LOW | curl_cffi/requests/session.py | 1359 | CODE | |
| LOW | curl_cffi/requests/session.py | 1536 | CODE | |
| LOW | curl_cffi/requests/utils.py | 580 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/server.py | 21 | # gunicorn benchmark.server:app -b 127.0.0.1:8000 -n benchmark -w 8 -k \ | COMMENT |
| LOW | tests/pro/test_fp_verify.py | 401 | # "\n".join( | COMMENT |
| LOW | ffi/shim.h | 1 | #include <stdlib.h> | COMMENT |
| LOW | curl_cffi/_asyncio_selector.py | 181 | # this class is only intended for use on windows, where | COMMENT |
| LOW | curl_cffi/requests/impersonate.py | 341 | # 14907-19017:"Unassigned | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW⚡ | tests/unittest/test_impersonate.py | 58 | # TODO: implement local ja3/akamai verification server with th1. | COMMENT |
| LOW | curl_cffi/cli/run.py | 107 | # TODO: implement body checking | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | examples/upload.py | 23 | # you can add multiple files under the same field name | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | curl_cffi/aio.py | 259 | def process_data(self, sockfd: int, ev_bitmask: int): | CODE |
| LOW | curl_cffi/cli/request.py | 80 | def handle_request( | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | benchmark/ws_bench_2.py | 54 | # Write file to disk | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | curl_cffi/_asyncio_selector.py | 204 | # polling the waker alone. If we are, just return to the | COMMENT |