{"categories":[{"label":"Software Development","url":"https://skillfed.io/packages/category/software-development/17"}],"enrichment":{"capability":"Pampy provides pattern matching for Python, letting you write match expressions that destructure and dispatch on values, types, and nested structures without nested if-else chains.","skillfed_tags":["pattern-matching","functional-programming","control-flow"],"use_cases":["Simplify recursive algorithms like Fibonacci or tree traversal by matching on input structure instead of writing nested conditionals.","Parse and evaluate Lisp-like expressions or simple DSLs by matching on callable, tuple, and type patterns.","Destructure nested dicts and lists to extract values without repeated indexing or get() calls.","Dispatch on class hierarchies (e.g., different Pet subclasses) without isinstance chains.","Validate and extract fields from dataclasses or typed tuples in a single match expression."],"what_it_does":"Pampy is a lightweight pattern-matching library that lets you write declarative match expressions instead of nested conditionals. It supports matching literals, types, tuples, lists, dicts, dataclasses, and typing annotations, with the special operator `_` capturing values to pass into handler functions. Patterns are evaluated in order, and you can nest structures arbitrarily\u2014matching a tuple of integers, a dict with specific keys, or a dataclass field all work the same way.\n\nThe library is pure Python with no dependencies, making it trivial to install and use. It's useful for simplifying control flow in recursive algorithms, AST walkers, or any code that needs to branch on the shape of data. However, since the last release was in 2019 and the repository shows no active maintenance, you should verify compatibility with your target Python version before adopting it in new projects.","worth_installing":"Yes, if you need pattern matching and are comfortable with a dormant library. The package is tiny, has no dependencies, carries no known vulnerabilities, and works well for the specific task it solves. Install it for algorithmic code, DSL parsing, or data destructuring where it genuinely improves readability. Avoid it if you require active maintenance or have not tested it with your target Python version."},"id":"pampy","links":{"html":"https://skillfed.io/packages/pampy","md":"https://skillfed.io/packages/pampy.md","pypi":"https://pypi.org/project/pampy/"},"maintenance":{"status":"dormant"},"meta":{"latest_release":"2019-11-07","license_spdx":null,"license_treatment":"permissive","name":"pampy","python_support":"supports_current","summary":"The Pattern Matching for Python you always dreamed of"},"popularity":{"monthly_downloads":85253,"position":13937,"tier":"top_15000"},"security":{"n_vulnerabilities":0},"version":"0.3.0"}
