当前位置: 首页 > 软件库 > 云计算 > Serverless 系统 >

azure-functions-python-samples

Azure Functions Python Sample Codes
授权协议 MIT License
开发语言 JavaScript
所属分类 云计算、 Serverless 系统
软件类型 开源软件
地区 不详
投 递 者 万铭
操作系统 跨平台
开源组织
适用人群 未知
 软件概览

azure-functions-python-samples

Azure Functions Python Sample Codes

Table of Contents

Python functions on Azure Functions 2.X (Public Preview)

This is a collection of Python function samples on Azure Functions 2.X. For a comprehensive development and debugging experience, use the Azure Functions Core Tools or VS Code extension.

Samples

Sample Description Trigger In Bindings Out Bindings
cosmosdb-trigger-cosmosdb-in-binding Azure Functions Blob Storage Trigger Python Sample. The function gets image data from Azure Blob Trigger, gets tags for the image with Computer Vision API (Azure Cognitive Services), and store the tags into Azure Cosmos DB by leveraging Cosmos DB output binding Blob Storage NONE CosmosDB
cosmos-trigger-cosmodb-output-binding Azure Functions Cosmos DB Trigger Python Sample. The function gets document data from Azure Cosmos DB Trigger, ROT13 encodes obtained clear text, and store encoded data into Azure Cosmos DB by using Cosmos DB output binding CosmosDB NONE CosmosDB
queue-trigger-blob-in-out-binding Azure Functions Queue Trigger Python Sample. The function gets a file name from queue message, reads a blob file named the file name using Blob Input Binding, then ROT13 encodes the obtained clear text, and finally stores it into Azure Blob Storage using Blob Output Binding Queue Storage Blob Storage Blob Storage
timer-trigger-cosmos-output-binding Azure Functions Timer Trigger Python Sample. The function gets blog RSS feed and store the results into CosmosDB using Cosmos DB output binding Timer NONE CosmosDB
http-trigger-blob-sas-token Azure Function HTTP Trigger Python Sample that returns a SAS token for Azure Storage for the specified container and blob name HTTP NONE HTTP
http-trigger-dump-request Azure Function HTTP Trigger Python Sample that returns request dump info with JSON format HTTP NONE HTTP
http-trigger-onnx-model This function demonstrates running an inference using an ONNX model. It is triggered by an HTTP request. HTTP NONE HTTP
blob-trigger-watermark-blob-out-binding Azure Function Python Sample that watermarks an image. This function triggers on an input blob (image) and adds a watermark by calling into the Pillow library. The resulting composite image is then written back to blob storage using a blob output binding. Blob Storage Blob Storage Blob Storage
sbqueue-trigger-sbqueue-out-binding Azure Functions Service Bus Queue Trigger Python Sample. The function demonstrates reading from a Service Bus queue and placing a message into an output Service Bus queue. Service Bus Queue None Service Bus Queue

Documents


Python functions on Azure Functions 1.X (Experimental)

IMPORTANT

  • By default, function apps created in the Azure portal are set to version 2.x. When possible, you should use this runtime version, where new feature investments are being made. Please see this for more detail on Azure Function runtime versions and supported languages.
  • Please consider to use 2.X Python funciton as Python function in Azure function 1.X is experimental and new feature investments won't be added to 1.X Python function.
