PYPI PACKAGE AUDIT v0.2.0 Needs Improvement

sunsetwatch

Scan a codebase for retired AI model IDs and archived MCP server packages, checked against a deprecation registry.

PyPkgScore sunsetwatch
Methodology & Criteria ♥ Donate
520 / 1000
Quick Install
pip install sunsetwatch
1. Governance
50/200
2. PEP Metadata
150/200
3. Security
150/200
4. Docs & SEO
105/200
5. CI Engineering
65/200
📣 Share Audit: Share this report and visual preview in the current language
Advertisement
PYPI TELEMETRY

Downloads & Community Adoption

Last 30 days (without mirrors)
Last 7 days
0
Last 30 days
0
Total (180 days)
0
Metric / Ecosystem Status / Value Source
Downloads (30d / 180d) — PyPI Stats (without mirrors)
Trusted Publishing (PEP 740) ✕ Not detected PyPI Integrity / Sigstore
Django Packages — djangopackages.org
PyTech / PyPkgScore 520 / 1000 PyPkgScore Engine

Health & Engineering Analysis (5 Pillars)

1. Governance & Community50 / 200 ▾
LICENSE✓ 50 pts
SECURITY.md✕ 0 pts
CONTRIBUTING.md✕ 0 pts
CODE_OF_CONDUCT.md✕ 0 pts
2. PEP Metadata & Packaging150 / 200 ▾
Wheel (.whl)✓ 50 pts
pyproject.toml✓ 50 pts
Project URLs✓ 50 pts
Trove Classifiers✕ 0 pts
3. Security & Supply Chain150 / 200 ▾
Zero CVEs (OSV)✓ 60 pts
Trusted Publishing (OIDC)✕ 0 pts
Snyk / Audit Link✓ 40 pts
HTTPS Repository✓ 50 pts
4. Documentation, SEO & Ecosystem105 / 200 ▾
Structured README✓ 60 pts
Read the Docs✕ 0 pts
Django Packages✕ 0 pts
Website / Technical Articles✓ 45 pts
5. Engineering, CI & Quality65 / 200 ▾
Automated Tests✓ 65 pts
GitHub Actions CI✕ 0 pts
CHANGELOG.md✕ 0 pts
Env & Lockfile (uv/rye/poetry/pdm/hatch)✕ 0 pts
Advertisement
README & DOCS

Official Documentation & Usage Guide — sunsetwatch

PyPI Metadata v0.2.0
Show full original documentation (English README) ▾

SunsetWatch — POC

A local proof-of-concept for SunsetWatch, an AI model deprecation monitor: scan a codebase for AI model ID strings, check them against a deprecation registry, and produce a report of what is retired, what is retiring (and when), and what is unknown.

Built 2026-11-08 from the validation dossier in ../files/validations/sunsetwatch.md. The dossier's verdict was keep parked; this POC exists because Sidd chose to start with SunsetWatch anyway, and its job is to prove the core loop cheaply before any MVP decision.

