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
Release history Release notifications | RSS feed
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.1.5.tar.gz
(14.4 kB
view hashes)
Built Distribution
Close
Hashes for wcpan_drive_google-9.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9f8813b69b35e26ec1dac1b1e5c2afa6551c1b0ba50f42825483ace017d0102f |
|
MD5 | ec1d14c77663cf8494e5c1f9096f8885 |
|
BLAKE2b-256 | 8ce577e133fbf144b52ffe8e01a63a44ba771bab015346a618016696eb6e26e1 |