def redirect(location='/', link=True, code=307): return App().redirect(location=location, link=link, code=code)
from pytonik.Log import Log from pytonik.App import App from pytonik.Functions.validation import validation import os, random, string log_msg = Log() Ap = App() class rand(validation): def __getattr__(self, item): return item def __init__(self, *args, **kwargs): if len(args) > 0 or len(kwargs) > 0: if all(args) != False: self.pt = self.number(*args, **kwargs) else: self.pt = self.number(**kwargs) return None def __str__(self): return self.pt def number(self, size=6, list=1): num = { 1: 10, 2: 120,
def __open_tem(self): from pytonik.App import App App.header()
def __init__(self): ap = App() self.db = ap.DB()
def __open_tem(self, datastring=""): from pytonik.App import App return App().header()
def __init__(self): ap = App() self.db = ap.DB( ) #this is database configuration from module App.py, but it is ignored by Schema.py