Colleagues, good afternoon! Tell me, please, what libraries in Python can help in solving the problem? For example, I have a line that consists of 10 words. Let's call it the "perfect template." There is a table with tens of thousands of lines similar to an ideal pattern, but these lines still have a deviation from the ideal. The task is to calculate the percentage of matching each row of the array to the ideal pattern. Tell me where to look? I look for the decision in Python 3 if it is important.
I am looking for this solution for analyzing the database for clean and correct filling of this database data. That is, the analysis of strings for unnecessary characters, lack of values or incomplete filling of fields.