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-11.0.0.tar.gz
(63.2 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-11.0.0.tar.gz.
File metadata
- Download URL: wcpan_drive_google-11.0.0.tar.gz
- Upload date:
- Size: 63.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ff6f295f95ead23792454db9781550d345712f9020a2f14e533c3e2637eed741
|
|
| MD5 |
161d5f6bc5c7cbbac63c31ef373063d4
|
|
| BLAKE2b-256 |
a134dff3e296458efc57aaa17fbade8170e043592d3d37d267640fb96adda965
|
File details
Details for the file wcpan_drive_google-11.0.0-py3-none-any.whl.
File metadata
- Download URL: wcpan_drive_google-11.0.0-py3-none-any.whl
- Upload date:
- Size: 19.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.7 {"installer":{"name":"uv","version":"0.11.7","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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
651301a322c615f3d4c883b30a33453a563cad2f1e8309ee764448feaa61b4ca
|
|
| MD5 |
351fe6e69a3b3852f2cb60c921d8e5d7
|
|
| BLAKE2b-256 |
9ce97b6a5ba15535ac1e2501289e7bb77caa63685a21738d6bc5b42a19efda47
|