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

steer

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

steer

Create URLS to use create google oauth2 and drive api requests.

  • 1.2.0
  • PyPI
  • Socket score

Maintainers
1

Steer

The OAuth2 and Google Drive media upload made simple. The Steer API creates all the necessary OAuth2 URLs to authenticate in Google API. Steer also offers the possibility to create media upload URLs in Google Drive API that offers two types of media upload: simple and multipart.

Installation

To install Steer it is needed python3 and pip the python package manager.

pip install steer

Follow the guides at docs to get start with Steer.

How it works

OAuth2

The Steer creates OAuth2 URL according to the Google methods encountered here and Google Drive media upload here.

OAuth2 is a protocol that authorizes third-parties applications to access data from other platforms such as google. Let's suppose you want to use google drive to create an application that creates a folder to store its data in the user's Google Drive.

To do so you need a permission given by Google that is your access token, and the user consent to let the user know that you will be using its Drive to store such data.

The Steer creates the URL to facilitate the Google OAuth2 authorization steps. Steer does not send a HTTP request instead it creates the URL to make the request by using you preferred http client such as requests, this enables the use of any http client.

Drive upload

Steer also offers the option to create a model HTTP URL for Google Drive. This means that the Steer creates all the necessary headers, request body, params and URL to make a request right away with any http client.

Three methods are used to upload media according to Google Drive: simple, multipart, and resumable. Steer offers simple and multipart methods.

  • The simple method can upload either metadata or media it cannot upload both.
  • The multipart method can both upload metadata and media.

License

This project is under the MIT License.

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