What is proso?
Give proso a string, and it will tell you the meter. Give proso a string and a metrical pattern, and it will tell you how far that string's meter deviates from the metrical pattern.
Proso can be used as a command-line tool, but it's probably more useful imported as a library.