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

Uploaded Source

Built Distribution

cd_drive-0.1-py3-none-any.whl (4.1 kB view details)

Uploaded Python 3

File details

Details for the file cd_drive-0.1.tar.gz.

File metadata

  • Download URL: cd_drive-0.1.tar.gz
  • Upload date:
  • Size: 3.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for cd_drive-0.1.tar.gz
Algorithm Hash digest
SHA256 3ea8e7c836ef5b24dd70ecd0409ccfa26368f2a5fcd83eaa9785c2dc7601cbdc
MD5 45c82768faee29afd420f230c2cdda3b
BLAKE2b-256 56dd4e7c1a63b112d24e0b5f3e38e8f219f2233e803110545b308b6a249c55ae

See more details on using hashes here.

File details

Details for the file cd_drive-0.1-py3-none-any.whl.

File metadata

  • Download URL: cd_drive-0.1-py3-none-any.whl
  • Upload date:
  • Size: 4.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.6.2 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.6.10

File hashes

Hashes for cd_drive-0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 4ed70a7ec5196c611f5a5a066aa874c2b1aab2bf2c8aa70629f38678acb2dd73
MD5 4100f03a5adffe1787bef04fea51e51e
BLAKE2b-256 6ea670a7a72641aab4f0f73ac7cbc18cdb221150608a251fddccbcbe626841cd

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