Skip to main content

Google Drive driver for wcpan.drive

Project description

wcpan.drive.google

FileService extension for wcpan.drive which provides Google Drive support.

Please use wcpan.drive.google.create_service to create the file.

Requirement

Need a client_secret.json file which can be downloaded from Google Developer Console.

Example

from functools import partial

from wcpan.drive.core import create_drive
from wcpan.drive.google import create_service


async def main():
    # Your API credential.
    client_secret = "/path/to/client_secret.json"
    # Stores access token and refresh token.
    oauth_token = "/path/to/oauth_token.json"

    create_file_service = partial(
        create_service,
        client_secret=client_secret,
        oauth_token=oauth_token,
    )

    async with create_drive(
        file=create_file_service,
        snapshot=...,
    ) as 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

wcpan_drive_google-9.0.0.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

wcpan_drive_google-9.0.0-py3-none-any.whl (18.6 kB view details)

Uploaded Python 3

File details

Details for the file wcpan_drive_google-9.0.0.tar.gz.

File metadata

  • Download URL: wcpan_drive_google-9.0.0.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for wcpan_drive_google-9.0.0.tar.gz
Algorithm Hash digest
SHA256 5207555d05d9107e49b8eebb15a9e874b3b20d3ebfef2f60ba7cbb054982826a
MD5 2064737b7d0c7f18f20964489b427e6b
BLAKE2b-256 2b5d939e024b2457bbf1727bbaefae6aec27f9e4fb58b5ca182e1e6165f14210

See more details on using hashes here.

File details

Details for the file wcpan_drive_google-9.0.0-py3-none-any.whl.

File metadata

  • Download URL: wcpan_drive_google-9.0.0-py3-none-any.whl
  • Upload date:
  • Size: 18.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.7.1 CPython/3.11.2 Linux/5.15.133.1-microsoft-standard-WSL2

File hashes

Hashes for wcpan_drive_google-9.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 39453e57c648d378383e2d5fa768b6351eaaa95669ded810c0f2cbd71aea5f48
MD5 127d65c285cb03e1763d7df7b7fd3d2a
BLAKE2b-256 f8b5608b35a7a559298ccd009752b6cd2b40cacc77b448c6b9240eb2ecde792f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page