Pampy - Pattern Matching for Python

JSON →
library 0.3.0 ·python maintenance
verified Jun 7, 2026

Pampy is a library for pattern matching in Python, inspired by Haskell and OCaml. It provides concise syntax for matching patterns against data structures, including lists, dictionaries, and custom objects. The current stable version is 0.3.0, released in 2019. The library is in maintenance mode with low release cadence.