AI Slop Code RIsk Monitor

ramnes/notion-sdk-py

Notion API client SDK, rewritten in Python! (sync + async)

18.9 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for ramnes/notion-sdk-py, a Python project with 2,193 GitHub stars. SynthScan examined 21,095 lines of code across 157 source files, recording 306 pattern matches distributed across 11 syntactic categories. The legacy adjusted pattern signal is 18.9 (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.

18.9
Adjusted Signal
18.9
Raw Pattern Score
100%
Time Factor
2026-10-11
Last Push
2.2K
Stars
Python
Language
21.1K
Lines of Code
157
Files
306
Pattern Hits
2026-10-12
Scan Date
0.12
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 42.2/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 220 finding(s).

Hallucinated Dependency & Supply Chain Risk 7.4/100 · LOW

Are imports declared and package/API names verified? 40 finding(s).

Agent Over-Engineering Ratio 54.4/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 248 finding(s).

PR Review Velocity Impact 64.2/100 · HIGH

Which changes need focused human review? 306 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

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.

CRITICAL 0HIGH 19MEDIUM 16LOW 271

Directory Score Breakdown

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.

Pattern Findings

The scanner identified 306 distinct pattern matches across 11 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.

Hyper-Verbose Identifiers202 hits · 196 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py39 def remove_page_id_for_matches(r1, r2):CODE
LOWtests/conftest.py213def pending_single_file_upload_id(client):CODE
LOWtests/conftest.py222def pending_multi_file_upload_id(client):CODE
LOWtests/conftest.py234def part_uploaded_file_upload_id(client, pending_multi_file_upload_id):CODE
LOW⚡tests/test_errors.py42def test_api_http_response_error(client):CODE
LOW⚡tests/test_errors.py48async def test_async_api_response_error(async_client):CODE
LOW⚡tests/test_errors.py55async def test_async_api_request_timeout_error(monkeypatch, async_client):CODE
LOW⚡tests/test_errors.py66async def test_api_async_request_bad_request_error(async_client):CODE
LOW⚡tests/test_errors.py72def test_api_response_error_request_id(client):CODE
LOW⚡tests/test_errors.py81async def test_async_api_response_error_request_id(async_client):CODE
LOW⚡tests/test_errors.py90def test_api_response_error_additional_data(client):CODE
LOW⚡tests/test_errors.py100async def test_async_api_response_error_additional_data(async_client):CODE
LOW⚡tests/test_errors.py109def test_is_notion_client_error():CODE
LOW⚡tests/test_errors.py473def test_is_notion_client_error_with_invalid_path_parameter_error():CODE
LOW⚡tests/test_errors.py479def test_validate_request_path_allows_valid_paths():CODE
LOW⚡tests/test_errors.py488def test_validate_request_path_rejects_literal_path_traversal():CODE
LOWtests/test_errors.py31def test_api_request_timeout_error(monkeypatch, client):CODE
LOWtests/test_errors.py132def test_is_http_response_error():CODE
LOWtests/test_errors.py155def test_request_timeout_error_static_method():CODE
LOWtests/test_errors.py176def test_unknown_http_response_error_static_method():CODE
LOWtests/test_errors.py196def test_api_response_error_static_method():CODE
LOWtests/test_errors.py220def test_build_request_error_integration(client):CODE
LOWtests/test_errors.py235def test_build_request_error_creates_api_response_error():CODE
LOWtests/test_errors.py290def test_build_request_error_recognizes_invalid_beta():CODE
LOWtests/test_errors.py315def test_build_request_error_creates_unknown_http_response_error():CODE
LOWtests/test_errors.py370def test_unknown_http_response_error_default_message():CODE
LOWtests/test_errors.py382def test_unknown_http_response_error_custom_message():CODE
LOWtests/test_errors.py410def test_request_timeout_error_custom_message():CODE
LOWtests/test_errors.py420async def test_request_timeout_error_reject_after_timeout():CODE
LOWtests/test_errors.py438def test_invalid_path_parameter_error():CODE
LOWtests/test_errors.py449def test_invalid_path_parameter_error_static_method():CODE
LOWtests/test_errors.py505def test_validate_request_path_rejects_encoded_path_traversal():CODE
LOWtests/test_errors.py525def test_validate_request_path_handles_invalid_percent_encoding():CODE
LOWtests/test_errors.py533def test_unknown_error_surfaces_edge_metadata_for_blocked_request():CODE
LOWtests/test_errors.py562def test_unknown_error_reads_edge_metadata_from_mixed_case_headers():CODE
LOWtests/test_errors.py577def test_unknown_error_does_not_blame_security_rule_for_server_error():CODE
LOWtests/test_errors.py593def test_unknown_error_omits_content_type_note_when_absent():CODE
LOWtests/test_errors.py610def test_unknown_error_does_not_attribute_origin_response_to_edge():CODE
LOWtests/test_errors.py631def test_unknown_error_keeps_generic_message_without_proxy_metadata():CODE
LOWtests/test_errors.py646def test_api_response_error_exposes_response_metadata():CODE
LOWtests/test_errors.py671def test_request_id_from_body_wins_over_header():CODE
LOW⚡tests/test_endpoints.py323def test_views_queries_create(client, view_id):CODE
LOW⚡tests/test_endpoints.py330def test_views_queries_results(client, view_id):CODE
LOW⚡tests/test_endpoints.py338def test_views_queries_delete(client, view_id):CODE
LOW⚡tests/test_endpoints.py399def test_pages_retrieve_markdown(client, page_id):CODE
LOW⚡tests/test_endpoints.py405def test_pages_update_markdown(client, page_id):CODE
LOW⚡tests/test_endpoints.py415def test_async_tasks_retrieve(client, page_id):CODE
LOWtests/test_endpoints.py41def test_pages_properties_retrieve(client, page_id):CODE
LOWtests/test_endpoints.py47def test_blocks_children_create(client, page_id) -> str:CODE
LOWtests/test_endpoints.py60def test_blocks_children_list(client, page_id):CODE
LOWtests/test_endpoints.py68def test_blocks_meeting_notes_create_from_file_upload(client, mocker):CODE
LOWtests/test_endpoints.py101def test_blocks_meeting_notes_create_from_block(client, mocker):CODE
LOWtests/test_endpoints.py118def test_blocks_meeting_notes_query(client, mocker):CODE
LOWtests/test_endpoints.py244def test_data_sources_retrieve(client, data_source_id):CODE
LOWtests/test_endpoints.py264def test_data_sources_list_templates(client, data_source_id):CODE
LOWtests/test_endpoints.py453def test_file_uploads_create_multipart(client, mocker):CODE
LOWtests/test_endpoints.py480def test_file_uploads_create_external(client):CODE
LOWtests/test_endpoints.py494def test_file_uploads_retrieve(client, single_file_upload_id):CODE
LOWtests/test_endpoints.py516def test_file_uploads_list_with_status_filter(client, setup_file_uploads_ids):CODE
LOWtests/test_endpoints.py528def test_file_uploads_list_with_start_cursor(client, setup_file_uploads_ids):CODE
142 more matches not shown…
Empty Error Handlers18 hits · 90 pts
SeverityFileLineSnippetContext
HIGHtests/conftest.py102except Exception:CODE
HIGHtests/conftest.py320except Exception:CODE
HIGHtests/conftest.py324except Exception:CODE
HIGHnotion_client/client.py307except ValueError:CODE
HIGHnotion_client/client.py315except (ValueError, TypeError):CODE
HIGHexamples/notion_github_sync/notion_github_sync.py10except ModuleNotFoundError:CODE
HIGHexamples/database_email_update/database_email_update.py9except ModuleNotFoundError:CODE
HIGH…_from_any_block_type/parse_text_from_any_block_type.py8except ModuleNotFoundError:CODE
HIGH…tion_task_github_pr_sync/notion_task_github_pr_sync.py10except ModuleNotFoundError:CODE
HIGHexamples/web_form_with_fastapi/web_form_with_fastapi.py12except ModuleNotFoundError:CODE
HIGHexamples/intro_to_notion_api/basic/1_add_block.py10except ModuleNotFoundError:CODE
HIGH…amples/intro_to_notion_api/basic/3_add_styled_block.py10except ModuleNotFoundError:CODE
HIGH…amples/intro_to_notion_api/basic/2_add_linked_block.py10except ModuleNotFoundError:CODE
HIGH…s/intro_to_notion_api/intermediate/3_query_database.py12except ModuleNotFoundError:CODE
HIGH…ples/intro_to_notion_api/intermediate/5_upload_file.py10except ModuleNotFoundError:CODE
HIGH…o_to_notion_api/intermediate/2_add_page_to_database.py12except ModuleNotFoundError:CODE
HIGH…ntro_to_notion_api/intermediate/1_create_a_database.py10except ModuleNotFoundError:CODE
HIGH…es/intro_to_notion_api/intermediate/4_sort_database.py12except ModuleNotFoundError:CODE
Unused Imports38 hits · 29 pts
SeverityFileLineSnippetContext
LOWnotion_client/__init__.py9CODE
LOWnotion_client/__init__.py9CODE
LOWnotion_client/__init__.py9CODE
LOWnotion_client/__init__.py10CODE
LOWnotion_client/__init__.py10CODE
LOWnotion_client/__init__.py10CODE
LOWnotion_client/__init__.py10CODE
LOWnotion_client/__init__.py10CODE
LOWnotion_client/__init__.py10CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py18CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py33CODE
LOWnotion_client/__init__.py51CODE
LOWnotion_client/__init__.py51CODE
LOWnotion_client/api_endpoints.py9CODE
Decorative Section Separators8 hits · 24 pts
SeverityFileLineSnippetContext
MEDIUMexamples/intro_to_notion_api/basic/1_add_block.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…amples/intro_to_notion_api/basic/3_add_styled_block.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…amples/intro_to_notion_api/basic/2_add_linked_block.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…s/intro_to_notion_api/intermediate/3_query_database.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM…ples/intro_to_notion_api/intermediate/5_upload_file.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…o_to_notion_api/intermediate/2_add_page_to_database.py20# ---------------------------------------------------------------------------COMMENT
MEDIUM…ntro_to_notion_api/intermediate/1_create_a_database.py18# ---------------------------------------------------------------------------COMMENT
MEDIUM…es/intro_to_notion_api/intermediate/4_sort_database.py20# ---------------------------------------------------------------------------COMMENT
Self-Referential Comments7 hits · 22 pts
SeverityFileLineSnippetContext
MEDIUM⚡tests/test_helpers.py492 # Create a scenario that causes urlparse to failCOMMENT
MEDIUMexamples/first_project/script.py34# Create a new pageCOMMENT
MEDIUM…s/intro_to_notion_api/intermediate/3_query_database.py62 # Create a new databaseCOMMENT
MEDIUM…ples/intro_to_notion_api/intermediate/5_upload_file.py87 # Create a comment on the text block with the same image by providingCOMMENT
MEDIUM…o_to_notion_api/intermediate/2_add_page_to_database.py41 # Create a new databaseCOMMENT
MEDIUM…ntro_to_notion_api/intermediate/1_create_a_database.py28 # Create a new databaseCOMMENT
MEDIUM…es/intro_to_notion_api/intermediate/4_sort_database.py70 # Create a new databaseCOMMENT
Excessive Try-Catch Wrapping18 hits · 19 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py66 except Exception:CODE
LOWtests/conftest.py102 except Exception:CODE
LOWtests/conftest.py320 except Exception:CODE
LOWtests/conftest.py324 except Exception:CODE
LOWnotion_client/client.py396 except Exception as error:CODE
LOWnotion_client/client.py487 except Exception as error:CODE
LOWexamples/database_email_update/database_email_update.py125 except Exception as e:CODE
LOWexamples/databases/create_database.py34 except Exception as e:CODE
LOWexamples/file_uploads/create_file_uploads_multi.py78 except Exception as e:CODE
LOWexamples/file_uploads/create_file_uploads_multi.py110 except Exception as exc:CODE
LOWexamples/web_form_with_fastapi/web_form_with_fastapi.py64 except Exception as error:CODE
LOWexamples/web_form_with_fastapi/web_form_with_fastapi.py93 except Exception as error:CODE
LOWexamples/web_form_with_fastapi/web_form_with_fastapi.py115 except Exception as error:CODE
LOWexamples/web_form_with_fastapi/web_form_with_fastapi.py131 except Exception as error:CODE
LOW.github/scripts/monitor_notion_changelog.py119 except Exception as e:CODE
LOW.github/scripts/monitor_notion_changelog.py125 except Exception as e:CODE
LOW.github/scripts/monitor_notion_changelog.py160 except Exception as e:CODE
MEDIUM.github/scripts/monitor_notion_changelog.py116def main():CODE
Deep Nesting7 hits · 7 pts
SeverityFileLineSnippetContext
LOWnotion_client/client.py161CODE
LOWexamples/generate_random_data/generate_random_data.py41CODE
LOWexamples/generate_random_data/generate_random_data.py102CODE
LOWexamples/databases/create_database.py16CODE
LOW…_from_any_block_type/parse_text_from_any_block_type.py48CODE
LOWexamples/file_uploads/create_file_uploads_multi.py14CODE
LOWexamples/file_uploads/create_file_uploads_extenal.py13CODE
Redundant / Tautological Comments4 hits · 6 pts
SeverityFileLineSnippetContext
LOWnotion_client/helpers.py182 # Check if it's already a properly formatted UUIDCOMMENT
LOWnotion_client/helpers.py189 # Check if it's a compact UUID (32 chars, no hyphens)COMMENT
LOWexamples/file_uploads/create_file_uploads_multi.py114 # Check if all parts uploaded successfullyCOMMENT
LOW.github/scripts/monitor_notion_changelog.py107 # Check if an issue with same title existsCOMMENT
Cross-Language Confusion1 hit · 2 pts
SeverityFileLineSnippetContext
HIGHnotion_client/client.py74 auth: Bearer token for authentication. If left undefined, the `auth` parameterSTRING
Modern Structural Boilerplate2 hits · 2 pts
SeverityFileLineSnippetContext
LOWnotion_client/__init__.py56__all__ = [CODE
LOW.github/scripts/monitor_notion_changelog.py14logger = logging.getLogger(__name__)CODE
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWREADME.md84 'person': {'email': 'avo@example.org'},CODE