Example #1
0
#!-*- coding:utf-8 -*-
from bin.main import *
from API import app
from multiprocessing import Process

main = main()
main.run()
Example #2
0
def main():
  clear()
  v = "1.0.3"
  print(f'''{G}
\n
.----.______
|           |
|    ___________
|   /          /
|  /          /
| /          /
|/__________/ {v}
{C}
 ''')
  print(f"{Y}Atual: {version}{C}")

  print("\n" + code_info + "Menu.")

  print(f'''
{C}[{G}i{C}] Formas de operação:

[{G}1{C}] IP.
[{G}2{C}] Nome.
[{G}3{C}] CPF.
[{G}4{C}] Vizinhos.
[{G}5{C}] CEP.
[{G}6{C}] CNPJ.
[{G}7{C}] Placa.
[{G}8{C}] Telefone.
[{G}9{C}] BIN.
[{G}10{C}] Gerador.
[{G}11{C}] YouTube.

[{G}44{C}] Atualizar.
[{G}55{C}] Novidades.
[{G}66{C}] Ajuda.
[{G}00{C}] {R}Sair.{C}
''')
  tool=input(f'{C}[{G}+{C}] Selecione a forma de operação:{B} ')
  if tool == "1":
     clear()
     import ip
     ip.main()
  elif tool == "2":
     clear()
     import nome
     nome.main()
  elif tool == "3":
     clear()
     import cpf
     cpf.main()
  elif tool == "4":
     clear()
     import vizinhos
     vizinhos.main()
  elif tool == "5":
     clear()
     import cep
     cep.main()
  elif tool == "6":
     clear()
     import cnpj
     cnpj.main()
  elif tool == "7":
     clear()
     import placa
     placa.main()
  elif tool == "8":
     clear()
     import telefone
     telefone.main()
  elif tool == "9":
     import bin
     bin.main()
  elif tool == "10":
     import gerador
     gerador.main()
  elif tool == "11":
     youtube()
     main()
  elif tool == "44":
         print(code_result + "Abrindo o tutorial de como atualizar no YouTube...")
         time.sleep(2)
         youtube()
         main()

  elif tool == "55":
     import novidades
     novidades.main()
  elif tool == "66":
     import ajuda
     ajuda.main()
  elif tool == "00":
     clear()
     print(f'\n{G}Ola.{C}\n')
     exit()
  else:
     clear()
     print(f'{C}[{R}-{C}] Seleção inválida.')
     time.sleep(0.2)
     main()
import os

from paste.deploy import loadapp
from waitress import serve
import bin

if __name__ == "__main__":
    port = int(os.environ.get('PORT', '8080'))
    host = '0.0.0.0'

    settings = {}
    settings['sqlalchemy.url'] = os.environ['DATABASE_URL']
    settings['pyramid.includes'] = ['pyramid_tm']

    serve(bin.main({}, **settings), host=host, port=port)