.py
6 claimants
6 primary
0 secondary
shared primary (6)
SWH popularity
From the SWH-MSR-ARV dataset (Desmazières, Di Cosmo, Lorentz, MSR 2025; file nb_extensions_alphanum.csv) — one row per (ext, year) in the full SWH archive. Case-aggregated. citation.
455.0M
total occurrences
143.4M
since 2019 (31.5%)
1970–2023
years active
Case variants in archive: .py (454.9M), .PY (18.4K), .Py (2.8K), .pY (24) — aggregated above.
Attribution status
This extension is attributed to bazel; py; Python; Python; Python (programming language); Sage; Starlark as primary by 7 authoritative claims.
Claimants (8)
Languages that list
.py among their extensions. Strength reflects whether the upstream source treated it as their primary extension.| Language | Source | Strength |
|---|---|---|
| bazel | pygments | primary |
| py | pygments | primary |
| Python | linguist | primary |
| Python | pygments | primary |
| Python (programming language) | pygments | primary |
| Sage | pygments | primary |
| Starlark | pygments | primary |
| Python | wikidata | deprecated |
Wikidata says… (1)
File formats, image formats, audio codecs and other non-PL
entities that claim
.py on Wikidata
(property P1195) or in the Wikipedia infobox.
Source: data/derived/external_extension_index.csv.
Click Use as new PL on any row to open the
Add-PL form pre-filled with that entry's name, Wikipedia/Wikidata
URL, and this extension — one submission creates the PL + claim.
| Format | Class (Wikidata P31) | Suggested label | MIME | Notes | Action |
|---|---|---|---|---|---|
| Python script Q15955723 file format that contain python code | file format | — | application/x-httpd-python; text/x-python; text/x-script.python | — | Use as new PL ↗ |
SWH-mined examples (0)
No archived examples for .py in our local mirror yet.