• This repository has been archived on 14/Oct/2023
  • Stars
    star
    391
  • Rank 110,003 (Top 3 %)
  • Language
    Python
  • License
    MIT License
  • Created almost 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Azure Functions Python Sample Codes. NOTE: The project, hosted in a repository, is no longer actively maintained by its creators or contributors. There won't be any further updates, bug fixes, or support from the original developers in the project.

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

More Repositories

1

kubectl-plugin-ssh-jump

A kubectl plugin to access nodes or remote services using a SSH jump Pod
Shell
172
star
2

databricks-notebooks

Collection of Sample Databricks Spark Notebooks ( mostly for Azure Databricks )
Jupyter Notebook
80
star
3

envoy-proxy-demos

Set of Envoy Proxy feature demos (Envoy v2 API supported)
Python
76
star
4

action-setup-kube-tools

Github Action that setup Kubernetes tools (kubectl, kustomize, helm, kubeconform, conftest, yq, rancher, tilt, skaffold) very fast and cache them on the runner. Please [✩Star] if you're using it!
TypeScript
74
star
5

fluent-plugin-azure-loganalytics

Azure Log Analytics output plugin for Fluentd
Ruby
53
star
6

kubectl-plugin-socks5-proxy

This is a kubectl plugin that creates a local SOCKS5 proxy through which you can access to pods/services in a Kubernetes cluster. Please [✩Star] if you're using it!
Shell
52
star
7

logstash-output-azure_loganalytics

Azure Log Analytics output plugin for Logstash
Ruby
28
star
8

azure-container-labs

Azure Container Labs - AKS, ACR, ACI, Web App for Containers, etc under frequent update
Shell
27
star
9

action-sqlcheck

A GitHub Action that automatically identifies anti-patterns in SQL queries using sqlcheck when PR is requested. Please [✩Star] if you're using it!
Shell
24
star
10

scrapy-azuresearch-crawler-samples

Scrapy as a Web Crawler for Azure Search Samples
Python
21
star
11

mod_log_slow

Apache module for logging of slow requests handling
C
15
star
12

istio-sandbox

Istio sandbox
Shell
14
star
13

azure-shell

[Unofficial] interactive Azure CLI 2.0 command line interface
Python
13
star
14

kubectl-tips

Tips on Kubernetes cluster management using kubectl command
11
star
15

azure-search-ta

Azure Search Test Analyzer API Client Tool
Python
11
star
16

azure-serverless-video-analytics

Demo Application of Serverless Video Analytics Workflow using Azure Functions, Logic App, and other multiple Azure Services
JavaScript
11
star
17

code-server-azure-webapp

Visual Studio Code Server on Azure Web App for Containers
Shell
10
star
18

azure-log-analytics-data-collector

Azure Log Analytics Data Collector API Client libraries
Ruby
9
star
19

azure-ssh-config

A command to generate SSH config file from Azure ARM VM inventry in subscription
Python
9
star
20

vs_httpd

Very Simple HTTP Server that can deliver static files very fast.
C
8
star
21

vscode-translator-voice

VS Code extension for multi-language text translation and TTS (text-to-speech) using Azure Cognitive Services. Please [✩Star] if you're using it!
TypeScript
7
star
22

azure-k8s-daas-ticketmonster-demo

Ticket-Monster HA Cluster Demo using Azure Kubernetes Services (AKS) and Managed PostgreSQL
Shell
6
star
23

kube-configmap-exporter

Kubernetes ConfigMap Exporter
Shell
6
star
24

azure-log-analytics-data-collector-python

Azure Log Analytics Data Collector API Client for Python
Python
6
star
25

fluent-plugin-documentdb

Azure DocumentDB output plugin for Fluentd
Ruby
5
star
26

vscode-jwt-debugger

VS Code extension for decoding JWT tokens - VS Code version of jwt.io debugger
TypeScript
5
star
27

action-setup-ecctl

A GitHub action that install a specific version of ecctl (Elastic Cloud control tool) and cache it on the runner. Please [✩Star] if you're using it!
TypeScript
5
star
28

vscode-jaconv

VS Code extension that performs half-width (“Hankaku”) - full-width (“Zenkaku”) conversion for Japanese “kana” and ascii
TypeScript
5
star
29

awsping

A command line tools that reports median latency to AWS regions (a fork of gcping)
Go
4
star
30

TwitterEventHubFeed

Stream feed from Twitter to EventHub
Python
4
star
31

fluent-plugin-azurefunctions

