MCPcopy Index your code
hub / github.com/dabeaz-course/python-mastery / ticker

Function ticker

Solutions/8_3/coticker.py:44–50  ·  view source on GitHub ↗
(fmt, fields)

Source from the content-addressed store, hash-verified

42
43@consumer
44def ticker(fmt, fields):
45 formatter = create_formatter(fmt)
46 formatter.headings(fields)
47 while True:
48 rec = yield
49 row = [getattr(rec, name) for name in fields]
50 formatter.row(row)
51
52if __name__ == '__main__':
53 follow('../../Data/stocklog.csv',

Callers 1

coticker.pyFile · 0.70

Calls 3

create_formatterFunction · 0.90
headingsMethod · 0.45
rowMethod · 0.45

Tested by

no test coverage detected