Skip to main content

HTTP client built around "requests" library

Project description

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())

Project details


Release history Release notifications

This version
History Node

0.0.8

History Node

0.0.7

History Node

0.0.6

History Node

0.0.5

History Node

0.0.4

History Node

0.0.3

History Node

0.0.2

History Node

0.0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
apirequests-0.0.8.tar.gz (2.0 kB) Copy SHA256 hash SHA256 Source None Dec 4, 2017

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging CloudAMQP CloudAMQP RabbitMQ AWS AWS Cloud computing Fastly Fastly CDN DigiCert DigiCert EV certificate StatusPage StatusPage Status page