Repository navigation
apisurface: 14 more PyPI packages, and fewer false removals - #242
Merged
Merged
Conversation
|
Claude finished @adssib's task in 1m 49s —— View job ✅ Ready to merge. The 14 sources are registered with complete metadata, each has a golden pair and a drop pair from real releases, and the reader changes only turn would-be removals into notes, so they can't add false events. Everything I ran passes. Rules
BugsNone found. I checked the precision-sensitive paths:
Verified
Non-blocking (optional)
Thanks for the careful work, especially the scan of past releases for false removals and the tests written from each case. |
This was referenced Nov 21, 2026
Closed
Registers anthropic, stripe, google-genai, sentry-sdk, pymongo, redis, numpy, supabase, algoliasearch, elasticsearch, ddtrace, cloudflare, textual and urllib3, each with a golden pair and a drop pair of real releases. openai/python-sdk is now openai/python-surface: anthropic's python-sdk id is its migration guide's, and every API-surface source is named <provider>/<...>-surface. The reader now drops what scanning recent releases of these packages showed to be no removal: a name its module still binds (an alias, an import, a star import or __getattr__ it can't list), a property's setter, self or cls gone, modules named internal or vendor, and an __init__'s imports from outside its own modules. A star import re-exports in any module. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: adssib <75389300+adssib@users.noreply.github.com>
adssib
force-pushed
the
pl4-pysurface
branch
from
November 21, 2026 02:55
79497b1 to
d6f0e7d
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #241.
What this changes
Fourteen new
apisurfacesources, one per PyPI package, each with a golden pair and a drop pair of real consecutive releases (trimmed wheels, files copied byte for byte):anthropic/python-surfacepypi:anthropicDeadlineExceededErrormade an alias: no event)stripe/python-surfacepypi:stripeStripeObject.request)google/genai-python-surfacepypi:google-genaiTuningJobOrOperation)sentry/python-surfacepypi:sentry-sdkutils.to_timestamp)mongodb/pymongo-surfacepypi:pymongoexplicit_sessiongone from the command cursors)redis/redis-py-surfacepypi:redisnumpy/python-surfacepypi:numpyrow_stack, from the .pyi stubs)supabase/python-surfacepypi:supabaseSupabaseAuthClientparameters)supabase.clientmade a star re-export)algolia/python-surfacepypi:algoliasearchelastic/python-surfacepypi:elasticsearchrequests_per_secondnow required:changed_default)datadog/ddtrace-python-surfacepypi:ddtracecloudflare/python-surfacepypi:cloudflaretextual/python-surfacepypi:textualurllib3/python-surfacepypi:urllib3getheader/getheaders)openai/python-sdkis nowopenai/python-surface(no backward compatibility):anthropic/python-sdkis already Anthropic's migration-guide source, so every API-surface source is named<provider>/…-surface(numpy/python-surface, notnumpy/surface: gitleaks reads"api": "numpy/surface"as a generic API key).The reader got harder to fool (tests first, each from a false removal found by scanning the last 12 releases and every major of these packages):
X = Y), an import from a private module, a star import from outside the package, a module-level__getattr__(Release.Bindings,pysurface.ReadBindings);__init__;self/clsgone (a method made static) isn't a removed parameter;internalorvendorare private;__init__re-exports only what it imports from its own modules (not a logger it imports from elsewhere).Checklist
plugins/apisurface/pypi.go), and I read the words.testdata/golden/<provider>-<source>.json,TestPyPIGolden)testdata/README.mdlists each file: URL, date fetched, licenseTestPyPIDrop)providers/<provider>-<source>.mdfor each, with Why this source and a quote from the saved releaseenv.Getmake checkpasses locallyCalls I made (please check)
-surface, and the openai rename (above).internal/vendormodules private: ddtrace's public-looking surface was mostlyddtrace.internal.*andddtrace.contrib.internal.*; precision over recall.internal/pluginlisttest no longer hard-codes Algolia's exact source list (it now has an apisurface source too).api(the id) changed; its fingerprints follow.Related PRs
🤖 Generated with Claude Code