Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apirequests

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apirequests

HTTP client built around "requests" library

  • 0.0.8
  • PyPI
  • Socket score

Maintainers
1

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

.. code:: python

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

.. _requests: https://github.com/requests/requests

Keywords

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc