|
def | ArrayV (d, k, default=[]) |
| Utility function to get an array from a dict or object given its name. More...
|
|
def | DictV (d, k, default={}) |
| Utility function to get a dict from a dict or object given its name. More...
|
|
def | 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 | 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 | Print (v, *args) |
| Print a unicode string with arguments. More...
|
|
def | PrintB (v, *args) |
| Print a byte string with arguments. More...
|
|
def | PrintBL (v, localdict=None) |
| Print a byte string formatted with local variables. More...
|
|
def | Printf (v, *args) |
| Returns a formatted unicode string. More...
|
|
def | PrintL (v, localdict=None) |
| Print a string formatted with local variables. More...
|
|
def | PrintLf (s, localdict=None) |
| Returns a string formatted with local variables. More...
|
|
def | RunCommand (cmdlist) |
| Runs a command and returns unicode output. More...
|
|
def | RunDaemon (cmdlist) |
| Runs a command in the background. More...
|
|
def | S (v) |
| Converts the value into a byte string. More...
|
|
def | StrV (d, k, default='') |
| Utility function to get a string from a dict or object given its name. More...
|
|
def | U (v) |
| Converts the value into a unicode string. More...
|
|
def | V (d, k, default=None) |
| Utility function to get a value from a dict or object given its name. More...
|
|
def pafera.types.ArrayV |
( |
|
d, |
|
|
|
k, |
|
|
|
default = [] |
|
) |
| |
Utility function to get an array from a dict or object given its name.
Will return default if it can't be found.
The V functions are convenience functions designed to ensure that a value is the correct type before being used for any work.
Definition at line 241 of file types.py.
def pafera.types.DictV |
( |
|
d, |
|
|
|
k, |
|
|
|
default = {} |
|
) |
| |
Utility function to get a dict from a dict or object given its name.
Will return default if it can't be found.
The V functions are convenience functions designed to ensure that a value is the correct type before being used for any work.
Definition at line 264 of file types.py.
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.
Will return default if it can't be found.
The V functions are convenience functions designed to ensure that a value is the correct type before being used for any work.
Definition at line 195 of file types.py.
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.
Will return default if it can't be found.
The V functions are convenience functions designed to ensure that a value is the correct type before being used for any work.
Definition at line 169 of file types.py.
def pafera.types.StrV |
( |
|
d, |
|
|
|
k, |
|
|
|
default = '' |
|
) |
| |
Utility function to get a string from a dict or object given its name.
Will return default if it can't be found.
The V functions are convenience functions designed to ensure that a value is the correct type before being used for any work.
Definition at line 221 of file types.py.
def pafera.types.V |
( |
|
d, |
|
|
|
k, |
|
|
|
default = None |
|
) |
| |
Utility function to get a value from a dict or object given its name.
Will return default if it can't be found.
The V functions are convenience functions designed to ensure that a value is the correct type before being used for any work.
Definition at line 151 of file types.py.