pickfit

BrowseDeveloper CLIs

Matchify

Converts eligible Python if/elif/else chains into match statements.

Tested on Linux

Use it

Linux x86_64

  1. install matchify via uv tool

    uv tool install matchify

Check that it works

matchify --help

The output should contain “Convert if/elif/else chains to Python 3.10+ match statements”.

First thing to try

mkdir -p proj && cat > example_simple.py <<'PY'
x = 2
if x == 1:
    print("one")
elif x == 2:
    print("two")
else:
    print("other")
PY
cat > example_format.py <<'PY'
# leading comment preserved?
x = 1  # inline comment
if x == 1:  # branch comment
    print("one")  # action comment
elif x == 2:
    print("two")
else:
    print("other")  # else comment
PY
cat > example_safe.py <<'PY'
x = 1
y = 2
if x == 1:
    print("x is one")
elif y == 2:
    print("y is two")
else:
    print("other")
PY
cat proj/a.py <<'PY'
x = 1
if x == 1:
    print("one")
elif x == 2:
    print("two")
else:
    print("other")
PY
cat proj/b.py <<'PY'
y = "a"
if y == "a":
    print("a")
elif y == "b":
    print("b")
else:
    print("other")
PY
ls -R
cat > proj/a.py <<'PY'
x = 1
if x == 1:
    print("one")
elif x == 2:
    print("two")
else:
    print("other")
PY
cat > proj/b.py <<'PY'
y = "a"
if y == "a":
    print("a")
elif y == "b":
    print("b")
else:
    print("other")
PY
ls -R && cat example_simple.py && cat example_safe.py
matchify example_simple.py --check

Run matchify <file> --check to preview the changes for a Python file as a diff.

What it does

  • Convert if/elif/else chains to match statements
    How to use it
    1. Run matchify <file> --check to preview the conversion as a diff.
    2. Look for the +match lines to see the new match statement.
    Tested
  • Keep comments and formatting when converting
    How to use it
    1. Run matchify <file> --check on a file with comments.
    2. Check the diff to see that your comments are kept.
    Tested
  • Process large codebases in parallel
    Not shown working
  • Convert only when behavior stays the same
    Not tested

How far pickfit got

Linux x86_64

  1. Installs
  2. Starts
  3. 2 of 4 features work
  4. Works offline

Good for

  • convert if elif else chains to match statements
  • preview conversions as diffs without writing

How pickfit tested it

Each run starts from a clean machine and follows the steps above. How pickfit verifies

Linux x86_64

Its main function works

  • Replayed from scratch
  • Works offline
  • Checked on 1 Nov 2026
  • Version 0.3.0

Differences the test machine hit

  • README: --check only reports them as diffs
    In the test: --check exits 1 when conversions are available (per README), so exit 1 is success for conversion checks

How to read a tool card

Stitching
pickfit installed this tool itself. Everything under the stitches comes from that run. A tool pickfit has not run never gets stitches.
Verified on your OS
The install steps ran on the system you chose. “Ran on Linux only” means it has not been run on yours yet.
macOS, Linux and WindowsWhere it ran
Green OS marks: pickfit ran the install steps there. Grey ones: the README says it runs there, and pickfit has not tried.
How far the run got
Installs and starts, its main function works, its service answers, it produces model output. A window means a desktop app opened; a plug, an MCP client used it. The mark sits beside the run’s result, under “Why it fits and how we know” and in “How pickfit tested it”.
Visual check
pickfit looked at screenshots of the app. Green: it looks right. Amber with a number: things that look wrong; open it to see them. Grey and dashed: not checked yet.
Known vulnerabilities
Known high or critical vulnerabilities (OSV.dev) in what it installs. Green: none known. Red with a number: how many; open it for the list, and read it before you install. Grey and dashed: not checked, which does not mean safe.
About the run
The day it ran, and the version that ran.
Source of a reason
Every reason a pick fits rests on one profile field. Open the reason to see the field and the value it relies on.
Hidden gem
High quality, little known.
Quality and popularity
Two scores out of 100. Quality: how well it installed and worked when pickfit tried it, and how good its install docs and upkeep are. Popularity: from stars, downloads and Hacker News.
Features checked
Of the main features the README advertises, how many the run actually exercised (green), and how many failed (red). Grey ones were not checked, and the card says why.
Not verified
A well-known tool Fitz mentions from general knowledge. No run record, no steps, no score.