Example #1
0
File: filter.py Project: p/pubfiles
import pyratemp
import req, helpers
import sys

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

helpers.Helpers()
print("Hello World")
Example #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()
Example #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")
Example #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', ''],
    ]
Example #7
0
 def __init__(self, bot):
     self.bot = bot
     self.errors = ErrorString()
     self.configs = Configs()
     self.helpers = helpers.Helpers()