【问题标题】:How to access file from onedrive using python如何使用python从onedrive访问文件
【发布时间】:2022-06-30 21:41:35
【问题描述】:

我在我的 python 程序中使用本地存储中的一个文件

导入系统 sys.path('文件:路径')

我想将此文件存储在 onedrive 上并在我的程序中访问或导入它

【问题讨论】:

标签: python


【解决方案1】:

您可以导入和使用适用于 python 的 onedrive SDK API。您可以进行身份​​验证并执行上传/下载/重命名等操作。

参考:https://github.com/OneDrive/onedrive-sdk-python

示例:https://github.com/OneDrive/onedrive-sdk-python/tree/master/examples

【讨论】:

    【解决方案2】:

    使用这个包(我是作者):https://github.com/fire015/onedrive-sharepoint-python-sdk

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-06-11
      • 1970-01-01
      • 2016-05-13
      • 1970-01-01
      相关资源
      最近更新 更多