Skip to main content

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

Metadata

Release files for apirequests 0.0.8

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for apirequests 0.0.8
File Size Uploaded Provenance Actions
apirequests-0.0.8.tar.gz 2.0 kB Without provenance Details for apirequests-0.0.8.tar.gz

Release files / apirequests-0.0.8.tar.gz

Download URL apirequests-0.0.8.tar.gz
Size 2.0 kB
Tags Source
SHA-256 checksum
How to use checksums
c5e8e41dd26c247c52146a0d071349f207e5d41ed3320917c4c792e1f903f816
BLAKE2b-256 checksum
How to use checksums
e19e4d58f4ca1833d1145facd509e9d57e5c4d82c14a9df712aa1605ceffc143
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for apirequests 0.0.8

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page