FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Maxcode123/python-libjuju at c2ca299be7f2663544d4d3ebd85ee19b5011b190 · GitHub

Repository navigation

About

Python library for the Juju API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

7 Commits

Folders and files

Repository files navigation

Front Matter

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.

Design Ideas

  • Present an object-oriented interface to all the features of the Juju CLI
  • Do as much as possible through the API so that the library can be used without actually installing Juju

Example Use Cases

Please add more!

Simple bootstrap/deploy

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()

About

Python library for the Juju API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages


Back | FazBrowse Home | New Git URL