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-10.0.1.tar.gz (63.2 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-10.0.1-py3-none-any.whl (19.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: wcpan_drive_google-10.0.1.tar.gz
  • Upload date:
  • Size: 63.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wcpan_drive_google-10.0.1.tar.gz
Algorithm Hash digest
SHA256 55fa5223779fd9f614252343c800318b4adc57e5dbaad83776c54a99fd48ca77
MD5 be5de69bbe30573626eb92384b56b0c6
BLAKE2b-256 1d8280ff5a9a1a783edcc38e9de4b2cb4150cda8e9268c87f0d66bad88a848ba

See more details on using hashes here.

File details

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

File metadata

  • Download URL: wcpan_drive_google-10.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

File hashes

Hashes for wcpan_drive_google-10.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 295cf49b3e02e3496b01ed06255da4d99473ae71752b797d4c7e543b8174b99c
MD5 cbf5be22781c5ae5cc01880db03f8db8
BLAKE2b-256 8e9a802ac65b859269b4e829119d0a026d2b5fd962f75dc91029781dfdf7f765

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