Skip to main content
..
This file is part of lazr.restfulclient.

lazr.restfulclient is free software: you can redistribute it and/or modify it
under the terms of the GNU Lesser General Public License as published by
the Free Software Foundation, version 3 of the License.

lazr.restfulclient is distributed in the hope that it will be useful, but
WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
License for more details.

You should have received a copy of the GNU Lesser General Public License
along with lazr.restfulclient. If not, see <http://www.gnu.org/licenses/>.

LAZR restfulclient
************

This is a pure template for new lazr namespace packages.

Please see https://dev.launchpad.net/LazrStyleGuide and
https://dev.launchpad.net/Hacking for how to develop in this
package.

This is an example Sphinx_ `Table of contents`_. If you add files to the docs
directory, you should probably improve it.

.. toctree::
:glob:

*
docs/*

.. _Sphinx: http://sphinx.pocoo.org/
.. _Table of contents: http://sphinx.pocoo.org/concepts.html#the-toc-tree

Importable
==========

The lazr.restfulclient package is importable, and has a version number.

>>> import lazr.restfulclient
>>> print 'VERSION:', lazr.restfulclient.__version__
VERSION: ...

===========================
NEWS for lazr.restfulclient
===========================

0.12.3 (2012-05-17)
===================

- Implement the mocked out authorizeRequest for the BasicHttpAuthorizer
object.

0.12.2 (2012-04-16)
===================

- Fix ServiceRoot.load() so that it properly handles relative URLs
in a way that doesn't break subsequent API calls (bug 681767).

0.12.1 (2012-03-28)
===================

- Made the cache safe for use by concurrent threads and processes.

0.12.0 (2011-06-30)
===================

- Give a more useful AttributeError

0.11.2 (2011-02-03)
===================

- The 'web_link' parameter now shows up in lp_attributes, not
lp_entries.

0.11.1 (2010-11-04)
===================

- Restored compatibility with Python 2.4.

0.11.0 (2010-10-28)
===================

- Make it possibly to specify an "application name" separate from the
OAuth consumer key. If present, the application name is used in the
User-Agent header; otherwise, the OAuth consumer key is used.

- Add a "system-wide consumer" which can be used to authorize a
user's entire account to use a web service, rather than doing it
one application at a time.

0.10.0 (2010-08-12)
===================

- Add compatibility with lazr.restful 0.11.0

0.9.21 (2010-07-19)
===================

- Ensure that all JSON representations are converted to Unicode.

- Restore the old behavior of CollectionWithKeyBasedLookup, which is
less efficient but easier to understand. That is, the following
code will work as it did in 0.9.17, performing the lookup
immediately and raising a KeyError if the object doesn't exist on
the server side.

service.collection['key']

The more efficient behavior (which doesn't perform the lookup until
you actually need the object) is still available, but you have to
write this code instead:

service.collection('key')

- Exceptional conditions will now raise an appropriate subclass of
HTTPError instead of always raising HTTPError.

- Credential files are now created as being user-readable only. (In
launchpadlib, they were created using the default umask and then
made user-readable with chmod.)

0.9.20 (2010-06-25)
===================

- It's now possible to pass a relative URL (relative to the versioned
service root) into load().

0.9.19 (2010-06-21)
===================

- When the representation of a resource, as retrieved from the
server, is of a different type than expected, the server value now
takes precedence. This means that, in rare situations, a resource
may start out presumed to be of one type, and change its
capabilities once its representation is fetched from the server.

0.9.18 (2010-06-16)
===================

- Made it possible to avoid fetching a representation of every single
object looked up from a CollectionWithKeyBasedLookup (by defining
.collection_of on the class), potentially improving script
performance.

0.9.17 (2010-05-10)
===================

- Switched back to asking for compression using the standard
Accept-Encoding header. Using the TE header has never worked in a
real situation due to HTTP intermediaries.

0.9.16 (2010-05-03)
===================

- If a server returns a 502 or 503 error code, lazr.restfulclient
will retry its request a configurable number of times in hopes that
the error is transient.

- It's now possible to invoke lazr.restful destructor methods, with
the lp_delete() method.

0.9.15 (2010-04-27)
====================

- Clients will no longer fetch a representation of a collection
before invoking a named operation on the collection.

0.9.14 (2010-04-15)
===================

- Clients now send a useful and somewhat customizable User-Agent
string.

- Added a workaround for a bug in httplib2.

- Removed the software dependency on lazr.restful except when running
the full test suite. (The standalone_test test suite tests basic
functionality of lazr.restfulclient to make sure the code base
doesn't fundamentally depend on lazr.restful.)

0.9.13 (2010-03-24)
===================

- Removed some no-longer-needed compatibility code for buggy
servers, and fixed the tests to work with the new release of simplejson.

- The fix in 0.9.11 to avoid errors on eCryptfs filesystems wasn't
strict enough. The maximum filename length is now 143 characters.

0.9.12 (2010-03-09)
===================

- Fixed a bug that prevented a unicode string from being used as a
cache filename.

0.9.11 (2010-02-11)
===================

- If a lazr.restful web service publishes multiple versions, you can
now specify which version to use in a separate constructor argument,
rather than sticking it on to the end of the service root.
- Filenames in the cache will never be longer than 150 characters,
to avoid errors on eCryptfs filesystems.
- Added a proof-of-concept test for OAuth-signed anonymous access.
- Fixed comparisons of entries and hosted files with None.

0.9.10 (2009-10-23)
===================

- lazr.restfulclient now requests the correct WADL media type.
- Made HTTPError strings more verbose.
- Implemented the equality operator for entry and hosted-file resources.
- Resume setting the 'credentials' attribute on ServerRoot to avoid
breaking compatibility with launchpadlib.

0.9.9 (2009-10-07)
==================

- The WSGI authentication middleware has been moved from lazr.restful
to the new lazr.authentication library, and lazr.restfulclient now
uses the new library.

0.9.8 (2009-10-06)
==================

- Added support for OAuth.

0.9.7 (2009-09-30)
==================

- Added support for HTTP Basic Auth.

0.9.6 (2009-09-16)
==================

- Made compatible with lazr.restful 0.9.6.

0.9.5 (2009-08-28)
==================

- Removed debugging code.

0.9.4 (2009-08-26)
==================

- Removed unnecessary build dependencies.

- Updated tests for newer version of simplejson.

- Made tests less fragile by cleaning up lazr.restful example filemanager
between tests.

- normalized output of simplejson to unicode.

0.9.3 (2009-08-05)
==================

Removed a sys.path hack from setup.py.

0.9.2 (2009-07-16)
==================

- Fields that can contain binary data are no longer run through
simplejson.dumps().

- For fields that can take on a limited set of values, you can now get
a list of possible values.

0.9.1 (2009-07-13)
==================

- The client now knows to look for multipart/form-data representations
and will create them as appropriate. The upshot of this is that you
can now send binary data when invoking named operations that will
accept binary data.


0.9 (2009-04-29)
================

- Initial public release

Metadata

Release files for lazr.restfulclient 0.12.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for lazr.restfulclient 0.12.3
File Size Uploaded Provenance Actions
lazr.restfulclient-0.12.3.tar.gz 57.0 kB Without provenance Details for lazr.restfulclient-0.12.3.tar.gz

Release files / lazr.restfulclient-0.12.3.tar.gz

Download URL lazr.restfulclient-0.12.3.tar.gz
Size 57.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3e00799be8419dcd26f13a2df5cd7a127f699ff7736aaa988ed21e24ec5d34d4
BLAKE2b-256 checksum
How to use checksums
a98558aad2c814c331147e238cc7c49bbea357301521deb25f8dba67b4ef4789
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for lazr.restfulclient 0.12.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

0.13.3

0.13.2

0.13.0

This release

0.12.3 This release

1 release file No provenance

0.12.0

0.11.2

0.11.1

0.11.0

0.10.0

0.9.21

0.9.20

0.9.19

0.9.18

0.9.17

0.9.16

0.9.15

0.9.14

0.9.13

0.9.12

0.9.11

0.9.10

0.9.9

0.9.8

0.9.6

0.9.5

0.9.4

0.9.2

0.9.1

0.9

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page