What it proves

  • Scan → match → report works end-to-end. Point it at a directory; it finds model IDs in source files (.py, .ts, .js, .go, .java, …), config files (.json, .yaml, .toml), and .env files, with exact file:line locations.
  • Registry matching handles the dossier's hard cases, not just the easy ones:
    • exact entries beat family dates (gpt-4o-2024-05-13 retired 2026-10-23, not with the other GPT-4o snapshots on 2027-01-14);
    • dated snapshots match family rules (gpt-4o-2024-08-06 → 2027-01-14);
    • bare aliases are reported as aliases, not given invented dates (gpt-4o);
    • per-route dates are carried in the data (Claude Sonnet 4.5: 2026-11-30 on the Claude API, 2027-04-08 on Bedrock).
  • Parameter deprecations are flagged too: temperature / top_p / top_k in Anthropic-referencing files, per the Anthropic API version 2026-10-21 removal.
  • Retired MCP servers are flagged too (added 2026-11-23, v0.2). MCP servers live in client configs (.mcp.json, claude_desktop_config.json, …), not dependency files — and in May 2025 the MCP project moved 14 of its reference servers to a read-only archive (servers-archived, "no security guarantees"). They still install and run via npx/uvx; they just never get fixes or protocol updates, and they're still downloaded ~600K times a week. The scan finds @modelcontextprotocol/server-* (npm) and mcp-server-* (PyPI) package references, reports archived ones with their maintained replacement where one exists (e.g. server-github → github/github-mcp-server), and reports the 7 still-maintained reference servers as active so they are never flagged. --fail-on-risk also trips on archived MCP servers. Source: the Archived section of the modelcontextprotocol/servers README, checked 2026-11-23.
  • The registry is honest about provenance. Every date in registry.json is copied from the 2026-11-08 validation dossier (OpenAI's Oct 23, 2026 shutdowns, Sonnet 4.5 on Nov 30, 2026, GPT-4o/4.1 snapshots on Jan 14, 2027, GPT-5 family on Dec 11, 2026, Gemini 2.5 on Vertex on Oct 20, 2026). No date was invented; models not in the seed registry report as unknown, which the report explicitly says does not mean safe.

Run it

cd sunsetwatch-poc

# Demo against the bundled fixture project
python3 sunsetwatch.py fixtures/sample-app --out demo-report.md

# Scan a real project (read-only; writes only the report file)
python3 sunsetwatch.py /path/to/project --out report.md

# CI-style: exit 1 if any retired/retiring model is found
python3 sunsetwatch.py /path/to/project --fail-on-risk

# Reproducible runs: pin the scan date
python3 sunsetwatch.py fixtures/sample-app --today 2026-11-08

Requirements: Python 3.10+, standard library only. No installs, no network, no accounts.

Tests

python3 -m unittest discover -s tests -v

14 tests covering registry matching (exact / family / unknown / alias / per-route), the scanner (file:line locations, .env and config scanning, skipping node_modules/.git, dedupe), parameter-deprecation scoping, and an end-to-end fixture scan → report check. All passing as of 2026-11-08.

Layout

Path What
sunsetwatch.py The CLI: scanner + registry + report generator
registry.json Hand-seeded lifecycle registry (dossier facts only)
fixtures/sample-app/ Fake project with 9 model usages across Python, TypeScript, .env, and YAML
demo-report.md Output of the demo run against the fixture
tests/test_sunsetwatch.py Automated tests

What it deliberately does NOT do

  • No hosted service, no dashboard, no accounts. The dossier found the only possible paid wedge is hosted zero-config convenience; this POC does not test that wedge, it tests the scan/report core underneath it.
  • No GitHub integration — no App, no issues, no PRs. Those are the free competitors' ground (llmshift digest/upgrade, modelbump's Action) and stay out of POC scope.
  • No scheduled watching / nightly checks — it is a point-in-time scan you run by hand, like the free CLIs. Continuous monitoring is an MVP question, not a POC question.
  • No upgrade PRs or auto-edits — replacements are reported, never applied. The dossier is explicit that provider-named replacements are not behavior-equivalent, so a human always makes the swap.
  • No registry maintenance pipeline — registry.json is hand-seeded and goes stale. The dossier's #1 risk is exactly this: the registry is a treadmill of provider pages that move dates and contradict their own emails. Nothing here solves that.
  • No alias-drift detection (a bare alias silently resolving to a new snapshot) — that is modelalive's named feature and far beyond a POC.
  • No notebooks, no AST parsing — matching is regex over text lines, so model-like strings in comments are reported too. Precision work (confidence scoring, suppression) is sellable-v1 territory per the dossier.

The decision this informs

The POC answers "does the scan → registry → report loop work and produce a report a developer would act on?" — yes, cheaply, in ~350 lines of stdlib Python. It does not answer the question the dossier says actually decides SunsetWatch's fate: will teams pay for a hosted, zero-config version when llmshift / modelbump / modelalive already do scan + digest for free?

Suggested next step (from the dossier, unchanged): the launch-content experiment — scan popular public repos for model IDs that died in the Oct 23, 2026 shutdown and publish the receipts. Sustained attention plus a waitlist asking for continuous hosted monitoring would justify an MVP (GitHub App + hosted registry pipeline). Silence — or "I just added the free Action" — parks SunsetWatch again, having cost a POC instead of seven weekends.