taika¶
The top-level package contain some meta info about the package to be accessible by other tools.
The author name.
-
__email__(str)¶ The email of __author__.
-
__version__(str)¶ The version of the package.
-
class
Taika(source, destination, conf_path=None)[source]¶ Taika main class.
Attributes: - source :
pathlib.Path - destination :
pathlib.Path - events :
taika.events.EventManager - config : dict
- documents : list
-
process(self)[source]¶ Run
Taika.read()andTaika.write().
-
read(self, source)[source]¶ Read all the files recursively from a source directory and load them as dictionaries.
Parameters: - source :
pathlib.Path The source directory where the documents are read from.
Returns: - documents : list
A list of dictionaries that represent documents.
- source :
-
write(self, documents, destination)[source]¶ Call taika.taika.write_file for each document on documents with destination.
Parameters: - documents : list
A list of dictionaries that represent documents.
- destination : str or
pathlib.Path The destination directory.
- source :