Module Import alias Import alias identifier ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults body Expr Str Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Str Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Raise Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad Call NameLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam NameParam defaults body Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Return ListLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareIs NameLoad AttributeLoad NameLoad attr If CompareIs AttributeLoad NameLoad attr NameLoad body Raise Call AttributeLoad NameLoad attr BinOpMod Str IfExp Call NameLoad NameLoad Str AttributeLoad NameLoad attr NameLoad Return Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Assert CompareIs AttributeLoad NameLoad attr AttributeLoad NameLoad attr Return AttributeLoad NameLoad attr decorator_list decorator_list ClassDef bases NameLoad body Assign NameStore Dict FunctionDef arguments args NameParam NameParam defaults body Return Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad decorator_list NameLoad decorator_list FunctionDef arguments args NameParam defaults body FunctionDef arguments args NameParam NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad If CompareIs NameLoad NameLoad body Assign NameStore ListLoad Assign SubscriptStore AttributeLoad NameLoad attr Index NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list If BoolOpAnd Call AttributeLoad NameLoad attr NameLoad Call NameLoad NameLoad NameLoad body Assign NameStore SubscriptLoad Call AttributeLoad AttributeLoad NameLoad attr attr Str Index Num If Call AttributeLoad NameLoad attr Str body Assign NameStore SubscriptLoad NameLoad Slice Call NameLoad Str Expr Call NameLoad NameLoad Call NameLoad Return NameLoad FunctionDef arguments args NameParam defaults body Assign NameStore NameLoad If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad NameLoad attr orelse If Call NameLoad NameLoad Str body Assign NameStore AttributeLoad AttributeLoad NameLoad attr attr Assert CompareIsNot NameLoad NameLoad BinOpMod Str TupleLoad NameLoad Assign NameStore SubscriptLoad Call AttributeLoad NameLoad attr Str Index Num Expr Call NameLoad NameLoad Call NameLoad NameLoad NameLoad Return NameLoad decorator_list Return NameLoad decorator_list
N/A N/A inspect N/A pyfora.Exceptions Exceptions PureImplementationMapping N/A object N/A N/A Plugin base to allow pyfora to convert user-defined types like dataframes to pyfora and back.

    This infrastructure allows us to provide alternative implementations of
    libraries that are implemented in ways that the pyfora system cannot
    convert (e.g. numpy).

    In this model, 'mappable' types are the regular python types (like numpy
    array, dataframe, etc.) that we want to map, and 'pure' types are their
    images in pure-python.  getMappablePythonTypes N/A N/A self N/A N/A N/A Return the python type that this mapping knows how to convert.

        This should return a list of python types and classes. Any time the
        converter sees an instance of one of these types, Pyfora will invoke
        this class to provide an alternate, translatable form of the instance.
         N/A N/A N/A Exceptions PyforaNotImplementedError N/A '%s' not implemented yet for type '%s' N/A N/A N/A self getMappablePythonTypes __name__ N/A N/A type self __name__ N/A getMappableInstances N/A N/A self N/A N/A N/A Return a list of specific instances this mapper knows how to convert. N/A N/A N/A Exceptions PyforaNotImplementedError N/A '%s' not implemented yet for type '%s' N/A N/A N/A self getMappableInstances __name__ N/A N/A type self __name__ N/A getPurePythonTypes N/A N/A self N/A N/A N/A Return the pure-python type that this mapping converts to.

        This should return a list of python classes that this mapper knows how to invert.
         N/A N/A N/A Exceptions PyforaNotImplementedError N/A '%s' not implemented yet for type '%s' N/A N/A N/A self getPurePythonTypes __name__ N/A N/A type self __name__ N/A mapPythonInstanceToPyforaInstance N/A N/A self instance N/A N/A N/A Given an instance of the mappable class, return an instance implementing it in pure-python. N/A N/A N/A Exceptions PyforaNotImplementedError N/A '%s' not implemented yet for type '%s' N/A N/A N/A self mapPythonInstanceToPyforaInstance __name__ N/A N/A type self __name__ N/A mapPyforaInstanceToPythonInstance N/A N/A self instance N/A N/A N/A Given an instance of the pure-python class, return an instance of the mappable type. N/A N/A N/A Exceptions PyforaNotImplementedError N/A '%s' not implemented yet for type '%s' N/A N/A N/A self mapPyforaInstanceToPythonInstance __name__ N/A N/A type self __name__ N/A N/A InstanceMapping N/A PureImplementationMapping N/A N/A Mapping infrastructure to convert singleton instances to PurePython class instances.

    This mapping is primarily used to map builtins like 'len' to instances of pure-python classes like
    pyfora.pure_modules.pure___builtin__.Len.
     __init__ N/A N/A self instance pureClass N/A N/A N/A N/A self instance instance N/A N/A self pureClass pureClass N/A getMappablePythonTypes N/A N/A self N/A N/A N/A N/A N/A getMappableInstances N/A N/A self N/A N/A N/A N/A N/A self instance N/A getPurePythonTypes N/A N/A self N/A N/A N/A N/A N/A self pureClass N/A mapPythonInstanceToPyforaInstance N/A N/A self instance N/A N/A N/A N/A instance N/A self instance N/A N/A N/A self pureClass None N/A N/A N/A N/A Exceptions PyforaNotImplementedError N/A conversion of '%s' not yet implemented N/A N/A hasattr instance __name__ N/A instance __name__ instance N/A N/A N/A self pureClass N/A mapPyforaInstanceToPythonInstance N/A N/A self instance N/A N/A N/A N/A N/A instance __class__ N/A self pureClass N/A N/A self instance N/A N/A PureMappingRegistry N/A object N/A N/A mappings N/A mappingsForRootModule N/A N/A cls root N/A N/A N/A N/A N/A N/A cls mappings get root N/A N/A classmethod N/A pureMapping N/A N/A instance_or_mapping N/A N/A registerMapping N/A N/A root_module mapping N/A N/A N/A mappings N/A N/A N/A PureMappingRegistry mappings get root_module N/A N/A mappings None N/A N/A mappings N/A N/A N/A N/A PureMappingRegistry mappings N/A root_module mappings N/A N/A N/A mappings append mapping N/A N/A N/A N/A N/A inspect isclass instance_or_mapping N/A issubclass instance_or_mapping PureImplementationMapping N/A N/A root_module N/A N/A N/A N/A instance_or_mapping __module__ split . N/A -1 N/A N/A N/A root_module startswith pure_ N/A N/A root_module N/A root_module N/A N/A len pure_ N/A N/A registerMapping root_module N/A instance_or_mapping N/A instance_or_mapping wrap N/A N/A cls N/A N/A N/A module None N/A N/A hasattr instance_or_mapping __module__ N/A N/A module N/A instance_or_mapping __module__ N/A N/A N/A hasattr instance_or_mapping __class__ N/A N/A module N/A N/A instance_or_mapping __class__ __module__ N/A N/A module None N/A Using @pureMapping with unsupported object %s N/A instance_or_mapping N/A root_module N/A N/A N/A module split . N/A 0 N/A N/A registerMapping root_module N/A InstanceMapping instance_or_mapping cls N/A cls N/A N/A wrap N/A