fastgrpc3 0.1.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.
Files changed (67) hide show
  1. fastgrpc3/__init__.py +75 -0
  2. fastgrpc3/__main__.py +7 -0
  3. fastgrpc3/_proto/__init__.py +1 -0
  4. fastgrpc3/_proto/_descriptor.py +130 -0
  5. fastgrpc3/_proto/google/__init__.py +1 -0
  6. fastgrpc3/_proto/google/rpc/__init__.py +1 -0
  7. fastgrpc3/_proto/google/rpc/code_models.py +155 -0
  8. fastgrpc3/_proto/google/rpc/error_details_models.py +332 -0
  9. fastgrpc3/_proto/google/rpc/status_models.py +33 -0
  10. fastgrpc3/_proto/grpc/__init__.py +1 -0
  11. fastgrpc3/_proto/grpc/health/__init__.py +1 -0
  12. fastgrpc3/_proto/grpc/health/v1/__init__.py +1 -0
  13. fastgrpc3/_proto/grpc/health/v1/health_models.py +45 -0
  14. fastgrpc3/_proto/grpc/health/v1/health_service.py +62 -0
  15. fastgrpc3/_proto/grpc/reflection/__init__.py +1 -0
  16. fastgrpc3/_proto/grpc/reflection/v1/__init__.py +1 -0
  17. fastgrpc3/_proto/grpc/reflection/v1/reflection_models.py +145 -0
  18. fastgrpc3/_proto/grpc/reflection/v1/reflection_service.py +37 -0
  19. fastgrpc3/_proto/grpc/reflection/v1alpha/__init__.py +1 -0
  20. fastgrpc3/_proto/grpc/reflection/v1alpha/reflection_models.py +147 -0
  21. fastgrpc3/_proto/grpc/reflection/v1alpha/reflection_service.py +37 -0
  22. fastgrpc3/api/__init__.py +0 -0
  23. fastgrpc3/api/app.py +452 -0
  24. fastgrpc3/api/client.py +360 -0
  25. fastgrpc3/api/config.py +110 -0
  26. fastgrpc3/api/context.py +63 -0
  27. fastgrpc3/api/deps.py +314 -0
  28. fastgrpc3/api/errors.py +144 -0
  29. fastgrpc3/api/metadata.py +78 -0
  30. fastgrpc3/api/security.py +107 -0
  31. fastgrpc3/api/service.py +200 -0
  32. fastgrpc3/cli.py +299 -0
  33. fastgrpc3/codegen/__init__.py +5 -0
  34. fastgrpc3/codegen/generate.py +144 -0
  35. fastgrpc3/codegen/models.py +386 -0
  36. fastgrpc3/codegen/naming.py +97 -0
  37. fastgrpc3/codegen/source.py +165 -0
  38. fastgrpc3/ops/__init__.py +0 -0
  39. fastgrpc3/ops/docs.py +348 -0
  40. fastgrpc3/ops/health.py +88 -0
  41. fastgrpc3/ops/openapi.py +198 -0
  42. fastgrpc3/ops/reflection.py +90 -0
  43. fastgrpc3/py.typed +0 -0
  44. fastgrpc3/runtime/__init__.py +0 -0
  45. fastgrpc3/runtime/deadline.py +31 -0
  46. fastgrpc3/runtime/dispatch.py +261 -0
  47. fastgrpc3/runtime/workers.py +92 -0
  48. fastgrpc3/schema/__init__.py +20 -0
  49. fastgrpc3/schema/annotations.py +248 -0
  50. fastgrpc3/schema/breaking.py +184 -0
  51. fastgrpc3/schema/codec.py +242 -0
  52. fastgrpc3/schema/lock.py +224 -0
  53. fastgrpc3/schema/registry.py +393 -0
  54. fastgrpc3/schema/render.py +286 -0
  55. fastgrpc3/schema/schema.py +70 -0
  56. fastgrpc3/schema/verify.py +93 -0
  57. fastgrpc3/testing.py +52 -0
  58. fastgrpc3/transport/__init__.py +50 -0
  59. fastgrpc3/transport/base.py +68 -0
  60. fastgrpc3/transport/grpc_aio.py +86 -0
  61. fastgrpc3/transport/tonic.py +291 -0
  62. fastgrpc3/types.py +294 -0
  63. fastgrpc3-0.1.0.dist-info/METADATA +214 -0
  64. fastgrpc3-0.1.0.dist-info/RECORD +67 -0
  65. fastgrpc3-0.1.0.dist-info/WHEEL +4 -0
  66. fastgrpc3-0.1.0.dist-info/entry_points.txt +3 -0
  67. fastgrpc3-0.1.0.dist-info/licenses/LICENSE +21 -0
