# The Library Switching Teardown: Manifest Diffs to a Net Migration Range

*Turn public manifest diffs into dated switching counts in both directions, strip forks, bots and coexistence, and report a net range with its denominator named.*

- Canonical URL: https://www.refolk.ai/guides/library-switching-flow-teardown
- Pillar: Market and talent intelligence
- Format: Teardown
- Published: 2026-11-27
- Last reviewed: 2026-11-27
- Reading time: 22 min
- Keywords: is library X replacing library Y, measure migration between competing open source libraries, open source market share dependents vs downloads, count repos that switched dependencies, competitor library adoption analysis

## Key takeaways

- Downloads, stars and dependent totals are stocks, so they cannot separate new adoption from switching. Only paired remove-A, add-B commits in the same declared manifest show which way users are moving.
- In PyMigBench's published funnel, 195,075 non-fork Python repos produced 7,423 candidate migrations, and hand review confirmed 75 migrations with code changes across 34 library pairs. A manifest-diff count nobody has checked by hand overstates switching by orders of magnitude.
- deps.dev ties dependents to versions: pypi/preshed shows 3,100 dependents on 3.0.13 and 1 on its default 4.0.0. Pool all versions at each snapshot before you compare dates.
- Across PyPI's 2026-08-24 logging change, total logged urllib3 requests fell 39.8% while artifact downloads fell only 1.4%. Compare artifact-only series and drop the transition day.
- In Refolk's index, US pandas profiles outnumber polars profiles 57.9 to 1 (30,111 to 520). That ratio is a stock and says nothing about direction.
- Every switching count built from public manifests is a lower bound, because GitHub code search only sees default branches and dependency data is not reported for private repositories.

This guide answers one leadership question with a dated count rather than a download chart: is a rival open-source library actually taking users from yours, or from the incumbent you both compete with, and in which direction? It is for strategy and research teams, talent-intelligence analysts and operators sizing a market. I carry one pair, pandas and polars on PyPI, from framing to a net migration range. Along the way I give the real queries, the exclusion made at every fork in the road, and the wrong turns that inflate the answer.

One note on honesty before starting. The counts in this guide are the published reference funnels and the measurement artifacts I can source. The pandas-and-polars numbers your own run produces are yours, and the report template near the end has a slot for each one.

## Why can't downloads, stars or dependents tell you whether library X is replacing library Y?

Downloads, stars and dependents are stocks, and switching is a flow. A stock is a total at one moment. A flow is a count of dated events that move a project from one state to another. Here the event is a commit that removes library A and adds library B.

A rising download line for the rival blends three groups you cannot separate afterwards:

- New projects that never used either library.
- Projects that now run both.
- Projects that left the incumbent.

The line also says nothing about traffic going the other way. Stars measure attention. Dependent totals measure who is standing where today. This is why comparisons of open source market share by dependents vs downloads keep disagreeing: each compares two stocks with different denominators, and neither carries direction.

The skill footprint shows the same blindness from the people side. In [Refolk](/)'s index of professional profiles:

| Skill | Country | Profiles |
|---|---|---|
| Pandas | United States | 30,111 |
| Polars | United States | 520 |
| Polars | Germany | 113 |

**57.9x - US pandas profiles per US polars profile in Refolk's index**

A ratio this wide sizes the two communities but cannot say whether anyone is moving between them.

**What this proves.** Polars is a minority skill next to pandas. If the two groups did not overlap, polars would be 1.7% of US pandas-plus-polars profiles. That no-overlap assumption is unverified, and many people surely list both. The US has 4.6 times as many polars profiles as Germany. Current employers among a 25-profile sample of US polars profiles include Affirm, Bloomberg, WEX and Bristol Myers Squibb. In Germany they include SAP, GSK, Vodafone, trivago and DHL Express. Each appears once in its sample.