Azure Functions (HTTP Trigger) output plugin for Fluentd
Ruby
4
star
32

software-design-github-actions-samples

「Software Design 2022年2月号 第2特集 GitHub Actionsで簡単・快適CI/CD」の公開サンプルコード
HCL
4
star
33

ci-demo-rails-app

Rails app for CI demo
Ruby
3
star
34

any

any files
C
3
star
35

facetag-services

[Alpha version] Full serverless face tagging services that allow you to build photo sharing services where you can find your registered persons among uploaded photos easily.
Python
3
star
36

logstash-output-documentdb

logstash-output-documentdb is a logstash plugin to output to Azure DocumentDB
Ruby
3
star
37

awk_httpd

GNU AWK HTTP Server Scripts
Awk
3
star
38

azure-containers-mean-stack-demo

MEAN Stack App Conatiner Demos using Azure Container related services and PaaS
Shell
3
star
39

docker-aws-shell

Docker image for aws-shell
3
star
40

mod_interval_limit

Apache module that provide rule-based interval counter limits of connections per client
C
3
star
41

azure-functions-labs

Archived: Azure Functions hands-on labs (Japanese Version)
C#
2
star
42

kinesis-consumer

Sample KCL 2.X consumer for AWS Kinesis streams. The consumer is configurable via environmental variables and can be containerized (dockerfile for it is provided), which can be run anywhere
Java
2
star
43

mysql-plugin-is-mallinfo

MySQL Information Schema plugin that provide information about statistics for dynamic memory allocation of mysqld.
Shell
2
star
44

mod_akismet

Apache module that enables you to detect spam comments before your application handler by Akismet anti-comment-spam service
C
2
star
45

fluent-plugin-azuresearch

Azure Search Output Plugin for Fluentd
Ruby
2
star
46

jsoncat

Pretty Simple JSON Formatter Command
Shell
2
star
47

dot-tools

A collection of utility tools that I use in my daily operations
Shell
2
star
48

mysql-plugin-is-locks

MySQL Information Schema plugin that provide information about table locks
Shell
2
star
49

azure-samples

Personal Azure Sample Code Repository
C#
2
star
50

aksworkshop

The Azure Kubernetes Workshop ( https://aksworkshop.io ) Japanease Version 日本語版
2
star
51

mysql-cipher-functions

MySQL UDFs that provide encryption/decryption functions.
Shell
2
star
52

decode2017

DI08 Azure Search session material used in Microsoft de:code 2017
C#
2
star
53

azure-webapps-logging-original-clientip

Step-by-step configuration guide - How to log the original Client IP in Azure Web Apps (IIS) by using F5 X-Forwarded-For ISAPI filter
Shell
2
star
54

terraform-state-backends

Terraform backends config for state management PoC project
Shell
1
star
55

mod_count_memcookie

Apache module for counting user page view with cookies and memcached
C
1
star
56

kinesis-bulk-loader

A Golang tool that put bulk messages in parallel to AWS Kinesis Data Stream
Go
1
star
57

azure-media-services-php-samples

Azure Media Services PHP Samples
PHP
1
star
58

kubernetes-client-go-samples

A collection of Kubernetes and Istio client-go samples
Go
1
star
59

azure-log-analytics-data-collector-php

Azure Log Analytics Data Collector API Client for PHP
PHP
1
star
60

logstash-output-azuresearch

Azure Search output plugin for Logstash
Ruby
1
star
61

ci-demo-django-app

Python
1
star
62

qna_luis_bot

QnA Bot Application using QnAMaker, LUIS, and Microsoft Bot Framework
C#
1
star
63

kinesis-get-shardid

A Golang tool that get a shard ID to be assigned in AWS Kinesis Data Stream from a partition key
Go
1
star
64

azure-search-qna-demo

Q and A Knowledge Base Search Application Demo using Azure Search
Shell
1
star
65

decode2016

This repository contains source codes used for Azure Search demonstration during de:code 2016 DEV-018 session
Shell
1
star
66

event-gateway-on-kubernetes-azure

How to guide on running Serverless.com's Event Gateway on Kubernetes on Azure
Shell
1
star
67

sqs-bulk-loader

A Golang tool that sends bulk messages in parallel to Amazon SQS
Go
1
star
68

angular4-quickstart

Angular 4 Apps Quickstart Configuration that deploys an app using angular-cli and Docker Container
Shell
1
star
69

github-sandbox

This is my personal GitHub sandbox repository, and its content is primarily based on past GitHub trainings I've done for GitHub newbies
1
star