import pyratemp import req, helpers import sys template = pyratemp.Template(filename=sys.argv[1]) print template(r=req.Req(), h=helpers.Helpers())
def widget(self, dlg): import helpers return helpers.Helpers(dlg)
import helpers #from helpers import Helpers() helpers.Helpers() print("Hello World")
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()
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")
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', ''], ]
def __init__(self, bot): self.bot = bot self.errors = ErrorString() self.configs = Configs() self.helpers = helpers.Helpers()