--- id: pfzy version: "0.3.4" license: MIT license_treatment: permissive maintenance: abandoned --- # pfzy — Python port of the fzy fuzzy string matching algorithm License: permissive · Maintenance: abandoned · Downloads: 16.6M/mo ## What it is and what it does pfzy is a Python port of the fzy fuzzy string matching algorithm, designed to find and score string matches while also returning the indices of matched characters. Unlike some other fuzzy matching libraries, it provides both a match score and the positions where characters matched, which is essential for applications like fuzzy finders that need to highlight matching characters in results. The package offers three main components: an async fuzzy match function for matching a query against a list of candidates, a fzy scorer for fuzzy string matching, and a substring scorer for exact substring matching. It has no runtime dependencies and supports Python 3.7 and later. The implementation is based on the original fzy algorithm and has been extracted from terminal fuzzy finder projects like sweep.py and vim-clap. Use it for: - Build a fuzzy finder CLI tool that highlights matched characters in search results - Implement autocomplete or search filtering in a terminal application - Score and rank candidates in a list based on fuzzy query matching - Integrate fuzzy matching into an editor or IDE plugin - Filter file or command lists with user-friendly approximate matching ## Worth the install? AI-flagged interpretation of the facts above — verify before relying. Provides fuzzy string matching with match indices using the fzy algorithm, including async matching and substring scoring. Yes, if you need fuzzy matching with character indices for a fuzzy finder or search interface. The zero-dependency install and permissive MIT license make it low-risk. However, the package is abandoned and has not been updated since January 2022, so consider it only for stable, self-contained use cases where you won't need ongoing maintenance or compatibility updates. ## Install pip install pfzy uv add pfzy poetry add pfzy ## Installing pfzy Before you install: Installation is straightforward with no runtime dependencies. However, the package has been abandoned since January 2022 (1659 days without release), so it will not receive bug fixes or maintenance updates. License in practice: MIT license permits free use, modification, and distribution with minimal restrictions, making it suitable for both open-source and commercial projects. Quickstart: pip install pfzy import asyncio from pfzy import fuzzy_match result = asyncio.run(fuzzy_match("ab", ["acb", "acbabc"])) print(result) Requires Python >= 3.7; async/await syntax required to use the fuzzy_match function. Verify before relying: - Whether the fzy algorithm implementation remains competitive with newer fuzzy matching approaches - Whether async functionality provides meaningful performance gains for typical use cases - Compatibility with Python versions beyond 3.10 despite the stated support ceiling ## Package facts - License: MIT (permissive) - Python support: supports_current - Install friction: low - Maintenance: abandoned - Downloads: 16.6M/month (top 5,000 on PyPI) - Known vulnerabilities: none known ## Tags fuzzy string matching, fzy algorithm python, fuzzy search with indices, async fuzzy matcher, fuzzy finder library, substring matching scorer, fuzzy string scoring, fuzzy-matching, search-algorithm, abandoned [View on SkillFed](https://skillfed.io/packages/pfzy) · [View on PyPI](https://pypi.org/project/pfzy/)