Skip to main content

Wrapper to easily manipulate Google Drive files

Project description

cd_drive

cd Drive is a wrapper of google-api-python-client that make it easier to manipulate files on Google Drive.

Installation

You can install cd_drive using pip:

pip install cd_drive

Usage

First enable Google Drive API on your google account and download the credentials.json file. With the credentials file you can start using cd_drive:

from cd_drive import Drive

# Perform oAuth flow to authorize application
drive = Drive('path/to/credentials.json')

# Select current dir
drive.cd('Images/')

# Read file from Google Drive at the current dir
img = drive.read('photo.png')

# Write file on Google Drive at the current dir
drive.write('new-photo.png')

Project details


Release history Release notifications | RSS feed

This version

0.1

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cd_drive-0.1.tar.gz (3.0 kB view hashes)

Uploaded Source

Built Distribution

cd_drive-0.1-py3-none-any.whl (4.1 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