thefuzz VS fzf

Compare thefuzz vs fzf and see what are their differences.

thefuzz

Fuzzy String Matching in Python (by seatgeek)

fzf

:cherry_blossom: A command-line fuzzy finder (by junegunn)
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
thefuzz fzf
10 407
2,479 59,920
3.5% -
6.2 9.6
2 months ago 5 days ago
Python Go
MIT License MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

thefuzz

Posts with mentions or reviews of thefuzz. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-01-11.
  • File Path Issue
    1 project | /r/learnpython | 17 Jun 2023
    probbaly can use https://github.com/seatgeek/thefuzz
  • [Flask] Best / Modern approaches for fuzzy name searching?
    2 projects | /r/learnpython | 11 Jan 2023
    Check out https://github.com/seatgeek/thefuzz. It basically provides different methods that take two strings and return a score between 0 and 100 indicating how similar they are. For instance,
  • How to identify duplicate crawl data?
    1 project | /r/webscraping | 21 Nov 2022
    Consider something like Levenshtein distance and one of it's implementations like thefuzz.
  • Find best match between a reference string and a list of strings
    1 project | /r/pythontips | 13 Nov 2022
  • NLP: How to rebuild a name from letters
    1 project | /r/computerscience | 12 Oct 2022
    The problem you are solving is most commonly called “fuzzy string matching”. There are a bunch of algorithms for it (some of which are described in this thread) depending on your specific requirements. I’d start with an existing fuzzy string matching library (e.g. thefuzz, for python) and calculate matches between your input letter cases and your list of names. This sounds pretty reasonable to do fast since fuzzy string matching is commonly used in text editors to make it easier to find files. If you start with a fuzzy string matching library, I wouldn’t worry about asymptomatic complexity until you actually see a performance problem.
  • Is there a Python library that lets me search through a list like searching with a search engine?
    1 project | /r/learnprogramming | 31 Aug 2022
    You probably want a package that can do fuzzy matching. The first search result for me turned up this: https://github.com/seatgeek/thefuzz
  • How good is my summary?
    2 projects | /r/LanguageTechnology | 13 May 2022
    Having said that, you can use the Levenshtein distance to compute how many "edits" (substitutions, deletions, insertions) the generated summary is away from the original abstract. The package TheFuzz implements this concept in Python. For example fuzz.ratio(text1, text2) will give you a similarity score.
  • import fuzzywuzzy
    3 projects | /r/ProgrammerHumor | 22 Feb 2022
    fuzzywuzzy is actually just called the thefuzz now.
  • Bad word filter?
    1 project | /r/learnpython | 20 Dec 2021
    It sounds like what you're looking for is "fuzzy string matching," which is not just checking if a string matches another exactly, but defining a way to measure "how close" a string is to another. Luckily, it looks like there's a good Python library for that already: https://github.com/seatgeek/thefuzz
  • Extracting information from scanned PDF docs, is it possible?
    2 projects | /r/learnpython | 6 Oct 2021
    Finally, even though Tesseract's output is usually very nice, it can sometime make a mistake. Again, this is case-specific, and if you're extracting for example numbers, it will be very hard to check for errors, but since I'm extracting names, I'm capable of fuzzy comparing the names detected by Slavic NER to a database of names that I have. I do this fuzzy matching with thefuzz library, and in cases I find a very high match with one of the names in my database, I simply fix the error by taking the name from there.

fzf