**What it looks like when it lies.** Read the ratio as adoption share and you get a number with no direction. A profile lists a skill someone learned, not a dependency they ship. The footprint does one useful job in this guide: it sizes, and helps you find, the people to ask about switching that the public graph cannot see.

> A stock tells you who is standing where. Only a paired remove-and-add tells you who walked, and which way.

## What counts as a switch, and against which denominator?

A switch is a commit that removes library A and adds library B in the same declared manifest, made by a project that still has B and not A at the end of the window. Everything else is a candidate, a trial, or noise.

The working definition comes from PyMigBench, the migration benchmark built by Mohayeminul Islam and Sarah Nadi. It defines migration as when "client developers replace one library in favor of another in the requirements file", and adds that "the commit must have both additions and deletions of library dependencies in the requirements file." That gives two conditions:

- **Same file.** The removal and the addition happen in one declared manifest. A declared manifest is a file where the project names its own direct dependencies, such as requirements.txt or pyproject.toml, as opposed to a lockfile.
- **Same commit.** Both edits land together. An addition one month and a removal three months later is two events, not a swap.

I add a third condition: an end-state check. A single-file diff cannot see that A was moved to a dev or extras file rather than dropped. So every candidate project is classified by what its manifests declare at window end.

#### End-of-window state decides what a candidate commit was

Horizontal axis runs from A absent at window end to A present at window end. Vertical axis runs from B absent at window end to B present at window end.

| Quadrant | What it means |
| --- | --- |
| Switched A to B | Count it, after the hand check |
| Coexistence | Exclude it and log it as a trial or dual use |
| Dropped both | Exclude it and look for a third library |
| Stayed on A | Exclude it and check for a revert inside the window |

*A candidate commit only counts as an A-to-B switch if, at window end, B is declared and A is declared nowhere in the project.*

The denominator is the population you counted switches out of. Two are defensible, and they measure different things.

> **Rule:** Name the denominator before the first query
>
> Every switching count carries one of two written denominators: "public non-fork repos with 10 or more stars that touch either library" or "published PyPI packages". Never add numbers from the two together.

deps.dev "only includes software that has been published on one of the dependency management systems tracked by deps.dev". It sees libraries, not applications. GitHub code search sees applications and scripts, but only in public repos, and only on default branches. The 10-star floor is PyMigBench's documented filter. Keep it unless you have a reason to change it and write that reason down.

## The procedure: from a library pair to a net migration range

The method is eight steps:

- Frame the comparison.
- Take a package-level baseline from dependency-graph snapshots.
- Find candidate repos.
- Walk manifest history.
- Exclude noise.
- Verify by hand.
- Cross-check downloads.
- Report.

Every timing below comes from published rate limits, not from practitioner reports, so treat them as floors.

#### Library switching count, end to end

1. **Fix the pair, window and denominator** - Name A, B, the ecosystem, two snapshot timestamps and the written denominator. Allow about an hour; done when the denominator sentence is in the report header.
2. **Take the deps.dev baseline at two snapshots** - Query Dependents at two SnapshotAt values with MinimumDepth = 1, pooling all versions. Allow one to two hours; done when you hold four counts.
3. **Enumerate candidate repos in sliced code searches** - Search each manifest filename and narrow every slice until it returns under 1,000 results with incomplete_results false. Done when you have a deduplicated repo list, with the B-to-A side seeded separately.
4. **Walk each manifest's commit history** - Script a walk of the commits that touch declared manifests, skip merge commits, and flag same-file remove-A, add-B commits in both directions. Done when you have a dated candidate table.
5. **Exclude noise into a ledger** - Drop forks, repos under 10 stars, bot authors, commits with more than 9 candidate migrations, coexistence at window end and reverts. Done when each slice has its own count.
6. **Hand-verify a sample with two reviewers** - Two people independently judge sampled survivors in each direction. Done when you have a precision estimate per direction, with the sample size and disagreements recorded.
7. **Cross-check against de-noised downloads** - Exclude CI traffic, keep artifact files only, split at 2026-08-24 and drop that day. Done when the trend direction sits next to the switching result.
8. **Report gross flows, net range, ledger and denominator** - Publish both gross directions as ranges, the net range, the ledger and the denominator, labelled as a lower bound. Done when every number can be rebuilt from the ledger.

