Skip to main content

Simple command to help download and upload big files to Google Drive (using their official Drive APIs)

Project description

simple-gdrive: A simple command to help download and upload big files to Google Drive (using their official APIs)

Setup

Before using the command, you must open Google Cloud Platform and create credentials for oauth: cloud.google.com > APIs & Services > Credentials. Note that if your project hasn't enabled Drive APIs, go to APIs & Services > Enabled APIs & Services and add Drive APIs. Then, download the JSON file and put it in the AuthDir (default at ~/.simple_gdrive) with the name credentials.json. When you run the script for the first time, it will redirect to your browser so you can authenicate and give permission to YOUR application (created in the previous step) to access to your drive. Then, you will obtain an access token saving to the same drive with name tokens.json. Keeping the two files safe (or delete tokens.json after usage) and nobody else will have access to your data.

Installation

pip install simple-gdrive

Usage

Invoke the command by running gdrive or python -m simple_gdrive.

Download a file:

gdrive download -s <path in disk> -d <path in drive>

Upload a file

gdrive upload -s <file path in disk> -d <path in drive>

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

simple-gdrive-1.0.1.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

simple_gdrive-1.0.1-py3-none-any.whl (6.6 kB view details)

Uploaded Python 3

File details

Details for the file simple-gdrive-1.0.1.tar.gz.

File metadata

  • Download URL: simple-gdrive-1.0.1.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.4.0

File hashes

Hashes for simple-gdrive-1.0.1.tar.gz
Algorithm Hash digest
SHA256 3b0b351d95e26230d2d8b02d670a817e1b5ee08073d983915e98fe610cb30b23
MD5 5c36e267f0783c1428ef71cd8ea90199
BLAKE2b-256 7ee1fd7c000460722d6cf70efad193dcd16d37074d1f9c0dc0c142c4b188e638

See more details on using hashes here.

File details

Details for the file simple_gdrive-1.0.1-py3-none-any.whl.

File metadata

  • Download URL: simple_gdrive-1.0.1-py3-none-any.whl
  • Upload date:
  • Size: 6.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.9.10 Darwin/21.4.0

File hashes

Hashes for simple_gdrive-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1d538a9bebf9d5a7e26e49936d80d8ee28bc8f9731459b68dd493d37826b20fc
MD5 ceb47eae48ebe46a5d24e56dbb206347
BLAKE2b-256 c0f15cacfc02d6c1956fc6023b6e6ce44b770478dfd19320e2050fe225329ce7

See more details on using hashes here.

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