运行 python 脚本存在于 Dropbox 在线(不在桌面)在 spyder

running python scripts present in Dropbox online (not in desktop) in spyder

我无法在我的 Linux 系统中安装 Dropbox Desktop。我有两台电脑,一台在家里,一台在公司。我知道我可以在一台计算机上上传脚本,然后在使用 Dropbox 工作时下载到另一台计算机。我很好奇,有没有办法直接从 Dropbox 在线在 spyder 中 运行 python 脚本?

Dropbox 可以存储 您的脚本,但实际上没有代码执行环境。理论上,您可以使用 API 将脚本从 Dropbox 中拉出并放入云生态系统 运行,但在这一点上,直接将脚本托管在您希望它们运行的​​位置可能更容易 运行!

如果您能稍微描述一下用例,我也许可以提供更具体的建议。

编辑: 所以听起来您将在本地使用脚本,只需要一种无需访问 Dropbox 应用程序即可上传/下载它们的方法。这 需要 是程序化的 (API) 而不是使用 Web UI 吗?
RE:the Dropbox API,使用 files/upload and files/download endpoints will give you access to your files. You can also use the files/list_folder endpoint to list the contents of a folder. Keep in mind that once the contents of the folder grow to large to be returned in a single files/list_folder call, you'll need to use files/list_folder/continue 获取其余内容。

我认为 https://github.com 正是为您的用例而发明的。

(很抱歉,说真的,只是使用 github/gitlab/bitbucket 而不是 Dropbox 进行代码共享、版本控制等。Github 具体有免费的私人回购。)