April 2024 - This site, and Kamaelia are being updated. There is significant work needed, and PRs are welcome.
To transform a single core application like this:
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Util.Console import ConsoleEchoer
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
Pipeline(
Textbox(size = (800, 300), position = (0,0)),
TextDisplayer(size = (800, 300), position = (0,340))
).run()
Into a multicore application, you do this:
from Axon.experimental.Process import ProcessPipeline
from Kamaelia.Chassis.Pipeline import Pipeline
from Kamaelia.Util.Console import ConsoleEchoer
from Kamaelia.UI.Pygame.Text import Textbox, TextDisplayer
ProcessPipeline(
Textbox(size = (800, 300), position = (0,0)),
TextDisplayer(size = (800, 300), position = (0,340))
).run()
And that's pretty much it. A very visual difference between these two
examples is that the first of these will use just one Pygame window, and
the latter will use two.