All Projects → requests → Requests Oauthlib

requests / Requests Oauthlib

Licence: isc
OAuthlib support for Python-Requests!

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to Requests Oauthlib

Insta Mass Account Creator
Instagram Auto Account Creation Bot
Stars: ✭ 452 (-66.98%)
Mutual labels:  python-requests
Pycurl Requests
A Requests-compatible interface for PycURL.
Stars: ✭ 23 (-98.32%)
Mutual labels:  python-requests
Psmsgraph
A PowerShell module for the Microsoft Graph API
Stars: ✭ 71 (-94.81%)
Mutual labels:  oauth2-client
Faster Than Requests
Faster requests on Python 3
Stars: ✭ 639 (-53.32%)
Mutual labels:  python-requests
Requests3
Requests 3.0, for Humans and Machines, alike. 🤖
Stars: ✭ 813 (-40.61%)
Mutual labels:  python-requests
Oauth2
OAuth2 framework for macOS and iOS, written in Swift.
Stars: ✭ 983 (-28.2%)
Mutual labels:  oauth2-client
Redux Oidc
A package for managing OpenID Connect authentication in ReactJS / Redux apps
Stars: ✭ 395 (-71.15%)
Mutual labels:  oauth2-client
Linkedin Api Php Client
LinkedIn API PHP SDK with OAuth 2 support. Can be used for social sign in or sharing on LinkedIn. Has a good usage examples
Stars: ✭ 88 (-93.57%)
Mutual labels:  oauth2-client
Oauth2
OAuth2 client in Go
Stars: ✭ 20 (-98.54%)
Mutual labels:  oauth2-client
Dicomweb Client
Python client for DICOMweb RESTful services
Stars: ✭ 60 (-95.62%)
Mutual labels:  python-requests
Learnpython
以撸代码的形式学习Python
Stars: ✭ 6,040 (+341.2%)
Mutual labels:  python-requests
Toolbelt
A toolbelt of useful classes and functions to be used with python-requests
Stars: ✭ 748 (-45.36%)
Mutual labels:  python-requests
Psraw
PowerShell Reddit API Wrapper
Stars: ✭ 42 (-96.93%)
Mutual labels:  oauth2-client
Baby Names Analysis
Data ETL & Analysis on the dataset 'Baby Names from Social Security Card Applications - National Data'.
Stars: ✭ 557 (-59.31%)
Mutual labels:  python-requests
Openidconnect Rs
OpenID Connect Library for Rust
Stars: ✭ 75 (-94.52%)
Mutual labels:  oauth2-client
Retroauth
A library build on top of retrofit, for simple handling of authenticated requests
Stars: ✭ 405 (-70.42%)
Mutual labels:  oauth2-client
Authomatic
Simple yet powerful authorization / authentication client library for Python web applications.
Stars: ✭ 962 (-29.73%)
Mutual labels:  oauth2-client
Instagram Auto Create Account
An automatic account creation bot script for Instagram.
Stars: ✭ 101 (-92.62%)
Mutual labels:  python-requests
Capacitor Oauth2
Capacitor OAuth 2 client plugin with support for the Web, iOS and Android! Show your appreciation with a Github ★
Stars: ✭ 84 (-93.86%)
Mutual labels:  oauth2-client
Google Auth Library Nodejs
🔑 Google Auth Library for Node.js
Stars: ✭ 1,094 (-20.09%)
Mutual labels:  oauth2-client

Requests-OAuthlib |build-status| |coverage-status| |docs|

This project provides first-class OAuth library support for Requests <http://python-requests.org>_.

The OAuth 1 workflow

OAuth 1 can seem overly complicated and it sure has its quirks. Luckily, requests_oauthlib hides most of these and let you focus at the task at hand.

Accessing protected resources using requests_oauthlib is as simple as:

.. code-block:: pycon

>>> from requests_oauthlib import OAuth1Session
>>> twitter = OAuth1Session('client_key',
                            client_secret='client_secret',
                            resource_owner_key='resource_owner_key',
                            resource_owner_secret='resource_owner_secret')
>>> url = 'https://api.twitter.com/1/account/settings.json'
>>> r = twitter.get(url)

Before accessing resources you will need to obtain a few credentials from your provider (e.g. Twitter) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the full OAuth 1 workflow guide on RTD <https://requests-oauthlib.readthedocs.io/en/latest/oauth1_workflow.html>_.

The OAuth 2 workflow

OAuth 2 is generally simpler than OAuth 1 but comes in more flavours. The most common being the Authorization Code Grant, also known as the WebApplication flow.

Fetching a protected resource after obtaining an access token can be extremely simple. However, before accessing resources you will need to obtain a few credentials from your provider (e.g. Google) and authorization from the user for whom you wish to retrieve resources for. You can read all about this in the full OAuth 2 workflow guide on RTD <https://requests-oauthlib.readthedocs.io/en/latest/oauth2_workflow.html>_.

Installation

To install requests and requests_oauthlib you can use pip:

.. code-block:: bash

$ pip install requests requests_oauthlib

.. |build-status| image:: https://travis-ci.org/requests/requests-oauthlib.svg?branch=master :target: https://travis-ci.org/requests/requests-oauthlib .. |coverage-status| image:: https://img.shields.io/coveralls/requests/requests-oauthlib.svg :target: https://coveralls.io/r/requests/requests-oauthlib .. |docs| image:: https://readthedocs.org/projects/requests-oauthlib/badge/ :alt: Documentation Status :scale: 100% :target: https://requests-oauthlib.readthedocs.io/

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].