## The pandas and polars run: queries, decisions and wrong turns

Use deps.dev for the package-level baseline, GitHub code search for the repo-level candidate pool, a script for manifest history, and two people for verification. The wrong turns cluster in three places: version selection, fork handling and lockfiles.

### Step 1: the frame

Pandas is A, the incumbent. Polars is B, the rival. The ecosystem is PyPI. The window is bounded by two timestamps taken from the deps.dev Snapshots table, which lists the times at which a full snapshot of every other table exists. Using snapshot times for both the package baseline and the repo walk keeps the two sources on the same dates. Both denominators go into the report header now, before any number exists to tempt you into choosing the flattering one.

### Step 2: the dependency-graph baseline

deps.dev builds its Dependents table by inverting its Dependencies table. MinimumDepth = 1 isolates direct dependents, meaning packages that declare the library themselves rather than inheriting it through something else. History lives in the SnapshotAt column. The DependentsLatest view returns only the newest snapshot, so it is useless for measuring change.

**deps.dev baseline, direct dependents at two snapshots**

```
-- Direct dependent packages of pandas and polars on PyPI,
-- pooled across all versions of each library, at two snapshots
SELECT
  Name AS library,
  SnapshotAt,
  COUNT(DISTINCT Dependent.Name) AS direct_dependent_packages
FROM `bigquery-public-data.deps_dev_v1.Dependents`
WHERE System = 'PYPI'
  AND Name IN ('pandas', 'polars')
  AND MinimumDepth = 1
  AND SnapshotAt IN (TIMESTAMP('START_SNAPSHOT'), TIMESTAMP('END_SNAPSHOT'))
GROUP BY library, SnapshotAt
ORDER BY library, SnapshotAt;
```

*Take START_SNAPSHOT and END_SNAPSHOT from the Snapshots table, swap in your own pair, and confirm column names against the dataset schema before running.*

Two decisions sit inside that query.

**Pool all versions.** deps.dev ties dependent counts to versions. If you anchor on the newest release, a library that just shipped a release reads as if its users fled. The documented cases are stark. pypi/preshed shows 3,100 dependents on 3.0.13 and 1 on its default version, 4.0.0. One tool anchored on a single version reported pydantic-extra-types at "5 packages" when the real figure was about 3,400. That is a version-selection artifact, not a market signal. Count each dependent package once, across every version of the library.

**Filter SnapshotAt exactly.** The table is partitioned by SnapshotAt but not clustered by the other documented columns. The snapshot filter is the only documented cost control you have, so never run this query without it.

Two coverage notes for anyone rerunning on another ecosystem:

- The BigQuery docs list dependents for npm, Go, Maven, PyPI and Cargo, but the API docs list only npm, Cargo, Maven and PyPI.
- One tool reports that Go and NuGet return "dependents not found" from deps.dev, and that Cargo returns 0 even for serde.

PyPI is covered on both sides, but deps.dev only collects packages released as wheels and sdists. Check coverage before trusting a zero.

**A package-level switch count, if you want one.** A dependent package that declared pandas at the start snapshot, then declared polars and not pandas at the end, is a package-level switch. Doing this properly means comparing each dependent's newest release at each snapshot. deps.dev does not publicly document a named "highest release only" setting, so build and test that join yourself on a handful of packages you can check by hand.

### Step 3: enumerating candidate repos

This is where you count the repos that switched dependencies at application level. GitHub's REST search returns up to 1,000 results per search. Code search requires authentication and allows 10 requests a minute, so 1,000 results take 10 requests, or about a minute per slice. Code search only reads the default branch, and it excludes forks unless you add `fork:true`. A slow query can return partial results with `incomplete_results` set to true. Treat any such slice as unfinished and split it again.

