Skip to content

Latest commit

 

History

History
page_typelanguagesproductsurlFragment
sample
python
azure
azure-functions
azure-functions-extensions
azurefunctions-extensions-bindings-blob
extension-blob-samples

Azure Functions Extension Blob library for Python samples

These are code samples that show common scenario operations with the Azure Functions Extension Blob library.

These samples relate to the Azure Storage Blob client library being used as part of a Python Function App. For examples on how to use the Azure Storage Blob client library, please see Azure Storage Blob samples

Prerequisites

Setup

  1. Install Core Tools
  2. Install the Azure Functions Extension Blob library for Python with pip:
pip install azurefunctions-extensions-bindings-blob
  1. Clone or download this sample repository
  2. Open the sample folder in Visual Studio Code or your IDE of choice.

Running the samples

  1. Open a terminal window and cd to the directory that the sample you wish to run is saved in.
  2. Set the environment variables specified in the sample file you wish to run.
  3. Install the required dependencies
pip install -r requirements.txt
  1. Start the Functions runtime
func start
  1. Execute the function by either sending an HTTP request to the local endpoint or uploading a blob to the specified directory, based on the type of function you wish to execute.

Next steps

Visit the SDK-type bindings in Python reference documentation to learn more about how to use SDK-type bindings in a Python Function App and the API reference documentation to learn more about what you can do with the Azure Storage Blob client library.

close