Fuzzy text match app that finds similar strings in csv file and get matching percentage.
The app contains two simple web views one contains a form with a dropdown that lists all the available lookup keys and a search button. Once you select a key and press enter you will be redirected to a second view which displays a table containing the key and all similar values to its value with the matching percentage for each one.
- Python >= 3.8
- Django >= 3.2
- Key lookup in a csv file using Pandas.
- Text matching rate using fuzzywuzzy.
- Code documentation using Sphinx.
- Request rate limiting 5/min.
- 100% Test coverage.
- The app is dockerized.
- Clone the project.
git clone https://github.com/mustafa-kamel/pytextmatch.git
- Change the active directory to the project directory.
cd pytextmatch
- Create a virtual environment.
python3 -m venv venv
- Activate the virtual environment.
source venv/bin/activate
- Install the app requirements by running.
pip install -r requirements.txt
- Run the migrations.
./manage.py migrate
- Run the local server.
./manage.py runserver
- Now visit the http://localhost:8000 to view the app.
The project contains test coverage for all urls and views that covers all possible scenarios.
To test the app is working properly run the following command:
./manage.py test
This software is licensed under the MIT License
. See the LICENSE
file in the top distribution directory for the full license text.