-
Notifications
You must be signed in to change notification settings - Fork 68
/
Copy path__init__.py
100 lines (90 loc) · 2.71 KB
/
__init__.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License.
from ._abc import TimerRequest, InputStream, Context, Out
from ._eventhub import EventHubEvent
from ._eventgrid import EventGridEvent, EventGridOutputEvent
from ._cosmosdb import Document, DocumentList
from ._http import HttpRequest, HttpResponse
from .decorators import (FunctionApp, Function, Blueprint,
DecoratorApi, DataType, AuthLevel,
Cardinality, AccessRights, HttpMethod,
AsgiFunctionApp, WsgiFunctionApp,
ExternalHttpFunctionApp)
from ._durable_functions import OrchestrationContext, EntityContext
from .decorators.function_app import (FunctionRegister, TriggerApi,
BindingApi, SettingsApi)
from .extension import (ExtensionMeta, FunctionExtensionException,
FuncExtensionBase, AppExtensionBase)
from ._http_wsgi import WsgiMiddleware
from ._http_asgi import AsgiMiddleware
from .kafka import KafkaEvent, KafkaConverter, KafkaTriggerConverter
from .meta import get_binding_registry
from ._queue import QueueMessage
from ._servicebus import ServiceBusMessage
from ._sql import SqlRow, SqlRowList
# Import binding implementations to register them
from . import blob # NoQA
from . import cosmosdb # NoQA
from . import eventgrid # NoQA
from . import eventhub # NoQA
from . import http # NoQA
from . import kafka # NoQA
from . import queue # NoQA
from . import servicebus # NoQA
from . import timer # NoQA
from . import durable_functions # NoQA
from . import sql # NoQA
from . import warmup # NoQA
__all__ = (
# Functions
'get_binding_registry',
# Generics.
'Context',
'Out',
# Binding rich types, sorted alphabetically.
'Document',
'DocumentList',
'EventGridEvent',
'EventGridOutputEvent',
'EventHubEvent',
'HttpRequest',
'HttpResponse',
'InputStream',
'KafkaEvent',
'KafkaConverter',
'KafkaTriggerConverter',
'OrchestrationContext',
'EntityContext',
'QueueMessage',
'ServiceBusMessage',
'SqlRow',
'SqlRowList',
'TimerRequest',
'WarmUpContext',
# Middlewares
'WsgiMiddleware',
'AsgiMiddleware',
# Extensions
'AppExtensionBase',
'FuncExtensionBase',
'ExtensionMeta',
'FunctionExtensionException',
# PyStein implementation
'FunctionApp',
'Function',
'FunctionRegister',
'DecoratorApi',
'TriggerApi',
'BindingApi',
'SettingsApi',
'Blueprint',
'ExternalHttpFunctionApp',
'AsgiFunctionApp',
'WsgiFunctionApp',
'DataType',
'AuthLevel',
'Cardinality',
'AccessRights',
'HttpMethod'
)
__version__ = '1.15.0'