Fuzzy File Searching Tool in Python

preview_player
Показать описание
Today we build a fuzzy file searching tool in Python.

◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾◾
📚 Programming Books & Merch 📚

🌐 Social Media & Contact 🌐

Рекомендации по теме
Комментарии
Автор

I'd really like to see an implementation of fuzzy finding without external libs cuz I think it isn't that hard

thepaulcraft
Автор

Thank you for video! Succinct but very good introduction to helpful libraries available! I am new to Python. :)

erikdesk
Автор

I have a few critique points:
When you say „if name.endswith(tuple(ft for ft in file_types))“ you could have made the tuple earlier! And it would have been enough to just say „file_types = tuple(file_types.split(“ “))“. No need to have a generator expression turned into a tuple for every name in names (since your file_types stay the same throughout..). Second: The same line you say „or file_types[0] == ‘‘ “ you could rewrite the whole line as „if name.endswith(file_type) or not file_types[0]:“. Empty strings are false by nature!

lilDaveist
Автор

I do this by using the powershell script in my powershell profile:

function findfile($name) {
get-childitem -recurse -filter "*${name}*" -ErrorAction SilentlyContinue | foreach-object {

}
}

sxoxgxi
Автор

i've developed my own in the past using levenshtein (spelling?) algorithm to measure the distance btw what the user typed in and the list of items u want to compare against. but displaying the resulting suggestion with over 1000 items in real-time was very slow either using tkinter or pyqt5 listwidgets, bcs you calculate the distance for each item everytime a user type in a character

CuriosityCircuit
Автор

hey, can you post all your code that you write in github??

DaManCave
Автор

I did a basic version of this to find where tf my songs where lol

koi
Автор

Things we engineers do over menial things.

wadia