diff --git a/Chatbots-Controle.xlsx b/Chatbots-Controle.xlsx new file mode 100644 index 0000000..2c94dd9 Binary files /dev/null and b/Chatbots-Controle.xlsx differ diff --git a/README.md b/README.md index db6a894..a5aa88b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,9 @@ -# aspin-pmo +## aspin-pmo ## -Projeto de automação do Escritório de Projetos Aspin \ No newline at end of file +**Por Adriano Baumart** +Projeto de automação do Escritório de Projetos Aspin. + + +### RELEASE NOTES ### +v1.0.0 +- Construção da estrutura de arquivos. \ No newline at end of file diff --git a/aspin-pmo.py b/aspin-pmo.py index 5fb2eec..97dc45f 100644 --- a/aspin-pmo.py +++ b/aspin-pmo.py @@ -1,7 +1,6 @@ ### PROJETOS ASPIN ####################### ### Por Adriano Baumart ### Versão: 1.0.0 Data: 26/09/2022 -### Desafio do Curso de Pyhton ########################################### menu = [ { @@ -18,7 +17,6 @@ menu = [ } ] - # Menu principal while True: print('='* 52) diff --git a/aspinbots.py b/aspinbots.py new file mode 100644 index 0000000..40303ca --- /dev/null +++ b/aspinbots.py @@ -0,0 +1,15 @@ +# Manipulando arquivos de Excell +import pandas as pd +from time import sleep +arquivo = 'Chatbots-Controle.xlsx' +aba = 'Em andamento' +header = 0 +file = pd.read_excel(arquivo, sheet_name=aba, header=header) + +#print(file['PROJETO']) +cod = int(input('Código do Projeto: ')) + +for c in range(0, len(file)): + #print(file['CLIENTE'][c]) + if file['PROJETO'][c] == cod: + print(f'Cliente: {file["CLIENTE"][c]}') diff --git a/email.py b/email.py new file mode 100644 index 0000000..db0b37c --- /dev/null +++ b/email.py @@ -0,0 +1,30 @@ +import smtplib +import email.message + +def enviar_email(): + corpo_email = """ +
Olá Mundo!
+Testes com Python
+ """ + + msg = email.message.Message() + msg['Subject'] = "Testes com Python" + msg['From'] = 'adriano.baumart@aspin.inf.br' + msg['To'] = "tcheweb@gmail.com; adriano@baumart.com.br" + password = 'As1453!@' + msg.add_header('Content-Type', 'text/html') + msg.set_payload(corpo_email) + + s = smtplib.SMTP('email-ssl.com.br: 587') + s.starttls() + # Login Credentials for sending the mail + s.login(msg['From'], password) + s.sendmail(msg['From'], [msg['To']], msg.as_string().encode('utf-8')) + print('Email enviado') + + +# In[ ]: + + +enviar_email() +