Problem Statement: We are provided a list of farmer names and other relevant details in a csv file that needs to be translated into multiple languages for display in the application.
Framework and Database: FastAPI and SQLite (Default)
External APIs Used: Google Translate APIs Link
Keeping the default password as "temp@123" for users in csv and the phone number is used as the username for the model
Note: To get a idea about the project please go through the API Documentation.pdf file for better understanding.
mkdir WIAI
cd WIAI
(HTTPS)
git clone https://github.com/ankurRangi/wiai_farmer_app.git
(SSH)
git clone git@github.com:ankurRangi/wiai_farmer_app.git
python -m venv wai-env
(Windows)
wai-env\Scripts\activate.dat
(Linux)
source wai-env\scripts\activate
(wai-env) D:\WIAI> pip install -r requirements.tx
farmerdb.db
data.csv
translateKey.json
keys.py
uvicorn WIAI_Farmer.main:app --reload
http://127.0.0.1:8000/docs
test_data.csv
test_db.db
Press 'ctrl + c'
pytest
Note: To ignore the deprecation warning, use the command below,
(wai-env) D:\Work\WIAI>pytest -W ignore::DeprecationWarning