Package python-module-logilab-mtconverter-0 :: Package 8 :: Package 4 :: Module engine :: Class TransformEngine
[frames] | no frames]

Class TransformEngine

source code


mimetype oriented conversions engine

Instance Methods
 
__init__(self)
x.__init__(...) initializes x; see help(type(x)) for signature
source code
 
add_transform(self, transform)
register a new transform
source code
 
remove_transform(self, name, *inputs)
unregister a transform name is the name of a registered transform
source code
 
has_input(self, mimetype)
return True if the engine has a transformation taking the given mimetype as input
source code
 
convert(self, trdata, targetmimetype)
convert the given data structure into the given mime type
source code
 
find_path(self, orig, target, required_transforms=())
return the shortest path for transformation from orig mimetype to target mimetype
source code

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties

Inherited from object: __class__

Method Details

__init__(self)
(Constructor)

source code 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__
(inherited documentation)

convert(self, trdata, targetmimetype)

source code 

convert the given data structure into the given mime type

:param trdata: `TransformData` :rtype: `TransformData`