PaferaPy Async 0.1
ASGI framework focused on simplicity and efficiency
Loading...
Searching...
No Matches
Namespaces | Functions | Variables
types.py File Reference

Go to the source code of this file.

Namespaces

namespace  pafera
 
namespace  pafera.types
 

Functions

def pafera.types.ArrayV (d, k, default=[])
 Utility function to get an array from a dict or object given its name. More...
 
def pafera.types.DictV (d, k, default={})
 Utility function to get a dict from a dict or object given its name. More...
 
def pafera.types.FloatV (d, k, min=None, max=None, default=0.0)
 Utility function to get a float from a dict or object given its name. More...
 
def pafera.types.IntV (d, k, min=None, max=None, default=0)
 Utility function to get an int from a dict or object given its name. More...
 
def pafera.types.Print (v, *args)
 Print a unicode string with arguments. More...
 
def pafera.types.PrintB (v, *args)
 Print a byte string with arguments. More...
 
def pafera.types.PrintBL (v, localdict=None)
 Print a byte string formatted with local variables. More...
 
def pafera.types.Printf (v, *args)
 Returns a formatted unicode string. More...
 
def pafera.types.PrintL (v, localdict=None)
 Print a string formatted with local variables. More...
 
def pafera.types.PrintLf (s, localdict=None)
 Returns a string formatted with local variables. More...
 
def pafera.types.RunCommand (cmdlist)
 Runs a command and returns unicode output. More...
 
def pafera.types.RunDaemon (cmdlist)
 Runs a command in the background. More...
 
def pafera.types.S (v)
 Converts the value into a byte string. More...
 
def pafera.types.StrV (d, k, default='')
 Utility function to get a string from a dict or object given its name. More...
 
def pafera.types.U (v)
 Converts the value into a unicode string. More...
 
def pafera.types.V (d, k, default=None)
 Utility function to get a value from a dict or object given its name. More...
 

Variables

int pafera.types.PY2 = 2
 
int pafera.types.PY3 = 3