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.2.tar.gz
(14.1 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.2.tar.gz.
File metadata
- Download URL: wcpan_drive_google-9.1.2.tar.gz
- Upload date:
- Size: 14.1 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 |
2f68e743457fb59a7284dbc006403c5189d6ebe2683d7090328bb1717e36f9fd
|
|
| MD5 |
a6df47a960a26b663854ee409091c0cd
|
|
| BLAKE2b-256 |
00f12bfaf4bc5042c73879aecd97c179506461c7d736ccb83565eb8e69ccaeed
|
File details
Details for the file wcpan_drive_google-9.1.2-py3-none-any.whl.
File metadata
- Download URL: wcpan_drive_google-9.1.2-py3-none-any.whl
- Upload date:
- Size: 18.8 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 |
b698af91f13227f4c8a2a441a42796862a4bffba8afb20247c668d58a4dfb4ca
|
|
| MD5 |
a85c54102ff67bdd41a8f361f9cdfb75
|
|
| BLAKE2b-256 |
3428de4ba6a3cff34cdc21b3919c5f08a7e7564678eb9771df06d38f5c675e66
|