Posts with mentions or reviews of fzf. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-25.
  • Ask HN: Any tool for managing large and variable command lines?
    8 projects | news.ycombinator.com | 25 Apr 2024
    In addition, I think bash's `operate-and-get-next` can be very helpful. When you go back through your shell history, you can hit Ctrl+o instead of enter and it will execute the command then put the next one in your history on the command line, and keep track of where you are in your history. This way, you can rerun a bunch of commands by going to the first one and Ctrl+o till you are done. And you can edit those commands and hit Ctrl+o and still go to the next previously run command.

    Note: fzf's history search feature breaks this. https://github.com/junegunn/fzf/issues/2399

  • pyfzf : Python Fuzzy Finder
    2 projects | dev.to | 10 Mar 2024
    fzf : https://github.com/junegunn/fzf
  • Command Line Fuzzy Search
    1 project | news.ycombinator.com | 15 Feb 2024
  • So You Think You Know Git – Git Tips and Tricks by Scott Chacon
    6 projects | news.ycombinator.com | 13 Feb 2024
    Those are the most used aliases in my gitconfig.

    "git fza" shows a list of modified/new files in an fzf window, and you can select each file with tab plus arrow keys. When you hit enter, those files are fed into "git add". Needs fzf: https://github.com/junegunn/fzf

    "git gone" removes local branches that don't exist on the remote.

    "git root" prints out the root of the repo. You can alias it to "cd $(git root)", and zip back to the repo root from a deep directory structure. This one is less useful now for me since I started using zoxide to jump around. https://github.com/ajeetdsouza/zoxide

  • Which command did you run 1731 days ago?
    9 projects | news.ycombinator.com | 21 Jan 2024
    > my history is so noisy I had to find another way

    The fzf search syntax can help, if you become familiar with it. It is also supported in atuin [2].

    [1]: https://github.com/junegunn/fzf#search-syntax

    [2]: https://docs.atuin.sh/configuration/config/#fuzzy-search-syn...

  • Z – Jump Around
    16 projects | news.ycombinator.com | 15 Jan 2024
    You call it with `n` and get an interactive fuzzy search for your directories. If you do `n ` instead, it’ll start the find with `` already filled in (and if there’s only one match, jump to it directly). The `ls` is optional but I find that I like having the contents visible as soon as I change a directory.

    I’m also including iCloud Drive but excluding the Library directory as that is too noisy. I have a separate `nl` function which searches just inside `~/Library` for when I need it, as well as other specialised `n` functions that search inside specific places that I need a lot.

    ¹ https://github.com/sharkdp/fd

    ² https://github.com/junegunn/fzf

  • alacritty-themes not working any more!!!
    6 projects | dev.to | 7 Jan 2024
    View on GitHub
  • Fish shell 3.7.0: last release branch before the full Rust rewrite
    9 projects | news.ycombinator.com | 1 Jan 2024
    I do find the history pager stuff interesting, but ultimately not of tremendous use for me. I rebound all my history search stuff to use fzf[1] (via a fish plugin for such[2]), and so haven't been aware of the issues

    [1] https://github.com/junegunn/fzf

    [2] https://github.com/PatrickF1/fzf.fish

  • Ugrep – a more powerful, ultra fast, user-friendly, compatible grep
    27 projects | news.ycombinator.com | 30 Dec 2023
    You can also use fzf with ripgrep to great effect:

    [1]: https://github.com/junegunn/fzf/blob/master/ADVANCED.md#usin...

  • Tell HN: My Favorite Tools
    14 projects | news.ycombinator.com | 24 Dec 2023

What are some alternatives?

When comparing thefuzz and fzf you can also consider the following projects:

fuzzywuzzy - Fuzzy String Matching in Python

peco - Simplistic interactive filtering tool

RapidFuzz - Rapid fuzzy string matching in Python using various string metrics

zsh-autocomplete - 🤖 Real-time type-ahead completion for Zsh. Asynchronous find-as-you-type autocompletion.

Slavic-BERT-NER - Shared BERT model for 4 languages of Bulgarian, Czech, Polish and Russian. Slavic NER model.

z - z - jump around

xonsh - :shell: Python-powered, cross-platform, Unix-gazing shell.

zsh-autosuggestions - Fish-like autosuggestions for zsh

google-research - Google Research

mcfly - Fly through your shell history. Great Scott!

ranger - A VIM-inspired filemanager for the console

starship - ☄🌌️ The minimal, blazing-fast, and infinitely customizable prompt for any shell!