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

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

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

Uploaded Python 3

File details

Details for the file steer-1.2.0.tar.gz.

File metadata

  • Download URL: steer-1.2.0.tar.gz
  • Upload date:
  • Size: 10.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for steer-1.2.0.tar.gz
Algorithm Hash digest
SHA256 7204d65b9db9737ff5723c43755b526977fde96633c183d49eea8c044928e294
MD5 08cfea9519eba6fa33c0e1641bd33499
BLAKE2b-256 1013ccc77d8eb5e19909c0a2574419c51611e5688e7feac421bbf383253aa8ba

See more details on using hashes here.

File details

Details for the file steer-1.2.0-py3-none-any.whl.

File metadata

  • Download URL: steer-1.2.0-py3-none-any.whl
  • Upload date:
  • Size: 11.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.8.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

File hashes

Hashes for steer-1.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 50c1bbe32a147f59bd7e45074af8764c03f0d3f265990a2d38606a2deab21544
MD5 7b70c32135d776db0206ec5b34876246
BLAKE2b-256 d99902d65a8b9a697eb403758b6f3cfe1c2ec507e60fd4c15449c8fe787b8431

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page