fastgrpc3/__init__.py ADDED
@@ -0,0 +1,75 @@
1
+ """fastgrpc3: a FastAPI-like gRPC framework for Python, powered by protoruf."""
2
+
3
+ from fastgrpc3.api.app import GrpcApp
4
+ from fastgrpc3.api.client import Channel, GrpcClient
5
+ from fastgrpc3.api.config import Compression, Keepalive, RetryPolicy
6
+ from fastgrpc3.api.context import Context
7
+ from fastgrpc3.api.deps import Depends, blocking, non_blocking
8
+ from fastgrpc3.api.errors import (
9
+ BadRequest,
10
+ ErrorInfo,
11
+ FieldViolation,
12
+ GrpcError,
13
+ StatusCode,
14
+ register_detail,
15
+ )
16
+ from fastgrpc3.api.metadata import Metadata
17
+ from fastgrpc3.api.security import MTLS, TLS, BearerToken, Insecure
18
+ from fastgrpc3.api.service import GrpcService
19
+ from fastgrpc3.runtime.dispatch import CallNext
20
+ from fastgrpc3.schema import (
21
+ Lock,
22
+ LockError,
23
+ MethodDef,
24
+ Schema,
25
+ SchemaError,
26
+ SchemaRegistry,
27
+ ServiceDef,
28
+ )
29
+ from fastgrpc3.transport import Transport, TransportCapabilities, available_transports
30
+ from fastgrpc3.types import ProtoEnum, ProtoField, ProtoModel, field, key, proto_enum
31
+
32
+ __version__ = "0.1.0"
33
+
34
+ __all__ = [
35
+ "MTLS",
36
+ "TLS",
37
+ "BadRequest",
38
+ "BearerToken",
39
+ "CallNext",
40
+ "Channel",
41
+ "Compression",
42
+ "Context",
43
+ "Depends",
44
+ "ErrorInfo",
45
+ "FieldViolation",
46
+ "GrpcApp",
47
+ "GrpcClient",
48
+ "GrpcError",
49
+ "GrpcService",
50
+ "Insecure",
51
+ "Keepalive",
52
+ "Lock",
53
+ "LockError",
54
+ "Metadata",
55
+ "MethodDef",
56
+ "ProtoEnum",
57
+ "ProtoField",
58
+ "ProtoModel",
59
+ "RetryPolicy",
60
+ "Schema",
61
+ "SchemaError",
62
+ "SchemaRegistry",
63
+ "ServiceDef",
64
+ "StatusCode",
65
+ "Transport",
66
+ "TransportCapabilities",
67
+ "__version__",
68
+ "available_transports",
69
+ "blocking",
70
+ "field",
71
+ "key",
72
+ "non_blocking",
73
+ "proto_enum",
74
+ "register_detail",
75
+ ]
fastgrpc3/__main__.py ADDED
@@ -0,0 +1,7 @@
1
+ """`python -m fastgrpc3`: same as the `fastgrpc3` command."""
2
+
3
+ import sys
4
+
5
+ from fastgrpc3.cli import main
6
+
7
+ sys.exit(main())
@@ -0,0 +1 @@
1
+ # Generated by fastgrpc3: do not edit.
@@ -0,0 +1,130 @@
1
+ # Generated by fastgrpc3: do not edit.
2
+ """Compiled descriptor of the generated modules (without source info)."""
3
+
4
+ DESCRIPTOR = (
5
+ b"\x0a\xbf\x03\x0a\x15google/rpc/code.proto\x12\x0agoogle.rpc*\xb7\x02\x0a\x04Code\x12\x06\x0a"
6
+ b"\x02OK\x10\x00\x12\x0d\x0a\x09CANCELLED\x10\x01\x12\x0b\x0a\x07UNKNOWN\x10\x02\x12\x14\x0a"
7
+ b"\x10INVALID_ARGUMENT\x10\x03\x12\x15\x0a\x11DEADLINE_EXCEEDED\x10\x04\x12\x0d\x0a\x09NOT_FOUN"
8
+ b"D\x10\x05\x12\x12\x0a\x0eALREADY_EXISTS\x10\x06\x12\x15\x0a\x11PERMISSION_DENIED\x10\x07\x12"
9
+ b"\x13\x0a\x0fUNAUTHENTICATED\x10\x10\x12\x16\x0a\x12RESOURCE_EXHAUSTED\x10\x08\x12\x17\x0a\x13"
10
+ b"FAILED_PRECONDITION\x10\x09\x12\x0b\x0a\x07ABORTED\x10\x0a\x12\x10\x0a\x0cOUT_OF_RANGE\x10"
11
+ b"\x0b\x12\x11\x0a\x0dUNIMPLEMENTED\x10\x0c\x12\x0c\x0a\x08INTERNAL\x10\x0d\x12\x0f\x0a\x0bUNAV"
12
+ b"AILABLE\x10\x0e\x12\x0d\x0a\x09DATA_LOSS\x10\x0fBX\x0a\x0ecom.google.rpcB\x09CodeProtoP\x01Z3"
13
+ b"google.golang.org/genproto/googleapis/rpc/code;code\xa2\x02\x03RPCb\x06proto3\x0a\xfb\x01\x0a"
14
+ b"\x1egoogle/protobuf/duration.proto\x12\x0fgoogle.protobuf\x22:\x0a\x08Duration\x12\x18\x0a"
15
+ b"\x07seconds\x18\x01 \x01(\x03R\x07seconds\x12\x14\x0a\x05nanos\x18\x02 \x01(\x05R\x05nanosB"
16
+ b"\x83\x01\x0a\x13com.google.protobufB\x0dDurationProtoP\x01Z1google.golang.org/protobuf/types/"
17
+ b"known/durationpb\xf8\x01\x01\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06pro"
18
+ b"to3\x0a\x8c\x0f\x0a\x1egoogle/rpc/error_details.proto\x12\x0agoogle.rpc\x1a\x1egoogle/protobu"
19
+ b"f/duration.proto\x22\xb9\x01\x0a\x09ErrorInfo\x12\x16\x0a\x06reason\x18\x01 \x01(\x09R\x06rea"
20
+ b"son\x12\x16\x0a\x06domain\x18\x02 \x01(\x09R\x06domain\x12?\x0a\x08metadata\x18\x03 \x03(\x0b"
21
+ b"2#.google.rpc.ErrorInfo.MetadataEntryR\x08metadata\x1a;\x0a\x0dMetadataEntry\x12\x10\x0a\x03k"
22
+ b"ey\x18\x01 \x01(\x09R\x03key\x12\x14\x0a\x05value\x18\x02 \x01(\x09R\x05value:\x028\x01\x22G"
23
+ b"\x0a\x09RetryInfo\x12:\x0a\x0bretry_delay\x18\x01 \x01(\x0b2\x19.google.protobuf.DurationR"
24
+ b"\x0aretryDelay\x22H\x0a\x09DebugInfo\x12#\x0a\x0dstack_entries\x18\x01 \x03(\x09R\x0cstackEnt"
25
+ b"ries\x12\x16\x0a\x06detail\x18\x02 \x01(\x09R\x06detail\x22\x8e\x04\x0a\x0cQuotaFailure\x12B"
26
+ b"\x0a\x0aviolations\x18\x01 \x03(\x0b2\x22.google.rpc.QuotaFailure.ViolationR\x0aviolations"
27
+ b"\x1a\xb9\x03\x0a\x09Violation\x12\x18\x0a\x07subject\x18\x01 \x01(\x09R\x07subject\x12 \x0a"
28
+ b"\x0bdescription\x18\x02 \x01(\x09R\x0bdescription\x12\x1f\x0a\x0bapi_service\x18\x03 \x01("
29
+ b"\x09R\x0aapiService\x12!\x0a\x0cquota_metric\x18\x04 \x01(\x09R\x0bquotaMetric\x12\x19\x0a"
30
+ b"\x08quota_id\x18\x05 \x01(\x09R\x07quotaId\x12b\x0a\x10quota_dimensions\x18\x06 \x03(\x0b27.g"
31
+ b"oogle.rpc.QuotaFailure.Violation.QuotaDimensionsEntryR\x0fquotaDimensions\x12\x1f\x0a\x0bquot"
32
+ b"a_value\x18\x07 \x01(\x03R\x0aquotaValue\x121\x0a\x12future_quota_value\x18\x08 \x01(\x03H"
33
+ b"\x00R\x10futureQuotaValue\x88\x01\x01\x1aB\x0a\x14QuotaDimensionsEntry\x12\x10\x0a\x03key\x18"
34
+ b"\x01 \x01(\x09R\x03key\x12\x14\x0a\x05value\x18\x02 \x01(\x09R\x05value:\x028\x01B\x15\x0a"
35
+ b"\x13_future_quota_value\x22\xbd\x01\x0a\x13PreconditionFailure\x12I\x0a\x0aviolations\x18\x01"
36
+ b" \x03(\x0b2).google.rpc.PreconditionFailure.ViolationR\x0aviolations\x1a[\x0a\x09Violation"
37
+ b"\x12\x12\x0a\x04type\x18\x01 \x01(\x09R\x04type\x12\x18\x0a\x07subject\x18\x02 \x01(\x09R\x07"
38
+ b"subject\x12 \x0a\x0bdescription\x18\x03 \x01(\x09R\x0bdescription\x22\x8c\x02\x0a\x0aBadReque"
39
+ b"st\x12P\x0a\x10field_violations\x18\x01 \x03(\x0b2%.google.rpc.BadRequest.FieldViolationR\x0f"
40
+ b"fieldViolations\x1a\xab\x01\x0a\x0eFieldViolation\x12\x14\x0a\x05field\x18\x01 \x01(\x09R\x05"
41
+ b"field\x12 \x0a\x0bdescription\x18\x02 \x01(\x09R\x0bdescription\x12\x16\x0a\x06reason\x18\x03"
42
+ b" \x01(\x09R\x06reason\x12I\x0a\x11localized_message\x18\x04 \x01(\x0b2\x1c.google.rpc.Localiz"
43
+ b"edMessageR\x10localizedMessage\x22O\x0a\x0bRequestInfo\x12\x1d\x0a\x0arequest_id\x18\x01 \x01"
44
+ b"(\x09R\x09requestId\x12!\x0a\x0cserving_data\x18\x02 \x01(\x09R\x0bservingData\x22\x90\x01"
45
+ b"\x0a\x0cResourceInfo\x12#\x0a\x0dresource_type\x18\x01 \x01(\x09R\x0cresourceType\x12#\x0a"
46
+ b"\x0dresource_name\x18\x02 \x01(\x09R\x0cresourceName\x12\x14\x0a\x05owner\x18\x03 \x01(\x09R"
47
+ b"\x05owner\x12 \x0a\x0bdescription\x18\x04 \x01(\x09R\x0bdescription\x22o\x0a\x04Help\x12+\x0a"
48
+ b"\x05links\x18\x01 \x03(\x0b2\x15.google.rpc.Help.LinkR\x05links\x1a:\x0a\x04Link\x12 \x0a\x0b"
49
+ b"description\x18\x01 \x01(\x09R\x0bdescription\x12\x10\x0a\x03url\x18\x02 \x01(\x09R\x03url"
50
+ b"\x22D\x0a\x10LocalizedMessage\x12\x16\x0a\x06locale\x18\x01 \x01(\x09R\x06locale\x12\x18\x0a"
51
+ b"\x07message\x18\x02 \x01(\x09R\x07messageBl\x0a\x0ecom.google.rpcB\x11ErrorDetailsProtoP\x01Z"
52
+ b"?google.golang.org/genproto/googleapis/rpc/errdetails;errdetails\xa2\x02\x03RPCb\x06proto3"
53
+ b"\x0a\xe4\x01\x0a\x19google/protobuf/any.proto\x12\x0fgoogle.protobuf\x226\x0a\x03Any\x12\x19"
54
+ b"\x0a\x08type_url\x18\x01 \x01(\x09R\x07typeUrl\x12\x14\x0a\x05value\x18\x02 \x01(\x0cR\x05val"
55
+ b"ueBv\x0a\x13com.google.protobufB\x08AnyProtoP\x01Z,google.golang.org/protobuf/types/known/any"
56
+ b"pb\xa2\x02\x03GPB\xaa\x02\x1eGoogle.Protobuf.WellKnownTypesb\x06proto3\x0a\x90\x02\x0a\x17goo"
57
+ b"gle/rpc/status.proto\x12\x0agoogle.rpc\x1a\x19google/protobuf/any.proto\x22f\x0a\x06Status"
58
+ b"\x12\x12\x0a\x04code\x18\x01 \x01(\x05R\x04code\x12\x18\x0a\x07message\x18\x02 \x01(\x09R\x07"
59
+ b"message\x12.\x0a\x07details\x18\x03 \x03(\x0b2\x14.google.protobuf.AnyR\x07detailsB^\x0a\x0ec"
60
+ b"om.google.rpcB\x0bStatusProtoP\x01Z7google.golang.org/genproto/googleapis/rpc/status;status"
61
+ b"\xa2\x02\x03RPCb\x06proto3\x0a\xe7\x06\x0a\x1bgrpc/health/v1/health.proto\x12\x0egrpc.health."
62
+ b"v1\x22.\x0a\x12HealthCheckRequest\x12\x18\x0a\x07service\x18\x01 \x01(\x09R\x07service\x22"
63
+ b"\xb1\x01\x0a\x13HealthCheckResponse\x12I\x0a\x06status\x18\x01 \x01(\x0e21.grpc.health.v1.Hea"
64
+ b"lthCheckResponse.ServingStatusR\x06status\x22O\x0a\x0dServingStatus\x12\x0b\x0a\x07UNKNOWN"
65
+ b"\x10\x00\x12\x0b\x0a\x07SERVING\x10\x01\x12\x0f\x0a\x0bNOT_SERVING\x10\x02\x12\x13\x0a\x0fSER"
66
+ b"VICE_UNKNOWN\x10\x03\x22\x13\x0a\x11HealthListRequest\x22\xc4\x01\x0a\x12HealthListResponse"
67
+ b"\x12L\x0a\x08statuses\x18\x01 \x03(\x0b20.grpc.health.v1.HealthListResponse.StatusesEntryR"
68
+ b"\x08statuses\x1a`\x0a\x0dStatusesEntry\x12\x10\x0a\x03key\x18\x01 \x01(\x09R\x03key\x129\x0a"
69
+ b"\x05value\x18\x02 \x01(\x0b2#.grpc.health.v1.HealthCheckResponseR\x05value:\x028\x012\xfd\x01"
70
+ b"\x0a\x06Health\x12P\x0a\x05Check\x12\x22.grpc.health.v1.HealthCheckRequest\x1a#.grpc.health.v"
71
+ b"1.HealthCheckResponse\x12M\x0a\x04List\x12!.grpc.health.v1.HealthListRequest\x1a\x22.grpc.hea"
72
+ b"lth.v1.HealthListResponse\x12R\x0a\x05Watch\x12\x22.grpc.health.v1.HealthCheckRequest\x1a#.gr"
73
+ b"pc.health.v1.HealthCheckResponse0\x01Bp\x0a\x11io.grpc.health.v1B\x0bHealthProtoP\x01Z,google"
74
+ b".golang.org/grpc/health/grpc_health_v1\xa2\x02\x0cGrpcHealthV1\xaa\x02\x0eGrpc.Health.V1b\x06"
75
+ b"proto3\x0a\xd0\x0d\x0a#grpc/reflection/v1/reflection.proto\x12\x12grpc.reflection.v1\x22\xf3"
76
+ b"\x02\x0a\x17ServerReflectionRequest\x12\x12\x0a\x04host\x18\x01 \x01(\x09R\x04host\x12*\x0a"
77
+ b"\x10file_by_filename\x18\x03 \x01(\x09H\x00R\x0efileByFilename\x126\x0a\x16file_containing_sy"
78
+ b"mbol\x18\x04 \x01(\x09H\x00R\x14fileContainingSymbol\x12b\x0a\x19file_containing_extension"
79
+ b"\x18\x05 \x01(\x0b2$.grpc.reflection.v1.ExtensionRequestH\x00R\x17fileContainingExtension\x12"
80
+ b"B\x0a\x1dall_extension_numbers_of_type\x18\x06 \x01(\x09H\x00R\x19allExtensionNumbersOfType"
81
+ b"\x12%\x0a\x0dlist_services\x18\x07 \x01(\x09H\x00R\x0clistServicesB\x11\x0a\x0fmessage_reques"
82
+ b"t\x22f\x0a\x10ExtensionRequest\x12'\x0a\x0fcontaining_type\x18\x01 \x01(\x09R\x0econtainingTy"
83
+ b"pe\x12)\x0a\x10extension_number\x18\x02 \x01(\x05R\x0fextensionNumber\x22\xae\x04\x0a\x18Serv"
84
+ b"erReflectionResponse\x12\x1d\x0a\x0avalid_host\x18\x01 \x01(\x09R\x09validHost\x12V\x0a\x10or"
85
+ b"iginal_request\x18\x02 \x01(\x0b2+.grpc.reflection.v1.ServerReflectionRequestR\x0foriginalReq"
86
+ b"uest\x12f\x0a\x18file_descriptor_response\x18\x04 \x01(\x0b2*.grpc.reflection.v1.FileDescript"
87
+ b"orResponseH\x00R\x16fileDescriptorResponse\x12r\x0a\x1eall_extension_numbers_response\x18\x05"
88
+ b" \x01(\x0b2+.grpc.reflection.v1.ExtensionNumberResponseH\x00R\x1ballExtensionNumbersResponse"
89
+ b"\x12_\x0a\x16list_services_response\x18\x06 \x01(\x0b2'.grpc.reflection.v1.ListServiceRespons"
90
+ b"eH\x00R\x14listServicesResponse\x12J\x0a\x0eerror_response\x18\x07 \x01(\x0b2!.grpc.reflectio"
91
+ b"n.v1.ErrorResponseH\x00R\x0derrorResponseB\x12\x0a\x10message_response\x22L\x0a\x16FileDescri"
92
+ b"ptorResponse\x122\x0a\x15file_descriptor_proto\x18\x01 \x03(\x0cR\x13fileDescriptorProto\x22j"
93
+ b"\x0a\x17ExtensionNumberResponse\x12$\x0a\x0ebase_type_name\x18\x01 \x01(\x09R\x0cbaseTypeName"
94
+ b"\x12)\x0a\x10extension_number\x18\x02 \x03(\x05R\x0fextensionNumber\x22T\x0a\x13ListServiceRe"
95
+ b"sponse\x12=\x0a\x07service\x18\x01 \x03(\x0b2#.grpc.reflection.v1.ServiceResponseR\x07service"
96
+ b"\x22%\x0a\x0fServiceResponse\x12\x12\x0a\x04name\x18\x01 \x01(\x09R\x04name\x22S\x0a\x0dError"
97
+ b"Response\x12\x1d\x0a\x0aerror_code\x18\x01 \x01(\x05R\x09errorCode\x12#\x0a\x0derror_message"
98
+ b"\x18\x02 \x01(\x09R\x0cerrorMessage2\x89\x01\x0a\x10ServerReflection\x12u\x0a\x14ServerReflec"
99
+ b"tionInfo\x12+.grpc.reflection.v1.ServerReflectionRequest\x1a,.grpc.reflection.v1.ServerReflec"
100
+ b"tionResponse(\x010\x01Bf\x0a\x15io.grpc.reflection.v1B\x15ServerReflectionProtoP\x01Z4google."
101
+ b"golang.org/grpc/reflection/grpc_reflection_v1b\x06proto3\x0a\x94\x0e\x0a(grpc/reflection/v1al"
102
+ b"pha/reflection.proto\x12\x17grpc.reflection.v1alpha\x22\xf8\x02\x0a\x17ServerReflectionReques"
103
+ b"t\x12\x12\x0a\x04host\x18\x01 \x01(\x09R\x04host\x12*\x0a\x10file_by_filename\x18\x03 \x01("
104
+ b"\x09H\x00R\x0efileByFilename\x126\x0a\x16file_containing_symbol\x18\x04 \x01(\x09H\x00R\x14fi"
105
+ b"leContainingSymbol\x12g\x0a\x19file_containing_extension\x18\x05 \x01(\x0b2).grpc.reflection."
106
+ b"v1alpha.ExtensionRequestH\x00R\x17fileContainingExtension\x12B\x0a\x1dall_extension_numbers_o"
107
+ b"f_type\x18\x06 \x01(\x09H\x00R\x19allExtensionNumbersOfType\x12%\x0a\x0dlist_services\x18\x07"
108
+ b" \x01(\x09H\x00R\x0clistServicesB\x11\x0a\x0fmessage_request\x22f\x0a\x10ExtensionRequest\x12"
109
+ b"'\x0a\x0fcontaining_type\x18\x01 \x01(\x09R\x0econtainingType\x12)\x0a\x10extension_number"
110
+ b"\x18\x02 \x01(\x05R\x0fextensionNumber\x22\xc7\x04\x0a\x18ServerReflectionResponse\x12\x1d"
111
+ b"\x0a\x0avalid_host\x18\x01 \x01(\x09R\x09validHost\x12[\x0a\x10original_request\x18\x02 \x01("
112
+ b"\x0b20.grpc.reflection.v1alpha.ServerReflectionRequestR\x0foriginalRequest\x12k\x0a\x18file_d"
113
+ b"escriptor_response\x18\x04 \x01(\x0b2/.grpc.reflection.v1alpha.FileDescriptorResponseH\x00R"
114
+ b"\x16fileDescriptorResponse\x12w\x0a\x1eall_extension_numbers_response\x18\x05 \x01(\x0b20.grp"
115
+ b"c.reflection.v1alpha.ExtensionNumberResponseH\x00R\x1ballExtensionNumbersResponse\x12d\x0a"
116
+ b"\x16list_services_response\x18\x06 \x01(\x0b2,.grpc.reflection.v1alpha.ListServiceResponseH"
117
+ b"\x00R\x14listServicesResponse\x12O\x0a\x0eerror_response\x18\x07 \x01(\x0b2&.grpc.reflection."
118
+ b"v1alpha.ErrorResponseH\x00R\x0derrorResponseB\x12\x0a\x10message_response\x22L\x0a\x16FileDes"
119
+ b"criptorResponse\x122\x0a\x15file_descriptor_proto\x18\x01 \x03(\x0cR\x13fileDescriptorProto"
120
+ b"\x22j\x0a\x17ExtensionNumberResponse\x12$\x0a\x0ebase_type_name\x18\x01 \x01(\x09R\x0cbaseTyp"
121
+ b"eName\x12)\x0a\x10extension_number\x18\x02 \x03(\x05R\x0fextensionNumber\x22Y\x0a\x13ListServ"
122
+ b"iceResponse\x12B\x0a\x07service\x18\x01 \x03(\x0b2(.grpc.reflection.v1alpha.ServiceResponseR"
123
+ b"\x07service\x22%\x0a\x0fServiceResponse\x12\x12\x0a\x04name\x18\x01 \x01(\x09R\x04name\x22S"
124
+ b"\x0a\x0dErrorResponse\x12\x1d\x0a\x0aerror_code\x18\x01 \x01(\x05R\x09errorCode\x12#\x0a\x0de"
125
+ b"rror_message\x18\x02 \x01(\x09R\x0cerrorMessage2\x93\x01\x0a\x10ServerReflection\x12\x7f\x0a"
126
+ b"\x14ServerReflectionInfo\x120.grpc.reflection.v1alpha.ServerReflectionRequest\x1a1.grpc.refle"
127
+ b"ction.v1alpha.ServerReflectionResponse(\x010\x01Bs\x0a\x1aio.grpc.reflection.v1alphaB\x15Serv"
128
+ b"erReflectionProtoP\x01Z9google.golang.org/grpc/reflection/grpc_reflection_v1alpha\xb8\x01\x01"
129
+ b"b\x06proto3"
130
+ )
@@ -0,0 +1 @@
1
+ # Generated by fastgrpc3: do not edit.
@@ -0,0 +1 @@
1
+ # Generated by fastgrpc3: do not edit.
@@ -0,0 +1,155 @@
1
+ # Generated by fastgrpc3 from google/rpc/code.proto: do not edit.
2
+ """Models of google/rpc/code.proto."""
3
+
4
+ from __future__ import annotations
5
+
6
+ from fastgrpc3.types import ProtoEnum
7
+
8
+
9
+ class Code(ProtoEnum, proto="google.rpc.Code", prefix="", file="google/rpc/code.proto"):
10
+ """The canonical error codes for gRPC APIs.
11
+
12
+
13
+ Sometimes multiple error codes may apply. Services should return
14
+ the most specific error code that applies. For example, prefer
15
+ `OUT_OF_RANGE` over `FAILED_PRECONDITION` if both codes apply.
16
+ Similarly prefer `NOT_FOUND` or `ALREADY_EXISTS` over `FAILED_PRECONDITION`.
17
+ """
18
+
19
+ # Not an error; returned on success.
20
+ #
21
+ # HTTP Mapping: 200 OK
22
+ OK = 0
23
+ # The operation was cancelled, typically by the caller.
24
+ #
25
+ # HTTP Mapping: 499 Client Closed Request
26
+ CANCELLED = 1
27
+ # Unknown error. For example, this error may be returned when
28
+ # a `Status` value received from another address space belongs to
29
+ # an error space that is not known in this address space. Also
30
+ # errors raised by APIs that do not return enough error information
31
+ # may be converted to this error.
32
+ #
33
+ # HTTP Mapping: 500 Internal Server Error
34
+ UNKNOWN = 2
35
+ # The client specified an invalid argument. Note that this differs
36
+ # from `FAILED_PRECONDITION`. `INVALID_ARGUMENT` indicates arguments
37
+ # that are problematic regardless of the state of the system
38
+ # (e.g., a malformed file name).
39
+ #
40
+ # HTTP Mapping: 400 Bad Request
41
+ INVALID_ARGUMENT = 3
42
+ # The deadline expired before the operation could complete. For operations
43
+ # that change the state of the system, this error may be returned
44
+ # even if the operation has completed successfully. For example, a
45
+ # successful response from a server could have been delayed long
46
+ # enough for the deadline to expire.
47
+ #
48
+ # HTTP Mapping: 504 Gateway Timeout
49
+ DEADLINE_EXCEEDED = 4
50
+ # Some requested entity (e.g., file or directory) was not found.
51
+ #
52
+ # Note to server developers: if a request is denied for an entire class
53
+ # of users, such as gradual feature rollout or undocumented allowlist,
54
+ # `NOT_FOUND` may be used. If a request is denied for some users within
55
+ # a class of users, such as user-based access control, `PERMISSION_DENIED`
56
+ # must be used.
57
+ #
58
+ # HTTP Mapping: 404 Not Found
59
+ NOT_FOUND = 5
60
+ # The entity that a client attempted to create (e.g., file or directory)
61
+ # already exists.
62
+ #
63
+ # HTTP Mapping: 409 Conflict
64
+ ALREADY_EXISTS = 6
65
+ # The caller does not have permission to execute the specified
66
+ # operation. `PERMISSION_DENIED` must not be used for rejections
67
+ # caused by exhausting some resource (use `RESOURCE_EXHAUSTED`
68
+ # instead for those errors). `PERMISSION_DENIED` must not be
69
+ # used if the caller can not be identified (use `UNAUTHENTICATED`
70
+ # instead for those errors). This error code does not imply the
71
+ # request is valid or the requested entity exists or satisfies
72
+ # other pre-conditions.
73
+ #
74
+ # HTTP Mapping: 403 Forbidden
75
+ PERMISSION_DENIED = 7
76
+ # Some resource has been exhausted, perhaps a per-user quota, or
77
+ # perhaps the entire file system is out of space.
78
+ #
79
+ # HTTP Mapping: 429 Too Many Requests
80
+ RESOURCE_EXHAUSTED = 8
81
+ # The operation was rejected because the system is not in a state
82
+ # required for the operation's execution. For example, the directory
83
+ # to be deleted is non-empty, an rmdir operation is applied to
84
+ # a non-directory, etc.
85
+ #
86
+ # Service implementors can use the following guidelines to decide
87
+ # between `FAILED_PRECONDITION`, `ABORTED`, and `UNAVAILABLE`:
88
+ # (a) Use `UNAVAILABLE` if the client can retry just the failing call.
89
+ # (b) Use `ABORTED` if the client should retry at a higher level. For
90
+ # example, when a client-specified test-and-set fails, indicating the
91
+ # client should restart a read-modify-write sequence.
92
+ # (c) Use `FAILED_PRECONDITION` if the client should not retry until
93
+ # the system state has been explicitly fixed. For example, if an "rmdir"
94
+ # fails because the directory is non-empty, `FAILED_PRECONDITION`
95
+ # should be returned since the client should not retry unless
96
+ # the files are deleted from the directory.
97
+ #
98
+ # HTTP Mapping: 400 Bad Request
99
+ FAILED_PRECONDITION = 9
100
+ # The operation was aborted, typically due to a concurrency issue such as
101
+ # a sequencer check failure or transaction abort.
102
+ #
103
+ # See the guidelines above for deciding between `FAILED_PRECONDITION`,
104
+ # `ABORTED`, and `UNAVAILABLE`.
105
+ #
106
+ # HTTP Mapping: 409 Conflict
107
+ ABORTED = 10
108
+ # The operation was attempted past the valid range. E.g., seeking or
109
+ # reading past end-of-file.
110
+ #
111
+ # Unlike `INVALID_ARGUMENT`, this error indicates a problem that may
112
+ # be fixed if the system state changes. For example, a 32-bit file
113
+ # system will generate `INVALID_ARGUMENT` if asked to read at an
114
+ # offset that is not in the range [0,2^32-1], but it will generate
115
+ # `OUT_OF_RANGE` if asked to read from an offset past the current
116
+ # file size.
117
+ #
118
+ # There is a fair bit of overlap between `FAILED_PRECONDITION` and
119
+ # `OUT_OF_RANGE`. We recommend using `OUT_OF_RANGE` (the more specific
120
+ # error) when it applies so that callers who are iterating through
121
+ # a space can easily look for an `OUT_OF_RANGE` error to detect when
122
+ # they are done.
123
+ #
124
+ # HTTP Mapping: 400 Bad Request
125
+ OUT_OF_RANGE = 11
126
+ # The operation is not implemented or is not supported/enabled in this
127
+ # service.
128
+ #
129
+ # HTTP Mapping: 501 Not Implemented
130
+ UNIMPLEMENTED = 12
131
+ # Internal errors. This means that some invariants expected by the
132
+ # underlying system have been broken. This error code is reserved
133
+ # for serious errors.
134
+ #
135
+ # HTTP Mapping: 500 Internal Server Error
136
+ INTERNAL = 13
137
+ # The service is currently unavailable. This is most likely a
138
+ # transient condition, which can be corrected by retrying with
139
+ # a backoff. Note that it is not always safe to retry
140
+ # non-idempotent operations.
141
+ #
142
+ # See the guidelines above for deciding between `FAILED_PRECONDITION`,
143
+ # `ABORTED`, and `UNAVAILABLE`.
144
+ #
145
+ # HTTP Mapping: 503 Service Unavailable
146
+ UNAVAILABLE = 14
147
+ # Unrecoverable data loss or corruption.
148
+ #
149
+ # HTTP Mapping: 500 Internal Server Error
150
+ DATA_LOSS = 15
151
+ # The request does not have valid authentication credentials for the
152
+ # operation.
153
+ #
154
+ # HTTP Mapping: 401 Unauthorized
155
+ UNAUTHENTICATED = 16