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


Download files

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

Source Distribution

apirequests-0.0.8.tar.gz (2.0 kB view details)

Uploaded Source

File details

Details for the file apirequests-0.0.8.tar.gz.

File metadata

File hashes

Hashes for apirequests-0.0.8.tar.gz
Algorithm Hash digest
SHA256 c5e8e41dd26c247c52146a0d071349f207e5d41ed3320917c4c792e1f903f816
MD5 9e64cb5855465bb14cdb825f5d77ba0e
BLAKE2b-256 e19e4d58f4ca1833d1145facd509e9d57e5c4d82c14a9df712aa1605ceffc143

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page