| 1 |
Metadata-Version: 2.1 |
| 2 |
Name: lazr.restfulclient |
| 3 |
Version: 0.14.6 |
| 4 |
Summary: A programmable client library that takes advantage of the commonalities among |
| 5 |
Home-page: https://launchpad.net/lazr.restfulclient |
| 6 |
Download-URL: https://launchpad.net/lazr.restfulclient/+download |
| 7 |
Maintainer: LAZR Developers |
| 8 |
Maintainer-email: [email protected] |
| 9 |
License: LGPL v3 |
| 10 |
Project-URL: Source, https://code.launchpad.net/lazr.restfulclient |
| 11 |
Project-URL: Issue Tracker, https://bugs.launchpad.net/lazr.restfulclient |
| 12 |
Project-URL: Documentation, https://lazrrestfulclient.readthedocs.io/en/latest/ |
| 13 |
Classifier: Development Status :: 5 - Production/Stable |
| 14 |
Classifier: Intended Audience :: Developers |
| 15 |
Classifier: License :: OSI Approved :: GNU Library or Lesser General Public License (LGPL) |
| 16 |
Classifier: Operating System :: OS Independent |
| 17 |
Classifier: Programming Language :: Python |
| 18 |
Classifier: Programming Language :: Python :: 2 |
| 19 |
Classifier: Programming Language :: Python :: 3 |
| 20 |
License-File: COPYING.txt |
| 21 |
Requires-Dist: distro |
| 22 |
Requires-Dist: httplib2; python_version < "3" |
| 23 |
Requires-Dist: httplib2>=0.7.7; python_version >= "3" |
| 24 |
Requires-Dist: importlib-metadata; python_version < "3.8" |
| 25 |
Requires-Dist: oauthlib |
| 26 |
Requires-Dist: setuptools |
| 27 |
Requires-Dist: six |
| 28 |
Requires-Dist: wadllib>=1.1.4 |
| 29 |
Provides-Extra: docs |
| 30 |
Requires-Dist: Sphinx; extra == "docs" |
| 31 |
Provides-Extra: test |
| 32 |
Requires-Dist: fixtures>=1.3.0; extra == "test" |
| 33 |
Requires-Dist: lazr.authentication; extra == "test" |
| 34 |
Requires-Dist: lazr.restful>=0.11.0; extra == "test" |
| 35 |
Requires-Dist: mock; python_version < "3" and extra == "test" |
| 36 |
Requires-Dist: oauth; extra == "test" |
| 37 |
Requires-Dist: testtools; extra == "test" |
| 38 |
Requires-Dist: wsgi_intercept; extra == "test" |
| 39 |
Requires-Dist: zope.testrunner; extra == "test" |
| 40 |
|
| 41 |
.. |
| 42 |
This file is part of lazr.restfulclient. |
| 43 |
|
| 44 |
lazr.restfulclient is free software: you can redistribute it and/or modify it |
| 45 |
under the terms of the GNU Lesser General Public License as published by |
| 46 |
the Free Software Foundation, version 3 of the License. |
| 47 |
|
| 48 |
lazr.restfulclient is distributed in the hope that it will be useful, but |
| 49 |
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY |
| 50 |
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public |
| 51 |
License for more details. |
| 52 |
|
| 53 |
You should have received a copy of the GNU Lesser General Public License |
| 54 |
along with lazr.restfulclient. If not, see <http://www.gnu.org/licenses/>. |
| 55 |
|
| 56 |
LAZR restfulclient |
| 57 |
****************** |
| 58 |
|
| 59 |
A programmable client library that takes advantage of the commonalities among |
| 60 |
lazr.restful web services to provide added functionality on top of wadllib. |
| 61 |
|
| 62 |
Please see https://dev.launchpad.net/LazrStyleGuide and |
| 63 |
https://dev.launchpad.net/Hacking for how to develop in this |
| 64 |
package. |
| 65 |
|
| 66 |
|
| 67 |
=========================== |
| 68 |
NEWS for lazr.restfulclient |
| 69 |
=========================== |
| 70 |
|
| 71 |
0.14.6 (2024-01-03) |
| 72 |
=================== |
| 73 |
|
| 74 |
- Add ``Read the Docs`` configuration |
| 75 |
- Add Python 3.12 compatibility |
| 76 |
|
| 77 |
0.14.5 (2022-10-15) |
| 78 |
=================== |
| 79 |
|
| 80 |
- Add ``pre-commit`` configuration. |
| 81 |
- Publish documentation on Read the Docs. |
| 82 |
- Apply black code formatter. |
| 83 |
- Apply inclusive naming via the woke pre-commit hook. |
| 84 |
- Fix ``HostedFile.open(mode="w")`` on Python 3. |
| 85 |
|
| 86 |
0.14.4 (2021-09-13) |
| 87 |
=================== |
| 88 |
|
| 89 |
- Drop support for Python < 2.6. |
| 90 |
- Adjust versioning strategy to avoid importing pkg_resources, which is |
| 91 |
slow in large environments. |
| 92 |
|
| 93 |
0.14.3 (2020-01-27) |
| 94 |
=================== |
| 95 |
|
| 96 |
- Restore from_string, to_string, and __str__ methods of |
| 97 |
lazr.restfulclient.authorize.oauth.AccessToken, unintentionally removed |
| 98 |
in 0.14.0. |
| 99 |
|
| 100 |
0.14.2 (2018-11-17) |
| 101 |
=================== |
| 102 |
|
| 103 |
- Fix compatibility with httplib2 0.12.0 for Python 3. [bug=1803754] |
| 104 |
- Really fix compatibility with httplib2 < 0.9. |
| 105 |
- Fix compatibility with httplib2 0.9 for Python 3. |
| 106 |
- Require httplib2 >= 0.7.7 for Python 3. |
| 107 |
|
| 108 |
0.14.1 (2018-11-16) |
| 109 |
=================== |
| 110 |
|
| 111 |
- Add compatibility with httplib2 0.12.0. [bug=1803558] |
| 112 |
|
| 113 |
0.14.0 (2018-05-08) |
| 114 |
=================== |
| 115 |
|
| 116 |
- Switch from buildout to tox. |
| 117 |
- Port from oauth to oauthlib. Some tests still need to use oauth until |
| 118 |
lazr.authentication is ported. [bug=1672458] |
| 119 |
- Use the distro module rather than platform.linux_distribution, since the |
| 120 |
latter is deprecated in Python 3.5 and will be removed in 3.7. |
| 121 |
[bug=1473577] |
| 122 |
|
| 123 |
0.13.5 (2017-09-04) |
| 124 |
=================== |
| 125 |
|
| 126 |
- Fix bytes vs. unicode in json.loads calls. [bug=1403524] |
| 127 |
- Decode header before comparison. [bug=1414075] |
| 128 |
- Fix urllib unquote imports. [bug=1414055] |
| 129 |
- Fix urllib urlencode imports. [bug=1425609] |
| 130 |
- Tolerate httplib2 versions earlier than 0.9 again. |
| 131 |
- Fix handling of 304 responses with an empty body on Python 3. |
| 132 |
[bug=1714960] |
| 133 |
|
| 134 |
0.13.4 (2014-12-05) |
| 135 |
=================== |
| 136 |
|
| 137 |
- Port to python3. |
| 138 |
- Support proxy settings from environment by default. |
| 139 |
|
| 140 |
0.13.3 (2013-03-22) |
| 141 |
=================== |
| 142 |
|
| 143 |
- Fall back to httplib2's default certificate path if the |
| 144 |
Debian/Ubuntu one doesn't exist. The default bundle might work, |
| 145 |
but a path that doesn't exist is never going to. New httplib2 |
| 146 |
bundles contain the required CA certs. |
| 147 |
|
| 148 |
0.13.2 (2012-12-06) |
| 149 |
=================== |
| 150 |
|
| 151 |
- lazr.restfulclient is almost exclusively used with launchpad.net, |
| 152 |
but httplib2's cert bundle doesn't include launchpad's CA. Therefore |
| 153 |
with the default setup launchpadlib doesn't work unless cert checking |
| 154 |
is disabled. This is mitigated by the fact that Ubuntu carries a patch |
| 155 |
to httplib2 to make it use the system CA certs. This release makes that |
| 156 |
the default approach in lazr.restfulclient so that launchpad.net can be |
| 157 |
used by anyone with the Debian/Ubuntu CA certs path |
| 158 |
(/etc/ssl/certs/ca-certificates.crt), regardless of whether they are |
| 159 |
using Ubuntu's patched version of httplib2. Any platforms that don't have |
| 160 |
that path remain broken. |
| 161 |
|
| 162 |
0.13.1 (2012-09-26) |
| 163 |
=================== |
| 164 |
|
| 165 |
- Named POST operations may result in a resource moving to a new location. |
| 166 |
Detect the redirect and reload the resource from its new URL. |
| 167 |
|
| 168 |
0.13.0 (2012-06-19) |
| 169 |
=================== |
| 170 |
|
| 171 |
- Add environment variable, LP_DISABLE_SSL_CERTIFICATE_VALIDATION, to |
| 172 |
disable SSL certificate checks. Most useful when testing against |
| 173 |
development servers. |
| 174 |
|
| 175 |
0.12.3 (2012-05-17) |
| 176 |
=================== |
| 177 |
|
| 178 |
- Implement the mocked out authorizeRequest for the BasicHttpAuthorizer |
| 179 |
object. |
| 180 |
|
| 181 |
0.12.2 (2012-04-16) |
| 182 |
=================== |
| 183 |
|
| 184 |
- Fix ServiceRoot.load() so that it properly handles relative URLs |
| 185 |
in a way that doesn't break subsequent API calls (bug 681767). |
| 186 |
|
| 187 |
0.12.1 (2012-03-28) |
| 188 |
=================== |
| 189 |
|
| 190 |
- Made the cache safe for use by concurrent threads and processes. |
| 191 |
|
| 192 |
0.12.0 (2011-06-30) |
| 193 |
=================== |
| 194 |
|
| 195 |
- Give a more useful AttributeError |
| 196 |
|
| 197 |
0.11.2 (2011-02-03) |
| 198 |
=================== |
| 199 |
|
| 200 |
- The 'web_link' parameter now shows up in lp_attributes, not |
| 201 |
lp_entries. |
| 202 |
|
| 203 |
0.11.1 (2010-11-04) |
| 204 |
=================== |
| 205 |
|
| 206 |
- Restored compatibility with Python 2.4. |
| 207 |
|
| 208 |
0.11.0 (2010-10-28) |
| 209 |
=================== |
| 210 |
|
| 211 |
- Make it possibly to specify an "application name" separate from the |
| 212 |
OAuth consumer key. If present, the application name is used in the |
| 213 |
User-Agent header; otherwise, the OAuth consumer key is used. |
| 214 |
|
| 215 |
- Add a "system-wide consumer" which can be used to authorize a |
| 216 |
user's entire account to use a web service, rather than doing it |
| 217 |
one application at a time. |
| 218 |
|
| 219 |
0.10.0 (2010-08-12) |
| 220 |
=================== |
| 221 |
|
| 222 |
- Add compatibility with lazr.restful 0.11.0 |
| 223 |
|
| 224 |
0.9.21 (2010-07-19) |
| 225 |
=================== |
| 226 |
|
| 227 |
- Ensure that all JSON representations are converted to Unicode. |
| 228 |
|
| 229 |
- Restore the old behavior of CollectionWithKeyBasedLookup, which is |
| 230 |
less efficient but easier to understand. That is, the following |
| 231 |
code will work as it did in 0.9.17, performing the lookup |
| 232 |
immediately and raising a KeyError if the object doesn't exist on |
| 233 |
the server side. |
| 234 |
|
| 235 |
service.collection['key'] |
| 236 |
|
| 237 |
The more efficient behavior (which doesn't perform the lookup until |
| 238 |
you actually need the object) is still available, but you have to |
| 239 |
write this code instead: |
| 240 |
|
| 241 |
service.collection('key') |
| 242 |
|
| 243 |
- Exceptional conditions will now raise an appropriate subclass of |
| 244 |
HTTPError instead of always raising HTTPError. |
| 245 |
|
| 246 |
- Credential files are now created as being user-readable only. (In |
| 247 |
launchpadlib, they were created using the default umask and then |
| 248 |
made user-readable with chmod.) |
| 249 |
|
| 250 |
0.9.20 (2010-06-25) |
| 251 |
=================== |
| 252 |
|
| 253 |
- It's now possible to pass a relative URL (relative to the versioned |
| 254 |
service root) into load(). |
| 255 |
|
| 256 |
0.9.19 (2010-06-21) |
| 257 |
=================== |
| 258 |
|
| 259 |
- When the representation of a resource, as retrieved from the |
| 260 |
server, is of a different type than expected, the server value now |
| 261 |
takes precedence. This means that, in rare situations, a resource |
| 262 |
may start out presumed to be of one type, and change its |
| 263 |
capabilities once its representation is fetched from the server. |
| 264 |
|
| 265 |
0.9.18 (2010-06-16) |
| 266 |
=================== |
| 267 |
|
| 268 |
- Made it possible to avoid fetching a representation of every single |
| 269 |
object looked up from a CollectionWithKeyBasedLookup (by defining |
| 270 |
.collection_of on the class), potentially improving script |
| 271 |
performance. |
| 272 |
|
| 273 |
0.9.17 (2010-05-10) |
| 274 |
=================== |
| 275 |
|
| 276 |
- Switched back to asking for compression using the standard |
| 277 |
Accept-Encoding header. Using the TE header has never worked in a |
| 278 |
real situation due to HTTP intermediaries. |
| 279 |
|
| 280 |
0.9.16 (2010-05-03) |
| 281 |
=================== |
| 282 |
|
| 283 |
- If a server returns a 502 or 503 error code, lazr.restfulclient |
| 284 |
will retry its request a configurable number of times in hopes that |
| 285 |
the error is transient. |
| 286 |
|
| 287 |
- It's now possible to invoke lazr.restful destructor methods, with |
| 288 |
the lp_delete() method. |
| 289 |
|
| 290 |
0.9.15 (2010-04-27) |
| 291 |
==================== |
| 292 |
|
| 293 |
- Clients will no longer fetch a representation of a collection |
| 294 |
before invoking a named operation on the collection. |
| 295 |
|
| 296 |
0.9.14 (2010-04-15) |
| 297 |
=================== |
| 298 |
|
| 299 |
- Clients now send a useful and somewhat customizable User-Agent |
| 300 |
string. |
| 301 |
|
| 302 |
- Added a workaround for a bug in httplib2. |
| 303 |
|
| 304 |
- Removed the software dependency on lazr.restful except when running |
| 305 |
the full test suite. (The standalone_test test suite tests basic |
| 306 |
functionality of lazr.restfulclient to make sure the code base |
| 307 |
doesn't fundamentally depend on lazr.restful.) |
| 308 |
|
| 309 |
0.9.13 (2010-03-24) |
| 310 |
=================== |
| 311 |
|
| 312 |
- Removed some no-longer-needed compatibility code for buggy |
| 313 |
servers, and fixed the tests to work with the new release of simplejson. |
| 314 |
|
| 315 |
- The fix in 0.9.11 to avoid errors on eCryptfs filesystems wasn't |
| 316 |
strict enough. The maximum filename length is now 143 characters. |
| 317 |
|
| 318 |
0.9.12 (2010-03-09) |
| 319 |
=================== |
| 320 |
|
| 321 |
- Fixed a bug that prevented a unicode string from being used as a |
| 322 |
cache filename. |
| 323 |
|
| 324 |
0.9.11 (2010-02-11) |
| 325 |
=================== |
| 326 |
|
| 327 |
- If a lazr.restful web service publishes multiple versions, you can |
| 328 |
now specify which version to use in a separate constructor argument, |
| 329 |
rather than sticking it on to the end of the service root. |
| 330 |
- Filenames in the cache will never be longer than 150 characters, |
| 331 |
to avoid errors on eCryptfs filesystems. |
| 332 |
- Added a proof-of-concept test for OAuth-signed anonymous access. |
| 333 |
- Fixed comparisons of entries and hosted files with None. |
| 334 |
|
| 335 |
0.9.10 (2009-10-23) |
| 336 |
=================== |
| 337 |
|
| 338 |
- lazr.restfulclient now requests the correct WADL media type. |
| 339 |
- Made HTTPError strings more verbose. |
| 340 |
- Implemented the equality operator for entry and hosted-file resources. |
| 341 |
- Resume setting the 'credentials' attribute on ServerRoot to avoid |
| 342 |
breaking compatibility with launchpadlib. |
| 343 |
|
| 344 |
0.9.9 (2009-10-07) |
| 345 |
================== |
| 346 |
|
| 347 |
- The WSGI authentication middleware has been moved from lazr.restful |
| 348 |
to the new lazr.authentication library, and lazr.restfulclient now |
| 349 |
uses the new library. |
| 350 |
|
| 351 |
0.9.8 (2009-10-06) |
| 352 |
================== |
| 353 |
|
| 354 |
- Added support for OAuth. |
| 355 |
|
| 356 |
0.9.7 (2009-09-30) |
| 357 |
================== |
| 358 |
|
| 359 |
- Added support for HTTP Basic Auth. |
| 360 |
|
| 361 |
0.9.6 (2009-09-16) |
| 362 |
================== |
| 363 |
|
| 364 |
- Made compatible with lazr.restful 0.9.6. |
| 365 |
|
| 366 |
0.9.5 (2009-08-28) |
| 367 |
================== |
| 368 |
|
| 369 |
- Removed debugging code. |
| 370 |
|
| 371 |
0.9.4 (2009-08-26) |
| 372 |
================== |
| 373 |
|
| 374 |
- Removed unnecessary build dependencies. |
| 375 |
|
| 376 |
- Updated tests for newer version of simplejson. |
| 377 |
|
| 378 |
- Made tests less fragile by cleaning up lazr.restful example filemanager |
| 379 |
between tests. |
| 380 |
|
| 381 |
- normalized output of simplejson to unicode. |
| 382 |
|
| 383 |
0.9.3 (2009-08-05) |
| 384 |
================== |
| 385 |
|
| 386 |
Removed a sys.path hack from setup.py. |
| 387 |
|
| 388 |
0.9.2 (2009-07-16) |
| 389 |
================== |
| 390 |
|
| 391 |
- Fields that can contain binary data are no longer run through |
| 392 |
simplejson.dumps(). |
| 393 |
|
| 394 |
- For fields that can take on a limited set of values, you can now get |
| 395 |
a list of possible values. |
| 396 |
|
| 397 |
0.9.1 (2009-07-13) |
| 398 |
================== |
| 399 |
|
| 400 |
- The client now knows to look for multipart/form-data representations |
| 401 |
and will create them as appropriate. The upshot of this is that you |
| 402 |
can now send binary data when invoking named operations that will |
| 403 |
accept binary data. |
| 404 |
|
| 405 |
|
| 406 |
0.9 (2009-04-29) |
| 407 |
================ |
| 408 |
|
| 409 |
- Initial public release |