库斯托数据客户端
azure-kusto-data的Python项目详细描述
fromazure.kusto.data.requestimportKustoClient,KustoConnectionStringBuildercluster="<insert here your cluster name>"client_id="<insert here your AAD application id>"client_secret="<insert here your AAD application key>"authority_id="<insert here your AAD tenet id>"kcsb=KustoConnectionStringBuilder.with_aad_application_key_authentication(cluster,client_id,client_secret,authority_id)client=KustoClient(kcsb)db="Samples"query="StormEvents | take 10"response=client.execute(db,query)forrowinresponse.primary_results[0]:print(row[0]," ",row["EventType"])
kusto python client库提供使用python查询kusto集群的功能。它与python 2.x/3.x兼容并支持 所有数据类型通过熟悉的python db api接口。
例如,可以使用Jupyter Notebooks中的库。 与星团相连, 包括但不限于Azure Databricks。实例。