Skip to content
Permalink
Browse files

sample bindings for durable python

  • Loading branch information...
priyaananthasankar committed Jul 23, 2019
1 parent 82c7129 commit 7c33de9962b3d5c02981c819b55fcfe9232dbebc
@@ -2,6 +2,9 @@
__pycache__/
*.py[cod]
*$py.class
obj/
bin/
local.settings.json

# C extensions
*.so
@@ -2,5 +2,6 @@
"python.pythonPath": "env\\Scripts\\python.exe",
"python.linting.pylintEnabled": false,
"python.linting.flake8Enabled": true,
"python.linting.enabled": true
"python.linting.enabled": true,
"python.linting.banditEnabled": false
}
No changes.
@@ -0,0 +1,7 @@
import logging
import azure.functions as func

def main(req: func.HttpRequest, starter: str) -> str:
logging.warn(f"req.params = {req.params}")
logging.warn(f"starter = {starter}")
return func.HttpResponse(status_code=200, body="success")
@@ -0,0 +1,26 @@
{
"bindings": [
{
"authLevel": "anonymous",
"name": "req",
"type": "httpTrigger",
"direction": "in",
"route": "orchestrators/{functionName}",
"methods": [
"post",
"get"
]
},
{
"direction": "out",
"name": "$return",
"type": "http"
},
{
"name": "starter",
"type": "orchestrationClient",
"direction": "in",
"datatype": "string"
}
]
}
@@ -0,0 +1,6 @@
import logging

import azure.functions as func

def main(context: str):
logging.warn(context)
@@ -0,0 +1,12 @@
{
"scriptFile": "__init__.py",
"bindings": [
{
"name": "context",
"type": "orchestrationTrigger",
"direction": "in",
"dataType": "string"
}
],
"disabled": false
}
@@ -0,0 +1,11 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<WarningsAsErrors></WarningsAsErrors>
<DefaultItemExcludes>**</DefaultItemExcludes>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Azure.WebJobs.Extensions.DurableTask" Version="1.8.2" />
<PackageReference Include="Microsoft.Azure.WebJobs.Script.ExtensionsMetadataGenerator" Version="1.1.0" />
</ItemGroup>
</Project>
@@ -0,0 +1,3 @@
{
"version": "2.0"
}
No changes.

0 comments on commit 7c33de9

Please sign in to comment.
You can’t perform that action at this time.