Skip to main content

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

Project description

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.

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

steer-1.2.0.tar.gz (10.5 kB view hashes)

Uploaded Source

Built Distribution

steer-1.2.0-py3-none-any.whl (11.0 kB view hashes)

Uploaded Python 3

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