| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
A python library for Juju.
NOTE: There is no implementation here yet. It is simply a mocked out design of what this library might look like. The design itself is not complete. Comments on the design, good or bad, are welcomed. Use cases are also appreciated as they will shape the design.
The goal is to end up with a feature-full and officially supported python library for Juju.
The focus right now is on Juju 2+ only.
Please add more!
from juju import Juju
juju = Juju()
lxd = juju.get_cloud('lxd')
controller = lxd.bootstrap('lxd-test')
model = controller.get_model('default')
# We might want an async and blocking version of deploy()?
model.deploy('mediawiki-single')
mediawiki = model.get_service('mediawiki')
mediawiki.expose()| Back | FazBrowse Home | New Git URL |