Skip to content

alexandr-san4ez/apirequests

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

apirequests

Implements a more convenient interface for constructing API to HTTP resources.

Features

  • The ability to specify a host and use relative links;
  • The choice between: checking the status of the response and raises exceptions (silent parameter);
  • It is based on requests and supports all its interfaces;
  • is will be more...

Install

pip install apirequests

Usage

import apirequests

class GitHub(apirequests.Client):
    silent = False
    def __init__(self):
        super(GitHub, self).__init__('https://api.github.com/')

github = GitHub()
print(github.get('zen').text)
print(github.get('users/defunkt').json())

About

HTTP client built around "requests" library

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages