Skip to content

hadrien/rest-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%