/usr/lib/python2.7/dist-packages/theblues-0.2.0.egg-info/PKG-INFO is in python-theblues 0.2.0-0ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 | Metadata-Version: 1.1
Name: theblues
Version: 0.2.0
Summary: Python library for using the juju charm store API.
Home-page: https://github.com/juju/theblues
Author: JC Sackett
Author-email: jcsackett@canonical.com
License: UNKNOWN
Description: =============================
theblues
=============================
Python library for using the juju charmstore API.
Installation
------------
The easiest way to install theblues is via pip::
$ pip install theblues
Note that theblues requires python-macaroons (which has its own dependencies),
which must be installed from a ppa::
$ sudo add-apt-repository ppa:yellow/ppa -y
$ apt-get install libmacaroons0 python-macaroons libsodium13
Without these, theblues cannot communicate with the charmstore.
Usage
-----
Interacting with the charmstore is pretty simple. To look up an entity on the
charmstore (e.g. a charm or bundle)::
>>> from theblues.charmstore import CharmStore
>>> cs = CharmStore('https://api.jujucharms.com/v4')
>>> entity = cs.entity('wordpress')
>>> entity['Id']
u'cs:trusty/wordpress-2'
Data for an entity is contained in the `Meta` item of the response, matching the
json returned from the charmstores::
>>> entity['Meta']['charm-metadata']['Name']
u'wordpress'
You can also get files for the entity::
>>> cs.files('wordpress')['hooks/install']
u'https://api.jujucharms.com/v4/wordpress/archive/hooks/install
>>> hook = cs.files('wordpress', filename='hooks/install', read_file=True)
>>> print hook
#!/bin/bash
set -xe
...
<snipped for length>
...
juju-log "So, environment is setup. We'll wait for some hooks to fire off before we get all crazy"
To see all methods available, refer to the full docs.
History
-------
0.2.0 (2016-03-24)
++++++++++++++++++
* Add LGPL3 license.
* Add optional channel arguments.
* Make deps less strict to work across trusty -> xenial.
0.1.1 (2016-01-25)
++++++++++++++++++
* Use Reference from jujubundlelib as a parameter.
* Add list endpoint.
0.1.0 (2015-12-04)
++++++++++++++++++
* Fix for empty macaroon cookie.
0.0.5 (2015-11-20)
++++++++++++++++++
* Expose common-info.
* Fix import.
0.0.4 (2015-06-10)
++++++++++++++++++
* Support setting a timeout on charmstore requests.
0.0.3 (2015-05-04)
++++++++++++++++++
* Add type filter to charmstore search.
0.0.2 (2015-04-08)
++++++++++++++++++
* Add series filter to charmstore search.
* Handle 407 http error from charmstore as EntityNotFound.
* Add simple usage example to README.
* Minor changes to HACKING.
* Minor fixes.
0.0.1 (2015-03-19)
++++++++++++++++++
* Initial release.
Keywords: theblues
Platform: UNKNOWN
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: GNU Lesser General Public License v3 (LGPLv3)
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
|