gpt4 book ai didi

python - 如何将 Azure Function 绑定(bind)到 Python 中的 blob 容器?

转载 作者:行者123 更新时间:2023-12-03 04:02:12 39 4
gpt4 key购买 nike

我有一个包含多个文件的 blob 容器。我有兴趣将最后修改的绑定(bind)作为 azure 函数的输入。该函数是用python实现的。

我认为我可以通过将 Blob 容器绑定(bind)为 CloudBlobContainer 来实现此目的,然后迭代文件以查找最后修改的文件。根据this thread看来在 C# 中绑定(bind)到容器是可能的。但我不知道如何在 Python 中做到这一点。 CloudBlobContainer 对于 Python 来说似乎不存在。我还有什么其他选择?

最佳答案

According to this thread it seems like binding to a container is possible in C#.

看来您已经看过 Usage of Blob Trigger Azure Function另一个证据是,实际上,除了C#之外的所有开发语言平台的绑定(bind)都是建立在ExtensionBundle之上的。 .可以看到支持的列表中没有Container类型。

enter image description here

所以,我想你必须在Azure Function方法中使用python blob storage sdk来实现它。或者您可以向 Azure Function 团队提交反馈以改进产品。

关于python - 如何将 Azure Function 绑定(bind)到 Python 中的 blob 容器?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61732802/

39 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com