Skip to content

REST/JSON client based on Requests.

Notifications You must be signed in to change notification settings

ludia/rest-client

Repository files navigation

Rest-Client

REST/JSON client based on Requests.

Usage

from rest_client import RestClient

client = RestClient('http://jsonplaceholder.typicode.com',
                    auth=('username', 'password'),
                    options={'timeout': 3.0},
                    user_agent='PlaceHolderClient/1.0')

# PUT /posts/1
response = client.call('PUT', ('posts', 1))

# GET /comments?postId=1
response = client.call('GET', ('comments',), params=dict(postId=1))

About

REST/JSON client based on Requests.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages