Skip to main content

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

Metadata

Release files for cd-drive 0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for cd-drive 0.1
File Size Uploaded Provenance Actions
cd_drive-0.1.tar.gz 3.0 kB Without provenance Details for cd_drive-0.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for cd-drive 0.1
File Interpreter ABI Platform Actions
cd_drive-0.1-py3-none-any.whl Python 3 none any Details for cd_drive-0.1-py3-none-any.whl

Total release size: 7.0 kB

Release files / cd_drive-0.1.tar.gz

Download URL cd_drive-0.1.tar.gz
Size 3.0 kB
Tags Source
SHA-256 checksum
How to use checksums
3ea8e7c836ef5b24dd70ecd0409ccfa26368f2a5fcd83eaa9785c2dc7601cbdc
BLAKE2b-256 checksum
How to use checksums
56dd4e7c1a63b112d24e0b5f3e38e8f219f2233e803110545b308b6a249c55ae
Upload date
Uploaded using Trusted Publishing?
What is 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

Release files / cd_drive-0.1-py3-none-any.whl

Download URL cd_drive-0.1-py3-none-any.whl
Size 4.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ed70a7ec5196c611f5a5a066aa874c2b1aab2bf2c8aa70629f38678acb2dd73
BLAKE2b-256 checksum
How to use checksums
6ea670a7a72641aab4f0f73ac7cbc18cdb221150608a251fddccbcbe626841cd
Upload date
Uploaded using Trusted Publishing?
What is 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

Security for cd-drive 0.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page