October 2018
Intermediate to advanced
420 pages
10h 26m
English
The command-line echo application simply outputs the arguments passed on the command-line to the console. This subpart details its functional and reactive implementation with Cyclotron.
First, more imports than previously are needed:
from collections import namedtuplefrom rx import Observablefrom cyclotron import Componentfrom cyclotron.rx import runimport cyclotron_std.sys.stdout as stdoutimport cyclotron_std.sys.argv as argv
In addition to Observable of the rx module, namedtuple as well as several cyclotron modules are used. The Component constructor and the run function are the minimal requirements to start an application. Then two drivers of cyclotron-std are used. The stdout driver is a sink-only driver ...
Read now
Unlock full access