A very lightweight REST client for Python.
Branch: master
Clone or download
Latest commit d0a01c3 Dec 1, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
light_rest_client Misc Nov 30, 2018
tests GH-6: Support for HTTP error codes Nov 11, 2018
.gitignore 1.0.3 release Nov 30, 2018
.travis.yml GH-11: Include automated deployment Nov 30, 2018
LICENSE Initial commit Nov 3, 2018
README.md Rebrand Dec 1, 2018
requirements.txt GH-5: Improve unit tests Nov 10, 2018
setup.py Rebrand Dec 1, 2018

README.md

light-rest-client Build Status

A very lightweight REST client for Python.

Example

from light_rest_client.client import Client
from light_rest_client.parsers import JSONParser
from light_rest_client.exceptions import HTTPClientException, HTTPServerException

try:
    client = Client(url="https://jsonplaceholder.typicode.com", parser=JSONParser())
    print(client.get("todos/1"))
except HTTPClientException:
    # code
except HTTPServerException:
    # code

Installation

pip install light-rest-client

~pypi page

License

CDDL