Esempio n. 1
0
File: filter.py Progetto: p/pubfiles
import pyratemp
import req, helpers
import sys

template = pyratemp.Template(filename=sys.argv[1])
print template(r=req.Req(), h=helpers.Helpers())
Esempio n. 2
0
 def widget(self, dlg):
     import helpers
     return helpers.Helpers(dlg)
Esempio n. 3
0
import helpers
#from helpers import Helpers()

helpers.Helpers()
print("Hello World")
Esempio n. 4
0
import filesystem
import config
import helpers
import mailing

fs = filesystem.Filesystem()
cfg = config.Config()
hlp = helpers.Helpers()
mail = mailing.Mailing()


def main():
    print_hello()


def print_hello():
    print('\n Nano Shopping List')
    print(' ------------------\n')


main()
Esempio n. 5
0
import helpers
import datetime
import pandas as pd
from sklearn import preprocessing
from sklearn.externals import joblib
from sklearn.pipeline import make_pipeline
from sklearn.preprocessing import StandardScaler
from sklearn.pipeline import make_pipeline, TransformerMixin
import sklearn.cross_validation as cv
from sklearn.linear_model import Lasso
from sklearn.linear_model import BayesianRidge
from sklearn.externals import joblib
from sklearn.svm import SVR

import bb_transformer   

# Load DF 
db_helper = helpers.Helpers()
db_helper.db_connect()
df = db_helper.load_into_panads()

df2 = df[["latitude", "longitude"]]
df2.to_json("output.json", orient="records")
Esempio n. 6
0
import os

from flask import Flask, render_template, redirect, url_for, request, jsonify, abort, send_from_directory

from peewee import Q
from flask_peewee.auth import Auth
from flask_peewee.db import Database
from flask_peewee.admin import Admin

from pdf import to_pdf, Pdf
from num_to_text import Traductor

app = Flask(__name__)
app.config.from_pyfile('config.py')

helpers.Helpers(app)
db = Database(app)
auth = Auth(app, db)
admin = Admin(app, auth)

import models
import forms


def menu(opcion):
    opciones = [
        ['/', 'Principal', ''],
        ['/importar', 'Importar', ''],
        ['/admin', 'Administrar', ''],
    ]
Esempio n. 7
0
 def __init__(self, bot):
     self.bot = bot
     self.errors = ErrorString()
     self.configs = Configs()
     self.helpers = helpers.Helpers()