Juju Digest, Vol 71, Issue 18

James Beedy jamesbeedy at gmail.com
Fri Dec 23 23:50:30 UTC 2016


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 <jamesbeedy at gmail.com> 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, <juju-request at lists.ubuntu.com> wrote:
>
>> Send Juju mailing list submissions to
>>         juju at lists.ubuntu.com
>>
>> 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
>>         juju-request at lists.ubuntu.com
>>
>> You can reach the person managing the list at
>>         juju-owner at lists.ubuntu.com
>>
>> 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 <tim.van.steenburgh at canonical.com>
>> To: juju <juju at lists.ubuntu.com>
>> Subject: [ANN] First release of new Python library for Juju
>> Message-ID:
>>         <CAO+EB6Q+xAj9CasQYd9K45LecCyi+mc60amG_dhS1RSVaCEb5Q at 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
>> Juju at lists.ubuntu.com
>> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailm
>> an/listinfo/juju
>>
>>
>> End of Juju Digest, Vol 71, Issue 18
>> ************************************
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20161223/2d32a70a/attachment.html>


More information about the Juju mailing list