Permalink
Commits on Apr 26, 2017
  1. Remove irc info

    Sam Giles committed Apr 26, 2017
  2. Add as_raw method, and raw option to the API. This allows you to get …

    Sam Giles committed Apr 25, 2017
    …hold of the Response object from the python requests library
Commits on Apr 24, 2017
  1. Update travis yml

    Sam Giles committed Apr 24, 2017
  2. Mistakenly removed 34, instead of 32

    Sam Giles committed Apr 24, 2017
  3. coverage have no intention of supporting py32 :(

    Sam Giles committed Apr 24, 2017
  4. Fix for py3

    Sam Giles committed Apr 24, 2017
  5. Addresses #32 and stops sending content-type header when the payload …

    Sam Giles committed Apr 24, 2017
    …is None
  6. Add Trove classifiers.

    kdeldycke committed with samgiles Jan 11, 2017
Commits on Jun 18, 2015
  1. Minor updates to the docs

    samgiles committed Jun 18, 2015
Commits on May 14, 2015
  1. 0.7.1

    samgiles committed May 14, 2015
  2. Merge pull request #110 from edx/renzo/encoding

    samgiles committed May 14, 2015
    Use requests' guess_json_utf() to specify an encoding for decode()
  3. Remove string conversion from JsonSerializer, test decoding of Unicod…

    Renzo Lucioni committed May 14, 2015
    …e responses
Commits on May 13, 2015
Commits on Apr 23, 2015
  1. Merge pull request #107 from jhermann/deps-as-deps

    samgiles committed Apr 23, 2015
    Deps as deps in tox.ini
Commits on Apr 17, 2015
  1. Bump minor version

    samgiles committed Apr 17, 2015
  2. Preparing release

    samgiles committed Apr 17, 2015
Commits on Feb 27, 2015
  1. Add failing test from #29

    samgiles committed Feb 27, 2015
  2. create a specialized error for 404s

    andymccurdy committed with samgiles Aug 21, 2013
    A missing object on a resource is a common error. Often times your app
    will want to handle this case differently than other errors. Currently,
    you have to catch the exception, test the response.status_code, and
    then re-raise if it's not 404. e.g.,
    
    ```python
    api = slumber.API(...)
    try:
        api.resource(some_id).get()
    except slumber.exceptions.HttpClientError as e:
        if e.resp.status_code == 404:
            # do something 404-specific, perhaps raising a Http404 in Django
        else:
            raise   # re-raise the original exception
    ```
    
    This patch creates a new error (Http404Error) that subclasses
    HttpClientError. It makes the use case much easier on users:
    
    ```python
    api = slumber.API(...)
    try:
        api.resource(some_id).get()
    except slumber.exceptions.Http404Error:
        # do something 404-specific
    ```
  3. Use the _get_resource method

    samgiles committed Feb 27, 2015
  4. Merge branch 'pr/101'

    samgiles committed Feb 27, 2015
  5. Merge branch 'pr/102'

    samgiles committed Feb 27, 2015
Commits on Jan 27, 2015
  1. Add missing tests_require requirement (unittest2)

    koobs committed Jan 27, 2015
    unittest2 is listed in test-requirements.txt, but is missing from tests_require in setup.py. It may be worth reading the contests of test_requirements.txt to populate tests_require, but I'd leave that design decision to you :) cc @dstufft
Commits on Jan 11, 2015
  1. Sometimes binary content can be passed to the serializers (Python 3),…

    samgiles committed Jan 11, 2015
    … this makes the serializers safer by casting the type to a string - thanks @joshuago78
  2. Merge pull request #92 from irqed/auth_session

    samgiles committed Jan 11, 2015
    Add auth to request session if it's passed. Fixes #79
  3. Improve class documentation slightly, add note about accessing privat…

    samgiles committed Dec 23, 2014
    …e attributes/resources
  4. Expand name 's' to 'serializer'

    samgiles committed Dec 23, 2014
Commits on Dec 2, 2014
  1. adding 'options' and 'head' methods

    Jannon Frank committed Dec 2, 2014
    and a tiny bit of http method refactoring