katana.units.esoteric.piet — Piet¶
Piet esoteric language
This unit inherits from the katana.unit.FileUnit to ensure
that the target is in fact an image file.
This unit will extract the text returned by a given
Piet language image using the npiet command-line
utility. The syntax is:
npiet -e 1000000 <target_path>
-
class
katana.units.esoteric.piet.Unit(*args, **kwargs) Bases:
katana.unit.FileUnit-
DEPENDENCIES= ['npiet'] Required depenencies for this unit “npiet”
-
GROUPS= ['esoteric', 'npiet', 'piet'] These are “tags” for a unit. Considering it is a Esoteric unit, “esoteric” is included, as well as the unit name “npiet”.
-
PRIORITY= 30 Priority works with 0 being the highest priority, and 100 being the lowest priority. 50 is the default priorty. This unit has a moderately high priority due to speed and broadness of applicability
-
RECURSE_SELF= False It would not make sense to recurse into ourself
-
evaluate(case: Any) Evaluate the target. Run the
npietcode and give the standard output results to Katana.Parameters: case – A case returned by enumerate. For this unit, theenumeratefunction is not used.Returns: None. This function should not return any data.
-