```
polars filename:pyproject.toml
polars filename:requirements.txt
polars filename:environment.yml
polars filename:Pipfile
polars filename:requirements.txt size:<500
polars filename:requirements.txt size:500..2000
polars filename:requirements.txt size:>2000
```

Start with the four filename queries. If one returns 1,000 results, the cap has truncated it, so split it by file size or path until every slice sits under the cap. Then deduplicate on the full repo name.

**The asymmetry that catches people.** Code search shows the current state of the default branch. Pandas-to-polars candidates (polars present now) are directly searchable. Polars-to-pandas candidates are not, because their polars line is gone, and searching for pandas returns the whole incumbent base. Seed the reverse direction from three sources:

- Packages that were direct polars dependents at the start snapshot in deps.dev.
- Commit search, which allows 30 requests a minute and also runs on the default branch only, for messages that mention polars.
- On every later run, the polars enumeration you saved at the previous window start.

On a first run, the reverse direction is undercounted. Say so in the report rather than letting the net look more one-sided than it is.

### Step 4: walking manifest history

For each candidate repo, a script lists the commits that touch each declared manifest on the default branch. It skips merge commits (any commit with more than one parent), diffs each remaining commit, and flags those where A leaves and B arrives in the same file, or the reverse. The output is one row per candidate commit: the repo, the file, the date, the author login and the direction.

The wrong turn here is lockfiles. Pandas can appear or vanish in poetry.lock or uv.lock only because some other dependency pulls it in. Count declared manifests only, as PyMigBench does. The deps.dev side of the same rule is MinimumDepth = 1.

### Steps 5 and 6: exclusions and the hand check

The published funnels show what each stage removes and why the hand check cannot be skipped:

| Study | Starting pool | Candidates | Confirmed |
|---|---|---|---|
| PyMigBench | 195,075 repos | 3,617 commits, 7,423 migrations | 75 migrations, 34 pairs |
| PyMigBench manual stage | 1,244 migrations | n/a | 75 (6.0%) |
| SALM | 121,381 repos | message-based | 5,805 migrations, 5,061 commits |
| PyMigBench v2.2.5 | n/a | n/a | 321 migrations, 300 repos |

#### How far a raw manifest-diff count falls

| Stage | Figure | Note |
| --- | --- | --- |
| Repos sampled | 195,075 | Non-fork Python repos with 10+ stars |
| Candidate migrations | 7,423 | In 3,617 commits across 6,047 library pairs |
| Hand-reviewed | 1,244 | Migrations between frequently paired libraries |
| Confirmed with code changes | 75 | Across 34 library pairs |

*In PyMigBench, 7,423 candidate migrations from 195,075 repos narrowed to 75 hand-confirmed migrations with code changes.*

The big drop is noise, not migration. Most candidate pairs are unrelated removals and additions that happen to share a commit: of 6,047 candidate library pairs, 34 survived as confirmed pairs with code changes. The 6.0% rate at the manual stage measures "has code changes", not "is a real swap". No clean candidate-to-confirmed rate at the commit level has been published, so you cannot borrow one. Two reviewers read a sample from each direction independently, then you record the sample size, each reviewer's precision and every disagreement.

SALM, from Gu et al., mines migrations from commit messages that announce them, not from manifest diffs, and it finds different commits. Use it as a second seed, not a replacement.

## How the switching count goes wrong

Eight failure modes account for almost every inflated or reversed migration count I have seen. Each one has a check you can run, and each check produces a ledger line.

> **Watch out:** An unverified diff count is not a switching count
>
> A raw remove-A, add-B tally overstates switching by orders of magnitude. In PyMigBench, 6,047 candidate pairs became 34 confirmed ones. Never report a gross flow that has not been through hand review.

