30 lines
376 B
Text
30 lines
376 B
Text
|
# -*- mode: python -*-
|
||
|
|
||
|
from flowmetal import workflow
|
||
|
|
||
|
|
||
|
def ingest():
|
||
|
return {}
|
||
|
|
||
|
|
||
|
def analyze(data):
|
||
|
return data.keys()
|
||
|
|
||
|
|
||
|
def check(keys) -> bool:
|
||
|
return len(keys) > 0
|
||
|
|
||
|
|
||
|
def report(keys):
|
||
|
print(keys)
|
||
|
|
||
|
|
||
|
@workflow
|
||
|
def main():
|
||
|
data = ingest()
|
||
|
data = analyze(data)
|
||
|
if check(data):
|
||
|
report(data)
|
||
|
else:
|
||
|
raise ValueError(report(data))
|