异步google驱动器api。
wcpan.drive.google的Python项目详细描述
wcpan.drive.google
异步google驱动器api。
示例用法
importos.pathasopfromwcpan.drive.googleimportDriveasyncdefapi_demo():path=op.expanduser('~/.cache/wcpan/drive/google')asyncwithDrive(path)asdrive:node=awaitdrive.get_node_by_path('/path/to/drive/file')ok=awaitdrive.download_file(node,'/path/to/local')
命令行用法
python3 -m wcpan.drive.google -h