Using Plumbery as a python libraryΒΆ

Since Plumbery is easy to load, you can use it interactively like in the following example:

>>>from plumbery.engine import PlumberyEngine
>>>PlumberyEngine('fittings.yaml').build_blueprint('beachhead control')
...

If you are writing some code using Plumbery as a library, you would import the engine and use it, as with any other python module. For example:

from plumbery.engine import PlumberyEngine

engine = PlumberyEngine('fittings.yaml')
engine.do('build', 'docker')
engine.do('start', 'docker')
engine.do('prepare', 'docker')

The source code is available on-line, check the Plumbery repository at GitHub.