Writing Modifiers
To write an OFRAK Modifier, an OFRAK contributor needs to:
- Create a class that inherits from
ofrak.component.component_modifier.Modifierwith a defined component config (ofrak.model.component_model.CC); - Implement the
targetsto indicate what resource tags the modifier targets; - Implement the
modifymethod such that it correctly applies the modifications.
See Modifier for an example of a fully-implemented OFRAK modifier.
Handling External Dependencies
If the Modifier makes use of tools that are not packaged in modules installable via pip from
PyPI (commonly command-line tools), these dependencies must be explicitly declared as part of the
modifier's class declaration. See the Components Using External Tools doc for
information on how to do that.