Skip to main content

A library that makes consuming a ReST API easier and more convenient

Project description

Slumber

Slumber is a python library that provides a convenient yet powerful object orientated interface to ReSTful APIs. It acts as a wrapper around the excellent httplib2 library and abstracts away the handling of urls, serialization, and processing requests.

Getting Help

There are two primary ways of getting help. We have a mailing list hosted at Google (http://groups.google.com/group/python-slumber/) and an IRC channel (#slumber on irc.freenode.net) to get help, want to bounce idea or generally shoot the breeze.

QuickStart

  1. Install Slumber:

    $ pip install slumber
  2. Install Optional Requirements:

    pip install simplejson pyyaml
  3. Use Slumber!

Requirements

Slumber requires the following modules. If you use Pip, you can install the necessary bits via the included requirements.txt:

  • Python 2.5+

  • httplib2

  • simplejson (If using Python 2.5, or you desire the speedups for JSON serialization)

  • pyyaml (If you are using the optional yaml serialization)

Changelog

0.2.4

  • Fixed Including of Changelog.rst

0.2.3

  • Updated the docs to include a section about url parameters

0.2

  • (Backwards Incompatible) Move specifying a non default serializer from api.resource.get(format="yaml") to api.resource(format="yaml").get()

  • Reworked the internal Resource api to not clobber any kwargs passed to it. This fixes a bug where you couldn’t use format or url as the name for one of the url parameters.

0.1.3

  • Fix for Resource.post() not passing kwargs to Resource.get()

0.1.2

  • Initial public release of Slumber

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

slumber-0.2.4.tar.gz (7.0 kB view details)

Uploaded Source

File details

Details for the file slumber-0.2.4.tar.gz.

File metadata

  • Download URL: slumber-0.2.4.tar.gz
  • Upload date:
  • Size: 7.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for slumber-0.2.4.tar.gz
Algorithm Hash digest
SHA256 15b10f44ce926b878fd3e92f2344aad08e0e57e483d2cd6c902bc577ebac25c5
MD5 3cd83a34c122f23a7f98772db77948f6
BLAKE2b-256 239a0d107a44e95ab918fc373f220c4fd5748c4c80316f3de3f809e6921afbba

See more details on using hashes here.

Provenance

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page