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.6.tar.gz
(14.5 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file wcpan_drive_google-9.1.6.tar.gz.
File metadata
- Download URL: wcpan_drive_google-9.1.6.tar.gz
- Upload date:
- Size: 14.5 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fc68a527da33ea7daab99dd6935cd7946ea5f53c11de355aee174c567e95711c
|
|
| MD5 |
b4296246b77a67f72a5ae34cb29e793f
|
|
| BLAKE2b-256 |
31efc80b7a76bf4a2d77bc3e92a6a5f1e032cb85750475078ec0b2ae4578b856
|
File details
Details for the file wcpan_drive_google-9.1.6-py3-none-any.whl.
File metadata
- Download URL: wcpan_drive_google-9.1.6-py3-none-any.whl
- Upload date:
- Size: 19.3 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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d6ca82e40d7ddd54206494c54e43526c622c940f6bd8bea812663c8d8338279f
|
|
| MD5 |
c556246d1da4e99164d45e8c91b6e082
|
|
| BLAKE2b-256 |
a6c216175ce2365a91421f17655d1785a8069e2aa1e75b936a978083486b4a1a
|