Sample Description Trigger In Bindings Out Bindings
cosmosdb-trigger-cosmosdb-in-binding Azure Functions CosmosDB Trigger Python Sample. The function simply read & dump documets which are added to or changed in Azure Cosmos DB by leveraging CosmosDB input binding CosmosDB CosmosDB NONE
blob-trigger-blob-in-out-bindings Azure Functions Blob Trigger Python Sample that simply read file from Azure Blob Storage and write an output file to Azure Blob Storage using Blob Storage input and output bindings respectively Blob Storage Blob Storage Blob Storage
queue-trigger-blob-in-bindings Azure Functions Queue Trigger Python Sample that obtain a blog file name from Queue as a queue message and read a file named the blog file name in Azure Blob Storage using Blob Input Binding Queue Storage Blob Storage NONE
queue-trigger-rssfeed-crawler Azure Functions Queue Trigger Python Sample that get RSS feed URL from Queue and dump all items that obtained from RSS feed Queue Storage NONE NONE
queue-trigger-tagging-images Azure Functions Queue Trigger Python Sample that tags images stored on Azure Blob Storage by using Cognitive Vision API Queue Storage NONE NONE
queue-trigger-sendgrid Azure Functions Queue Trigger Python Sample that send email by using SendGrid bindings Queue Storage NONE SendGrid
queue-trigger-cosmosdb-in-binding Azure Functions Queue Trigger that obtains a document ID from Queue as a queue message, select a document object from Cosmos DB by using the document ID, and finally dump the object Queue Storage CosmosDB NONE
http-trigger-dump-request Azure Functions HTTP Trigger Python Sample that get and dump HTTPS request info that the trigger receives HTTP NONE HTTP
blob-sas-token-generator Azure Function HTTP Trigger Python Sample that returns a SAS token for Azure Storage for the specified container and blob name HTTP NONE HTTP
timer-trigger-azuresearch-index-monitoring Azure Functions Timer Trigger Python Sample that get Azure Search index statistics via API and store the results into CosmosDB Timer NONE CosmosDB
eventhub-trigger-table-out-bindings Azure Functions EventHub Trigger Python Sample that read message (device info) in EventHub that sent from sender and write an output record to Azure Table Storage using Table bindings EventHub NONE Table Storage
proxies-simple-condition-matches Azure Functions Python Sample that re-write dynamic and static page url using Azure Functions Proxies HTTP NONE HTTP

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/yokawasa/azure-functions-python-samples

 相关资料
  • Azure Functions Serverless Plugin This plugin enables Azure Functions support within the Serverless Framework. Quickstart Pre-requisites Node.js 8.x or above Serverless CLI v1.9.0+. You can run npm i

  • Azure Functions University Welcome to Azure Functions University! �� This repository contains everything you need to learn about Azure Functions < ⚡ > and complements the learning videos made by Marc

  • 我正在尝试创建一些无服务器体系结构,并且担心在 blob 触发器上使用 Azure 函数。 我有Azure Function 1,它是一个队列触发器,它获取一条消息以运行对API的请求,该API生成文件并将其放置在blob存储中,该函数不等待响应。然后我想创建一个Azure Function 2,将该blob/链接发送到第二个地方。但是我正在阅读有关Blob触发器不能保证为每个blob触发的信息,

  • 我在ASP.NETWeb API应用程序中使用了一些类库,用于处理我所有的后端内容,例如对AzureSQLDatabase、Cosmos DB等多个数据库的CRUD操作。 我不想重新发明轮子,并能够在我在Visual Studio 2017中创建的新Azure函数中使用它们。我所有的存储库方法都使用一个接口。那么,我将如何在我的新Azure函数中实现依赖注入呢? 我没有看到对DI的任何支持,但我有

  • 我向Azure IoTHub发送数据。然后由IoTHub EventHub函数检索和处理此数据。 此函数检索数据并将数据插入Azure Cosmos数据库。 在 IoTHub 事件中心函数中,必须先声明 Cosmos 数据库和 Cosmos 集合,然后才能运行该函数。 问题是我想使用动态集合名称。此名称取决于发送到 IoTHub 的数据。这可能吗?是否可以在函数运行时声明集合名称? 使用下面的脚本

  • 我有一个java azure函数,它运行包azure functions maven plugin version 1.3,试图将包升级到任何1.4或更高版本。当我尝试打包该函数时,我收到以下错误: 无法执行目标com。微软azure:azure函数maven插件:1.12.0:project azure函数原型:com上的包(包函数)。谷歌。格森。流动MalformedJsonException