crossplane-function-pythonic 0.6.3__py3-none-any.whl → 0.7.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- crossplane/pythonic/__about__.py +1 -3
- crossplane/pythonic/auto_ready.py +31 -22
- crossplane/pythonic/command.py +31 -24
- crossplane/pythonic/composite.py +589 -386
- crossplane/pythonic/function.py +61 -40
- crossplane/pythonic/grpc.py +4 -3
- crossplane/pythonic/main.py +7 -3
- crossplane/pythonic/packages.py +27 -19
- crossplane/pythonic/proto/v1/run_function_pb2.pyi +1121 -255
- crossplane/pythonic/proto/v1/run_function_pb2_grpc.py +1 -1
- crossplane/pythonic/proto/v1/run_function_pb2_grpc.pyi +64 -0
- crossplane/pythonic/protobuf.py +346 -196
- crossplane/pythonic/render.py +206 -81
- crossplane/pythonic/version.py +1 -1
- {crossplane_function_pythonic-0.6.3.dist-info → crossplane_function_pythonic-0.7.0.dist-info}/METADATA +4 -4
- crossplane_function_pythonic-0.7.0.dist-info/RECORD +22 -0
- {crossplane_function_pythonic-0.6.3.dist-info → crossplane_function_pythonic-0.7.0.dist-info}/WHEEL +1 -1
- crossplane/pythonic/diff.py +0 -880
- crossplane_function_pythonic-0.6.3.dist-info/RECORD +0 -22
- {crossplane_function_pythonic-0.6.3.dist-info → crossplane_function_pythonic-0.7.0.dist-info}/entry_points.txt +0 -0
|
@@ -5,7 +5,7 @@ import warnings
|
|
|
5
5
|
|
|
6
6
|
from crossplane.pythonic.proto.v1 import run_function_pb2 as crossplane_dot_pythonic_dot_proto_dot_v1_dot_run__function__pb2
|
|
7
7
|
|
|
8
|
-
GRPC_GENERATED_VERSION = '1.
|
|
8
|
+
GRPC_GENERATED_VERSION = '1.85.1'
|
|
9
9
|
GRPC_VERSION = grpc.__version__
|
|
10
10
|
_version_not_supported = False
|
|
11
11
|
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"""
|
|
2
|
+
@generated by mypy-protobuf. Do not edit manually!
|
|
3
|
+
isort:skip_file
|
|
4
|
+
This package defines the RPC for both composition and operation functions.
|
|
5
|
+
Only composition functions are part of the 'apiextensions' API group. In
|
|
6
|
+
retrospect this package should've been crossplane.proto.fn.v1, but it's too
|
|
7
|
+
late to change it now.
|
|
8
|
+
|
|
9
|
+
buf:lint:ignore PACKAGE_DIRECTORY_MATCH
|
|
10
|
+
"""
|
|
11
|
+
|
|
12
|
+
from collections import abc as _abc
|
|
13
|
+
from crossplane.pythonic.proto.v1 import run_function_pb2 as _run_function_pb2
|
|
14
|
+
from grpc import aio as _aio
|
|
15
|
+
import abc as _abc_1
|
|
16
|
+
import grpc as _grpc
|
|
17
|
+
import sys
|
|
18
|
+
import typing as _typing
|
|
19
|
+
|
|
20
|
+
if sys.version_info >= (3, 11):
|
|
21
|
+
from typing import Self as _Self
|
|
22
|
+
else:
|
|
23
|
+
from typing_extensions import Self as _Self
|
|
24
|
+
|
|
25
|
+
_T = _typing.TypeVar("_T")
|
|
26
|
+
|
|
27
|
+
class _MaybeAsyncIterator(_abc.AsyncIterator[_T], _abc.Iterator[_T], metaclass=_abc_1.ABCMeta): ...
|
|
28
|
+
|
|
29
|
+
class _ServicerContext(_grpc.ServicerContext, _aio.ServicerContext): # type: ignore[misc, type-arg]
|
|
30
|
+
...
|
|
31
|
+
|
|
32
|
+
GRPC_GENERATED_VERSION: str
|
|
33
|
+
GRPC_VERSION: str
|
|
34
|
+
|
|
35
|
+
class FunctionRunnerServiceStub:
|
|
36
|
+
"""A FunctionRunnerService is a function."""
|
|
37
|
+
|
|
38
|
+
@_typing.overload
|
|
39
|
+
def __new__(cls, channel: _grpc.Channel) -> _Self: ...
|
|
40
|
+
@_typing.overload
|
|
41
|
+
def __new__(cls, channel: _aio.Channel) -> FunctionRunnerServiceAsyncStub: ...
|
|
42
|
+
RunFunction: _grpc.UnaryUnaryMultiCallable[_run_function_pb2.RunFunctionRequest, _run_function_pb2.RunFunctionResponse]
|
|
43
|
+
"""RunFunction runs the function."""
|
|
44
|
+
|
|
45
|
+
@_typing.type_check_only
|
|
46
|
+
class FunctionRunnerServiceAsyncStub(FunctionRunnerServiceStub):
|
|
47
|
+
"""A FunctionRunnerService is a function."""
|
|
48
|
+
|
|
49
|
+
def __init__(self, channel: _aio.Channel) -> None: ...
|
|
50
|
+
RunFunction: _aio.UnaryUnaryMultiCallable[_run_function_pb2.RunFunctionRequest, _run_function_pb2.RunFunctionResponse] # type: ignore[assignment]
|
|
51
|
+
"""RunFunction runs the function."""
|
|
52
|
+
|
|
53
|
+
class FunctionRunnerServiceServicer(metaclass=_abc_1.ABCMeta):
|
|
54
|
+
"""A FunctionRunnerService is a function."""
|
|
55
|
+
|
|
56
|
+
@_abc_1.abstractmethod
|
|
57
|
+
def RunFunction(
|
|
58
|
+
self,
|
|
59
|
+
request: _run_function_pb2.RunFunctionRequest,
|
|
60
|
+
context: _ServicerContext,
|
|
61
|
+
) -> _typing.Union[_run_function_pb2.RunFunctionResponse, _abc.Awaitable[_run_function_pb2.RunFunctionResponse]]:
|
|
62
|
+
"""RunFunction runs the function."""
|
|
63
|
+
|
|
64
|
+
def add_FunctionRunnerServiceServicer_to_server(servicer: FunctionRunnerServiceServicer, server: _typing.Union[_grpc.Server, _aio.Server]) -> None: ...
|