包含tentaclio的gdrive模式所有依赖项的Python项目。
项目描述
tentaclio-gdrive
包含gdrive tentaclio模式所有依赖项的包。
快速开始
此项目附带一个Makefile
,可执行基本常见任务。
$ make help
install Initalise the virtual env installing deps
clean Remove all the unwanted clutter
lock Lock dependencies
update Update dependencies (whole tree)
sync Install dependencies as per the lock file
lint Lint files with flake and mypy
format Run black and isort
test Run unit tests
circleci Validate circleci configuration (needs circleci cli)
配置对Google Drive的访问。
Google Drive支持是实验性的,应自行承担风险。此外,由于Google Drive本身,它相对较慢。
-
获取凭据。首先,我们需要一个凭据文件,以便能够生成令牌。最简单的方法是访问此示例,点击启用Drive API。给项目一个您选择的名称(例如
tentaclio
)。点击APIs and services
->Credentials
->Create credentials
-> 创建OAuth客户端ID,选择
桌面应用并
下载JSON` -
生成令牌文件
pipenv install tentaclio && \
pipenv run python -m tentaclio_gdrive google-token generate --credentials-file ~/Downloads/credentials.json
这将在浏览器中打开一个Google身份验证页面,登录并接受授权请求。令牌文件已保存在默认位置 '~/.tentaclio_google_drive.json'。您也可以通过env变量TENTACLIO__GOOGLE_DRIVE_TOKEN_FILE
进行配置
- 删除credentials.json 文件
credentials.json
文件不再需要,您可以根据需要删除它。
项目详情
关闭
tentaclio-gdrive-0.0.3.tar.gz的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | cb7fd483465f8f71b3607dca4a0bc817ed377e16fc9dfb6f78145f8d34930f10 |
|
MD5 | 6637da77016ad622564e387f60d8f262 |
|
BLAKE2b-256 | 5a9fe2cbd177626bc069cd48d84f23382fe3f12b4d9999b62fbb2c625f804313 |
关闭
tentaclio_gdrive-0.0.3-py2.py3-none-any.whl的哈希值
算法 | 哈希摘要 | |
---|---|---|
SHA256 | c99e8d928b08171a206bdebe3330901ab2c94fcd3debb5ee1329ea788d53b7a9 |
|
MD5 | b93dc6c1b77a98f4b87b99610ba43130 |
|
BLAKE2b-256 | f028935a4f17707d2f9f8ca7e981e310cefb8b6ab73c4acef81ac0e83796d5a9 |