1. **Latest-version anchoring.** *Looks like:* the rival's newest release shows near-zero dependents and reads as an exodus. *Why:* deps.dev ties counts to versions, and preshed reads 3,100 on one version and 1 on its default. *Check:* pool all versions at each SnapshotAt.
2. **Counting forks.** *Looks like:* one upstream swap repeated across every fork. One paper, citing earlier work, puts forks at more than 40% of GitHub repositories. *Check:* code search already drops forks, but commit APIs do not. Read the fork flag on every repo before walking its history.
3. **Lockfile-only appearances.** *Looks like:* pandas "removed" in uv.lock because a transitive dependency changed. *Check:* declared manifests only in the repo walk, and MinimumDepth = 1 in deps.dev.
4. **Coexistence mistaken for a swap.** *Looks like:* polars added, pandas moved to an extras or dev file, and the edit reads as a clean swap within one file. *Check:* classify every candidate with the end-of-window matrix, reading all manifest files.
5. **Bot and agent commits.** *Looks like:* bulk renames or pins in many repos on the same day. One study finds Dependabot behind more than 65% of dependency management activity. Another finds 11.3% of projects dropped Dependabot, and of the 141 that moved to another automation method, 122 went to Renovate. Filtering Dependabot alone leaves the Renovate share in. *Check:* author type and login, plus PyMigBench's rule of dropping commits with more than 9 candidate migrations. Commits written by coding agents are not documented as distinguishable, so say that plainly in the report.
6. **Default-branch and private blind spot.** *Looks like:* a low count read as "nobody is switching". Migrations sitting on feature branches don't appear, and GitHub does not report dependency information for private repositories. *Check:* none is possible from public data. Label every figure a lower bound.
7. **Comparing PyPI across 2026-08-24.** *Looks like:* a drop of about 39% read as decline. *Check:* artifact files only on both sides, with the transition day dropped. The next section covers this.
8. **Wrong denominator.** *Looks like:* a deps.dev package count presented as "users". *Check:* deps.dev counts published packages, not applications. Name the denominator on every number.

Failure mode 6 matters most for a library like polars. The German employer mix in Refolk's index (SAP, DHL Express, Vodafone) points at enterprise data teams, which is exactly where private repos the method cannot see would sit. The honest fix is to ask practitioners directly, and Refolk makes finding them a single plain-English search rather than an afternoon of boolean strings:

