# gvanrossum/patma

Pattern Matching

Repository: https://github.com/gvanrossum/patma
Canonical: https://ross.abutalabs.com/products/patma
Language: Python
License Family: other
Archived: true
Last push: 2022-06-02T17:17:28+00:00

## Health v2 (maintenance only)
Score: 10/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 0, release rhythm 35, longevity 100
- inputs: {"age_days": 2341, "days_push": 1553, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, archived, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1042, forks 65 (observed 2026-08-28T04:03:20.852693+00:00)

## What it is
The historical repository for the development of Python's structural pattern matching proposal (PEP 622/634), containing examples, a tutorial, and issue tracking. The proposal was accepted into Python 3.10, so this repo now serves as reference material.

## Use cases
- learn how python match statement works
- understand structural pattern matching pep 634
- find examples of python match case syntax
- study how pattern matching was designed for python
- tutorial on python switch statement equivalent

## When to choose
- you want to learn or teach Python's match/case syntax
- you need historical context on the PEP design process
- you want example code for pattern matching

## When to avoid
- you need a pattern matching library for older Python versions
- you want an actively maintained tool
- you need a production dependency - this is documentation, not a package

## Facets
- artifact type: learning-resource
- maturity: maintenance
- function: parser, programming-language
- domain: programming-languages, parsers, tutorials
- platform: python
- tags: pep-622, pep-634, structural-pattern-matching, match-statement, python-language-design

## Member repositories
- gvanrossum/patma (main) score 10

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:20.852693+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:02:39.861038+00:00, confidence not recorded.
  - readme: https://github.com/gvanrossum/patma (fetched 2026-08-28T04:03:20.852693+00:00, sha 9fcd200d6d31)
- Data as of 2026-08-30T08:39:29.467469+00:00.
