The goal is to also add a synchronous interface which does async behind the scene. That will be in a future release. However, it looks like you're off to a good start!
Marco On Fri, Dec 23, 2016, 6:51 PM James Beedy <[email protected]> wrote: > I think I'm starting to see the light. I was using the call to > run_forever(), because I couldn't figure out a way to have the program exit > cleanly after just running once, I took a step back and did a little more > reading on asyncio. I now have a working proof of concept of what a simple > script (that exits correctly) might look like here > https://gist.github.com/jamesbeedy/4126ccd238771a0c2e4b96336209959f > > > > On Fri, Dec 23, 2016 at 2:40 PM, James Beedy <[email protected]> wrote: > > Tim, > > This is awesome! I've spent the last few hours trying to get a legitimate > proof of concept working, and I think I've got a simple working proof of > concept here -> > https://gist.github.com/jamesbeedy/2628da64f7fb58f4af46587b55473be6. > > Is there any advice you might want to shed on how we can write scripts > with this? Seeing as you need to write an async application to be able to > use the juju library, it seems like the type of tasks I want to use it for > will become slightly more complex, e.g. integrating with jenkins. > > For my current use case of CI, I feel like I would need to create a > tornado middleware built from the juju library that would expose a rest api > that CI scripting could consume and interface to. > > How do you feel about this? > > ~James > > On Thu, Dec 22, 2016 at 4:00 AM, <[email protected]> wrote: > > Send Juju mailing list submissions to > [email protected] > > To subscribe or unsubscribe via the World Wide Web, visit > https://lists.ubuntu.com/mailman/listinfo/juju > or, via email, send a message with subject or body 'help' to > [email protected] > > You can reach the person managing the list at > [email protected] > > When replying, please edit your Subject line so it is more specific > than "Re: Contents of Juju digest..." > > > Today's Topics: > > 1. [ANN] First release of new Python library for Juju > (Tim Van Steenburgh) > > > ---------------------------------------------------------------------- > > Message: 1 > Date: Wed, 21 Dec 2016 12:27:01 -0500 > From: Tim Van Steenburgh <[email protected]> > To: juju <[email protected]> > Subject: [ANN] First release of new Python library for Juju > Message-ID: > < > cao+eb6q+xaj9casqyd9k45leccyi+mc60amg_dhs1rsvace...@mail.gmail.com> > Content-Type: text/plain; charset="utf-8" > > Hi everyone, > > v0.1.0 of the new 'juju' library for Python has been released. Installation > instructions and documentation are available at > https://pythonhosted.org/juju/. > > There is still plenty to do, but a number of people and projects are > already using the library in its current form. Please kick the tires and > provide feedback. If a feature that you need is missing, please file a bug. > If the docs are confusing or lacking, please file a bug. All bug reports > (and other contributions) are welcomed. > > I'll be giving a talk (Driving Juju with Python) demonstrating the library > at Config Management Camp 2017 in Gent in February. > > Watch this space for future release announcements! > > Tim > -------------- next part -------------- > An HTML attachment was scrubbed... > URL: < > https://lists.ubuntu.com/archives/juju/attachments/20161221/87f40c14/attachment-0001.html > > > > ------------------------------ > > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju > > > End of Juju Digest, Vol 71, Issue 18 > ************************************ > > > > -- > Juju mailing list > [email protected] > Modify settings or unsubscribe at: > https://lists.ubuntu.com/mailman/listinfo/juju >
-- Juju mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/juju
