iniciando
This commit is contained in:
38
app.py
Normal file
38
app.py
Normal file
@@ -0,0 +1,38 @@
|
||||
import carregar
|
||||
import processar
|
||||
|
||||
def mostrar_menu():
|
||||
print("Menu:")
|
||||
print("1 - Carregar arquivo")
|
||||
print("3 - Deletar csv gerando no menu 1")
|
||||
|
||||
print("11 - Estacao mais proxima")
|
||||
print("20 - completar valores com -1")
|
||||
print("0 - Sair")
|
||||
|
||||
def main():
|
||||
while True:
|
||||
mostrar_menu()
|
||||
|
||||
opcao = input("Escolha uma opção: ")
|
||||
|
||||
if opcao == "1":
|
||||
carregar.carregar_arquivo()
|
||||
|
||||
elif opcao == "3":
|
||||
carregar.deletar_arquivo_gerado()
|
||||
|
||||
elif opcao == "11":
|
||||
carregar.carregar_arquivoxls_mais_proxima()
|
||||
|
||||
elif opcao == "20":
|
||||
processar.processar_arquivos()
|
||||
|
||||
elif opcao == "0":
|
||||
print("Saindo...")
|
||||
break
|
||||
else:
|
||||
print("Opção inválida, tente novamente.")
|
||||
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
Reference in New Issue
Block a user