Пример #1
0
#
from core.utils import utils  #
from core.trape import Trape  #
try:  #
    import flask  #
    import flask_socketio  #
except:  ############################################
    utils.Go(
        "\t\nPlease install requirements.txt libraries, you can do it executing:"
    )  #
    utils.Go("\t\npip install -r requirements.txt"
             )  #####################################
######################################################

# We generalize the main class of <trape>
trackPeople = Trape()

# check OS
trackPeople.loadCheck()

# Request root home to run <trape> with all permissions
trackPeople.rootConnection()

# Call the creation of the database when you open this file.
trackPeople.runDatabase()

if __name__ == "__main__":
    try:
        # General expression this is expressed after the root
        trackPeople.main()
    except Exception as error:
Пример #2
0
#########
# trape #
#########
#
# trape depends of this file
# For full copyright information this visit: https://github.com/boxug/trape
#
# Copyright 2017 by boxug / <*****@*****.**>
#**
import urllib2
from flask import Flask, render_template, session, request, json
from core.trape import Trape
from core.db import Database

# Main parts, to generate relationships among others
trape = Trape()
app = Flask(__name__, template_folder='../templates', static_folder='../static')

# call database
db = Database()

# preview header tool in console
trape.header()

@app.route("/" + trape.stats_path)
def index():
    return render_template("/login.html")

@app.route("/logout")
def logout():
    return render_template("/login.html")
Пример #3
0
#########
# trape #
#########
#
# trape depends of this file
# For full copyright information this visit: https://github.com/boxug/trape
#
# Copyright 2017 by boxug / <*****@*****.**>
#**
import urllib2
from flask import Flask, render_template, session, request, json
from core.trape import Trape
from core.db import Database

# Main parts, to generate relationships among others
trape = Trape()
app = Flask(__name__,
            template_folder='../templates',
            static_folder='../static')

# call database
db = Database()

# preview header tool in console
trape.header()


@app.route("/" + trape.stats_path)
def index():
    return render_template("/login.html")
Пример #4
0
from flask import Flask
from core.trape import Trape
from core.db import Database

trape = Trape()
db = Database()
app = Flask(__name__,
            template_folder='../templates',
            static_folder='../static')
Пример #5
0
                                              #
from core.utils import utils                  #
from core.trape import Trape                  #
from core.db import Database                  #
from time import sleep                        #                  
try:                                          #
    import flask                              #
    import flask_socketio                     #
    import os                                 #
except:                                       ############################################
    utils.Go("\t\nPlease install requirements.txt libraries, you can do it executing:")  #
    utils.Go("\t\npip install -r requirements.txt")  #####################################
######################################################

# We generalize the main class of <trape>
trackPeople = Trape()

# call class database
generateData = Database()
if generateData.firstTime:
    utils.Go("\033[H\033[J")        
    utils.Go(utils.Color['whiteBold'] + "  @@@@@@@@@@@@@@@@@@@@@@  ")     
    utils.Go(utils.Color['whiteBold'] + " @@@@@@@@@@@@@@@@@@@@@@@@ ")                                            
    utils.Go(utils.Color['whiteBold'] + " @@@@@   @@@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@   @@@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@       @@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@       @@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@    @@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@    @@@@@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@       @@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@@@@@@@@@@@@@@@@@@@@ ")
Пример #6
0
from core.db import Database  #
from time import sleep  #
try:  #
    import flask  #
    import flask_socketio  #
    import os  #
except:  ############################################
    utils.Go(
        "\t\nPlease install requirements.txt libraries, you can do it executing:"
    )  #
    utils.Go("\t\npip install -r requirements.txt"
             )  #####################################
######################################################

# We generalize the main class of <trape>
trackPeople = Trape()

# call class database
generateData = Database()
if generateData.firstTime:
    utils.Go("\033[H\033[J")
    utils.Go(utils.Color['whiteBold'] + "  @@@@@@@@@@@@@@@@@@@@@@  ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@@@@@@@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@   @@@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@   @@@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@       @@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@       @@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@    @@@@@@@@@@@@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@    @@@@@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@       @@     @@@@@ ")
    utils.Go(utils.Color['whiteBold'] + " @@@@@@@@@@@@@@@@@@@@@@@@ ")