Ross ROSS = Recommend OSS · open-source software intelligence for agents

santinic/pampy

Pampy: The Pattern Matching for Python you always dreamed of. observed · 2026-08-28

github.com/santinic/pampy · Python · MIT (permissive) observed · 2026-08-28

Health v2 · maintenance only

23/100

  • Activity 1
  • Release rhythm 8
  • Longevity 100
How is this computed?

round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.

  • gap_med: n/a
  • age_days: 2855
  • days_rel: n/a
  • days_push: 594
  • n_releases_24m: 0

Full methodology

Adoption not part of the score

3523 stars · 123 forks observed · 2026-08-28

What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded

Pampy is a small (~150 line) Python library providing pattern matching, letting you match values against literals, types, tuples, lists, dicts, and wildcards with lambda handlers. It supports nested structures, HEAD/TAIL list matching, and REST arguments.

Use cases

  • add pattern matching to python code
  • match nested dicts and lists in python
  • write a lisp interpreter in python
  • replace if-else chains with pattern matching
  • destructure lists with head and tail in python

When to choose

  • you want readable, functional-style dispatch over data structures in Python 3
  • you need to match deeply nested lists, tuples, or dicts concisely

When to avoid

  • you're on Python 3.10+, which has native structural pattern matching (match/case)
  • you need maximum performance in hot code paths

Facets

library · maturity maintenance

parser developer-tools programming-languages developer-tools python cross-platform pattern-matching functional-programming structural-matching algorithms

2 sources

Member repositories

RepositoryRoleHealth v2
santinic/pampymain23

For agents

markdown · JSON · MCP: product_card(name="santinic/pampy")

Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem