avni.api.f2py module#

class avni.api.f2py.f2pyWrapper(client)[source]#

Bases: object

f2py wrapper

listf2py()[source]#

lists available f2py functions in config/f2py.ini

args: None

result: dictionary of avaialable f2py functions & arguments

callf2py(function='f2pyfun', args={})[source]#

Abstract function for calling f2py functions in a general way

function: the function to call (string, required) args: kwdict for f2py function (required if function has input)

result: result of the f2py function call

jsonF2pyArgs(args, function)[source]#

converts f2py arguments into json-able form, stores f2py positional order and expected type. returns json of the dict.

formatResult(result, function)[source]#

returns f2py result in expected tuple, preserving positioning