An Example
Info
Python code in the examples is primarily boilerplate code generated by the fy tool. The developer only adds custom logic code at the end.
Flow
Abstract Property greeting
Property greeting implementation
Method greet implementation
A Quick Overview
- The
_fy.py
file starts with the docstring"""fy
, where the fy code resides. In this example, we define a flow that includes two mixin implementations: a propertygreeting
that returns the string"Hello, World!"
and a methodgreet
that utilizes the implementation of thegreeting
property. - The block of python code between comments
# fy:start ===>>>
and# fy:end <<<===
is generated by the fy tool. - The user begins by writing the fy block, then runs the tool to generate the boilerplate code, and finally adds custom logic where necessary.