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.1.1.tar.gz (5.8 kB view details)

Uploaded Source

Built Distribution

simple_gdrive-1.1.1-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: simple-gdrive-1.1.1.tar.gz
  • Upload date:
  • Size: 5.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.8.12

File hashes

Hashes for simple-gdrive-1.1.1.tar.gz
Algorithm Hash digest
SHA256 5da7920d26bb94404efe14a2c75b7e0aa4450362067d064e63ca92a305ca79dd
MD5 47b18ccdfbab385e7046ebd797080ddc
BLAKE2b-256 b01a1c20276e7cbf35cd04422f3a86336b516d0d9cdd6333c59b0c00bdc8ad4f

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for simple_gdrive-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b3d8fcc15f0e59a113dde711ac29e8a6ac593ef510fc082a07e703c5eb9136fa
MD5 ba78f66d6887798995b26a4ed9a9bb32
BLAKE2b-256 4c5a049cd843e62a604a97292cf139ffe60117ae61f2bbf15f8c4411f374fb0e

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