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.
To set up the environment variables, create a .env
file in the root directory of your project with the following content:
# .env
AZURE_ENDPOINT=""
AZURE_API_KEY=""
Install the dependencies:
pip install -r requirements.txt
Structure of input csv file:
name;email
Recognizable characters in the drink list: K
, P
.
- 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 matched 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 CSV s platbami
. - In the terminal check the output if there where any unrecognized names or characters.
- If everything is ok, click
Poslat emaily s QR kódy.
.