我参与了一个项目,我想为其部署 Dash Web 应用程序,托管在项目合作伙伴之一的服务器上。有没有办法auth通过 URL 与项目的其他成员安全地(我猜是基本的 dash )共享这个 Dash 应用程序?
我知道这可以通过 Heroku 进行部署,但由于可能会担心通过此第三方服务移动数据,因此更理想的设置是通过“本地”(到项目)服务器托管应用程序。
有效地
git“本地”和 24/7 运营的服务器构建和部署的我确信这方面有一些东西,但我似乎无法确定最适合我们需求的部署方法。
我遵循了谷歌提供的使用 Python的快速入门,我使用了谷歌给出的适当范围从驱动器https://www.googleapis.com/auth/drive.readonly下载文件,但我不断收到错误:
googleapiclient.errors.HttpError: https://www.googleapis.com/drive/v3/files/1RWpLGCWldcJyVqa0tIVlScg60ExEtcNIvJ7R9M8DuhM?alt=media 返回“只能下载包含二进制内容的文件。使用 Google Docs 文件导出。”
当我尝试运行代码来下载文件时。
我可以读取驱动器上的文件,但尽管我尽了最大的努力,但我似乎无法从驱动器下载特定的电子表格。下面是我用于通过 API 建立连接的代码(已编辑的文件路径和一些注释):
def gsuite_connect():
file_path = 'OMITTED/Loading'
# Get what permissions the user (using the API) will need. This as been set to high level
# access by default
scopes = ['https://www.googleapis.com/auth/drive.readonly']
# Access the tokens for G Suite to access the Drive. Ensure that if this file previous exists,
# that it is in the current working directory
store = file.Storage(os.path.join(file_path, 'storage.json'))
# Access the …Run Code Online (Sandbox Code Playgroud)