Application for generating Adaptive Cards Json to people who owe you a drink. The application uses Azure Text Analytics to analyze the text of the email and determine if the person write a character in the drink list. If the person writes a character in the drink list, the application creates Adaptive Cards Json that can be used to send emails to the person with the list of people who owe him a drink.
- Clone the repository
- Create a virtual environment and activate it
python -m venv venv
venv\Scripts\activate
pip install -r requirements.txt
- Create an Azure account and create a Computer Vision resource. You can find the instructions here.
- Create a
.env
file in the root directory of your project with the following content:# .env AZURE_ENDPOINT="" AZURE_API_KEY=""
Run the application with the command python app.py
.
The application will open a GUI where you can select the file with the list of people who owe you a drink and the file with the drink list. The application will then generate a JSON file with the payments for each person who owes you a drink.
- Create a list of people who owe you a drink in the
people.csv
file. - Run the application with the command
python app.py
. - Click button
Prozkoumat
and select the filepeople.csv
. - Then click button
Vygenerovat PDF
. - For now you can close the application.
- Fill out the drink list and scan the document and save it as
drink_list.pdf
. - Run the application with the command
python app.py
. - Do the same as in step 3 to load the user list so the program can match the names.
- Fill out the prices for the drinks and the bank account number in format
4567890/1234
. - Click
Uložit ceny a účet
. - Click 'Vybrat sken papíru' and select the
drink_list.pdf
file. - Click
Vygenerovat JSON s platbami
. - In the terminal check the output if there where any unrecognized names or characters.
-
Structure of input csv file:
name;email
-
Recognizable characters in the drink list:
K
,k
,P
,p
.