I ran this search: `Data engineers in Germany who list both Polars and pandas and work at SAP, Vodafone or DHL Express` - [see the full result list](https://www.refolk.ai/s/pe9a8dnfyg).

*Returns named profiles at those employers that list both skills: the people to ask whether internal pipelines actually moved off pandas.*

Keep interview findings in a separate, qualitative column. They can tell you whether the public count runs low. They cannot be added to it.

## Cross-checking against de-noised PyPI downloads

Downloads can confirm the direction of a switching result, but never its size. Before you read them at all, exclude CI-flagged traffic, keep artifact files only, and never compare across 2026-08-24.

On 2026-08-24 PyPI stopped logging metadata requests, and PyPI says "comparisons across 2026-08-24 will not line up." The urllib3 figures show the mechanism:

| Date | Total logged | Artifacts | Other % |
|---|---|---|---|
| 2026-08-18 (Tue) | 77,477,790 | 47,268,787 | 39.0 |
| 2026-08-22 (Sat) | 49,665,300 | 30,080,582 | 39.4 |
| 2026-08-24 (transition) | 64,241,532 | 44,012,651 | 31.5 |
| 2026-08-25 | 46,619,401 | 46,619,401 | 0.0 |

**1.4% - Fall in urllib3 artifact downloads across the logging change, against a 39.8% fall in total logged requests**

Daily download dashboards abruptly dropped 20 to 40% at the same point, which was a change in measurement, not in demand.

The transition day is a mixture of both regimes, which is why it gets dropped. One secondary source says only .whl, .tar.gz and .zip files are now recorded, so filter to those extensions on both sides of the break and the two halves become comparable in kind.

CI traffic is the second layer of noise. CI-flagged downloads run between 20% and 35% of PyPI in published samples. Across all of PyPI on 2024-08-20 there were 559,831,549 CI downloads against 1,234,938,949 non-CI, a CI share of 31.2%. Filter on `details.ci`: pypinfo exposes a ci field, and pypi-winnow-downloads filters CI out. The CI flag only exists from 2024, and older pip clients don't send it, so a filtered series is still inflated by an unknown amount. No per-package CI share for typical packages has been published. Measure it for your two libraries; don't assume one.

> **Tip:** Read downloads for direction only
>
> Write "rising", "flat" or "falling" for each library on each side of 2026-08-24, next to the switching result. If downloads and switching point in opposite directions, check your denominator and CI filter before trusting either.

## Reporting gross flows, the net range and the ledger

Report two gross flows as ranges, a net range computed from them, the exclusion ledger that produced them, and the named denominator, labelled as a lower bound. A single net number with no ledger behind it is the download chart again in a different format.

Build the range from the two reviewers' precision estimates, taking the stricter reviewer as low precision and the looser as high:

- **Gross A to B:** surviving A-to-B commits times low precision, up to surviving A-to-B commits times high precision.
- **Gross B to A:** the same, for the reverse direction.
- **Net low:** gross A to B at low precision, minus gross B to A at high precision.
- **Net high:** gross A to B at high precision, minus gross B to A at low precision.

If the net range crosses zero, report it that way. "No measurable net migration in either direction" is an answer leadership can act on.

**Switching-flow report skeleton**

```
Question: Is polars taking users from pandas on PyPI?
Window: START_SNAPSHOT to END_SNAPSHOT
Denominator (repo level): public non-fork GitHub repos with 10+ stars whose default-branch manifests declare pandas or polars
Denominator (package level): published PyPI packages with pandas or polars as a direct dependency (deps.dev, MinimumDepth = 1, all versions pooled)

Package baseline
  pandas direct dependents: N at start, N at end
  polars direct dependents: N at start, N at end

Repo-level exclusion ledger
  Candidate commits found: N
  Excluded, forks: N
  Excluded, under 10 stars: N
  Excluded, bot authors (Dependabot, Renovate, other): N
  Excluded, more than 9 candidate migrations in commit: N
  Excluded, coexistence at window end: N
  Excluded, reverted inside window: N
  Surviving pandas to polars: N
  Surviving polars to pandas: N
  Hand-verified sample: N per direction, precision P_LOW to P_HIGH, disagreements N

Result
  Gross pandas to polars: N to N
  Gross polars to pandas: N to N
  Net migration range: N to N
  Bound: lower bound (public repos, default branches only; reverse direction seeded, not searched)

Download cross-check (artifacts only, CI excluded, 2026-08-24 dropped)
  pandas: direction before / direction after
  polars: direction before / direction after

Not measured: private repos, feature branches, agent-authored commits as a separate class
```

*Replace every N and placeholder with your own run; keep every ledger line even when its count is zero.*

#### Before the count leaves your desk

- [ ] The denominator sentence is written in the header and matches every number beneath it.
- [ ] The deps.dev counts pool all versions and filter SnapshotAt to exactly two snapshots.
- [ ] No code-search slice returned 1,000 results or had incomplete_results set to true.
- [ ] The fork flag was checked on every repo whose history was walked.
- [ ] Only declared manifests were diffed; no lockfile change counts as a switch.
- [ ] Every candidate project was classified by its end-of-window manifest state.
- [ ] Both Dependabot and Renovate logins, and all bot-type authors, are in the exclusion ledger.
- [ ] Two reviewers judged a sample in each direction, and the sample size and disagreements are recorded.
- [ ] The download series uses artifact files only, excludes CI and omits 2026-08-24.
- [ ] The result is labelled a lower bound, with the unmeasured slices listed.

## Keeping the count current

A switching count only becomes reliable on its second run, because that run can search the reverse direction properly. Store what each run needs, and re-check the measurement mechanisms before every rerun instead of trusting the last ones.

What to store at every window boundary:

- **The full candidate enumeration**, for both libraries. Next window's polars-to-pandas seed is this window's polars list.
- **Commit hashes and repo names for every verified switch.** Repos disappear: two of the 300 repos behind PyMigBench v2.2.5's 321 migrations are no longer public. Without hashes you can't re-audit a number someone challenges.
- **Both snapshot timestamps and the exact query text**, so the next analyst pulls the same partitions.

What to re-check before every rerun:

- **deps.dev ecosystem coverage.** The API and BigQuery docs disagree on which ecosystems have dependents. Run the baseline query on a library whose dependents you know before trusting a new ecosystem's numbers.
- **PyPI's logging rules.** Read the PyPI blog and the Python Packaging User Guide's page on analyzing downloads for any new break, and add it to your split dates the same way as 2026-08-24.
- **GitHub search limits.** The 1,000-result cap and the 10-requests-a-minute code search limit set your slicing plan and your timings. Confirm both in the REST docs before sizing the run.
- **Bot landscape.** If a new automation tool starts showing up in your candidate authors, add its login to the ledger as its own line rather than folding it into "other".

When the public count and the people side disagree, for example a flat public net next to a polars footprint in Refolk's index that grows between runs, the gap is most likely failure mode 6. That calls for interviews at the companies concerned, not a bigger multiplier on the public number.

## Frequently asked questions

### Can I use GitHub's 'Used by' count to tell whether a rival library is taking users?

No. 'Used by' is a stock, so it carries no direction. It also only appears once more than 100 repos depend on the package, it covers one package per repo, and there is no official API for it. It only counts public repositories. A scraper such as github-dependents-info can pull the list behind it, which is useful as a candidate seed, but switching only shows up when you diff manifests over time.

### What share of manifest-diff candidates turn out to be real library switches?

Nobody has published a clean rate at the commit level. The closest figure comes from PyMigBench: hand review of 1,244 migrations between frequently paired libraries found 75 with code changes, about 6.0%. That figure measures 'has code changes', not 'is a real swap', so don't borrow it as your precision. Measure your own with two reviewers on a sample from each direction.

### Why did PyPI download counts drop 20 to 40% in late August 2026?

It was a change in measurement, not in demand. From 2026-08-24 PyPI stopped logging metadata requests, and PyPI says comparisons across that date will not line up. For urllib3, total logged requests fell 39.8% between 2026-08-18 and 2026-08-25, while artifact downloads fell only 1.4%. Compare artifact-only series on both sides and leave out the transition day.

### Does this method see enterprise or private repositories?

No. GitHub does not report dependency information for private repositories, and code search only reads default branches. Anything still on a feature branch or inside a company is invisible. Report every switching count as a lower bound, and if the private side matters, interview practitioners at the companies where those teams sit. Don't extrapolate from public repos.

### Should I use deps.dev or GitHub code search to count switching?

Use both, and report them separately. deps.dev counts published packages that depend on a library, which is a package-level denominator. GitHub code search finds applications and scripts in public repos, which is a repo-level denominator. They measure different populations, so never add them together. Name which one each number belongs to.

### Why not just search commit messages for phrases like 'migrate to polars'?

Searching commit messages finds different commits from manifest diffs. That is the SALM approach, which mined 5,805 migrations in 5,061 commits from 121,381 client repos using commit messages that announce the change. It misses silent swaps and picks up commits that only talk about migrating. It is useful as a supplementary seed, especially for the reverse direction, but it doesn't replace the manifest walk.

---

*From the Refolk guide library. I revise these guides rather than replacing them, so the current version is always at https://www.refolk.ai/guides/library-switching-flow-teardown*
