一、UDS介绍

UDS:即 Unlimited Drive Storage(无限的 Google Drive 存储)的简称,该程序将二进制文件分割后使用 base64 编码文本并存储到 Google Docs 中,从而避免让 Google Drive 统计存储空间。

源码:https://github.com/stewartmcgown/uds

Windows下安装Python3:https://www.cnblogs.com/weven/p/7252917.html

二、UDS安装教程 以下均在centos7下操作。

1、获取Google Drive API

打开:https://developers.google.com/drive/api/v3/quickstart/python,如下图操作

2、下载uds源码,解压后,把上一步下载到的credentials.json 重命名为 client_secret.json,放到uds目录

a、
yum groupinstall 'Development Tools'
yum install zlib-devel bzip2-devel openssl-devel ncurese-devel
yum install python-setuptools
easy_install pip

b、
wget https://github.com/stewartmcgown/uds/archive/master.zip
unzip master.zip
mv uds-master uds
cd uds

c、
pip install --upgrade google-api-python-client google-auth-httplib2 google-auth-oauthlib
pip install --upgrade oauth2client
pip install --upgrade tabulate
pip install --upgrade request

d、
python uds.py

三、UDS使用教程
1、上传文件
python uds.py push 文件

2、列出文件
python uds.py list

3、下载文件
python uds.py pull 文件

4、删除文件
python uds.py delete 文件

更多命令查看:https://github.com/stewartmcgown/uds


GoogleCorelDRAW教程

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。