Azure 表存储与使用 Python 的 CosmosDB

ASX*_*ASX 7 azure-table-storage azure-sdk-python azure-cosmosdb

我正在尝试通过 python 访问 Azure 表存储。

按照这里的旧演练:https : //docs.microsoft.com/en-us/azure/cosmos-db/table-storage-how-to-use-python#install-the-azure-storage-sdk-for- Python

但是它专门为Azure 表引用的 Python SDK ( https://github.com/Azure/azure-storage-python ) 已被移动/弃用,以支持 Azure Cosmos DB SDK。

在弃用说明中,他们说要使用这个 SDK:https : //github.com/Azure/azure-cosmosdb-python

在该 SDK 的文档中,他们将您推荐给https://azure.microsoft.com/en-us/develop/python/

在该页面上的表存储和链接中,它会将您引回到第一个链接 (!!)

============

1) 我想要做的就是使用 Python SDK查询传统的Azure 表存储(不是 CosmosDB)

2) 理想情况下,Python SDK 还包括 Azure 表的加密/解密功能。

我错过了什么/那个python SDK是否仍然存在于任何地方?

注意: 我看到https://github.com/Azure/azure-cosmosdb-python/tree/master/azure-cosmosdb-table 但这个 SDK 似乎需要 CosmosDB 部署——它无法连接到传统的 AzureTables。我的理解不正确吗?

谢谢你的尽心帮助。

Lau*_*uel 9

Azure CosmosDB 表 SDKAzure 存储表 SDK。品牌重塑是微软内部重组的一部分,但这是相同的代码和相同的端点,一切都一样。

Storage SDK 是一个大客户端,它被拆分为 Table/Queue/Blog/Files 包,以便将 Table 的所有权交给 CosmosDB 团队。

https://docs.microsoft.com/en-us/azure/cosmos-db/table-support

新的 Azure Cosmos DB Python SDK 是唯一支持 Python 中的 Azure 表存储的 SDK。此 SDK 连接 Azure 表存储和 Azure Cosmos DB 表 API。

您还可以比较代码,您会看到:

(我在 MS 的 Azure SDK for Python 团队工作)

  • 您好,我仍在努力寻找 SDK 的实际文档(即方法/语法、预期行为、输入/输出)。它似乎不存在任何地方。CosmosDB Python SDK 链接指向一些没有真实信息的 github 网站:http://azure.github.io/azure-documentdb-python/api/pydocumentdb.html 任何线索? (2认同)