lucifiers
¶
A lucifier is a Python class that extends the Lucifier
base class. the main method that needs to be implemented is called process_dictlet()
. If a lucifier comes with it’s own command-line options, you’ll probably also have to implement a custom constructor (as for example MetadataLucifier
does).
It’s main function is to process the metadata that it gets out from a dictlet (and potential user input), then do whatever it’s purpose is, using the metadata as configuration and/or input for that task. Depending on the task itself, the content of the dictlet might also be used.
Developing a lucifier that parses a directory of yaml files¶
As an example, let’s create a lucifier that reads a directory full of yaml files recursively, and then