femtocrux 0.5.0__py3-none-any.whl → 0.5.2__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.
femtocrux/VERSION CHANGED
@@ -1 +1 @@
1
- 0.5.0
1
+ 0.5.2
@@ -1,7 +1,7 @@
1
1
  # -*- coding: utf-8 -*-
2
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
3
3
  # source: compiler_service.proto
4
- # Protobuf Python Version: 4.25.1
4
+ # Protobuf Python Version: 5.26.1
5
5
  """Generated protocol buffer code."""
6
6
  from google.protobuf import descriptor as _descriptor
7
7
  from google.protobuf import descriptor_pool as _descriptor_pool
@@ -21,8 +21,8 @@ DESCRIPTOR = _descriptor_pool.Default().AddSerializedFile(b'\n\x16\x63ompiler_se
21
21
  _globals = globals()
22
22
  _builder.BuildMessageAndEnumDescriptors(DESCRIPTOR, _globals)
23
23
  _builder.BuildTopDescriptorsAndMessages(DESCRIPTOR, 'compiler_service_pb2', _globals)
24
- if _descriptor._USE_C_DESCRIPTORS == False:
25
- DESCRIPTOR._options = None
24
+ if not _descriptor._USE_C_DESCRIPTORS:
25
+ DESCRIPTOR._loaded_options = None
26
26
  _globals['_FQIR']._serialized_start=97
27
27
  _globals['_FQIR']._serialized_end=200
28
28
  _globals['_TFLITE']._serialized_start=202
@@ -1,10 +1,35 @@
1
1
  # Generated by the gRPC Python protocol compiler plugin. DO NOT EDIT!
2
2
  """Client and server classes corresponding to protobuf-defined services."""
3
3
  import grpc
4
+ import warnings
4
5
 
5
6
  import compiler_service_pb2 as compiler__service__pb2
6
7
  from google.protobuf import empty_pb2 as google_dot_protobuf_dot_empty__pb2
7
8
 
9
+ GRPC_GENERATED_VERSION = '1.64.1'
10
+ GRPC_VERSION = grpc.__version__
11
+ EXPECTED_ERROR_RELEASE = '1.65.0'
12
+ SCHEDULED_RELEASE_DATE = 'June 25, 2024'
13
+ _version_not_supported = False
14
+
15
+ try:
16
+ from grpc._utilities import first_version_is_lower
17
+ _version_not_supported = first_version_is_lower(GRPC_VERSION, GRPC_GENERATED_VERSION)
18
+ except ImportError:
19
+ _version_not_supported = True
20
+
21
+ if _version_not_supported:
22
+ warnings.warn(
23
+ f'The grpc package installed is at version {GRPC_VERSION},'
24
+ + f' but the generated code in compiler_service_pb2_grpc.py depends on'
25
+ + f' grpcio>={GRPC_GENERATED_VERSION}.'
26
+ + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
27
+ + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
28
+ + f' This warning will become an error in {EXPECTED_ERROR_RELEASE},'
29
+ + f' scheduled for release on {SCHEDULED_RELEASE_DATE}.',
30
+ RuntimeWarning
31
+ )
32
+
8
33
 
9
34
  class CompileStub(object):
10
35
  """Compiler service
@@ -20,22 +45,22 @@ class CompileStub(object):
20
45
  '/fscompiler.Compile/compile',
21
46
  request_serializer=compiler__service__pb2.model.SerializeToString,
22
47
  response_deserializer=compiler__service__pb2.compiled_artifacts.FromString,
23
- )
48
+ _registered_method=True)
24
49
  self.ping = channel.unary_unary(
25
50
  '/fscompiler.Compile/ping',
26
51
  request_serializer=compiler__service__pb2.data.SerializeToString,
27
52
  response_deserializer=compiler__service__pb2.data.FromString,
28
- )
53
+ _registered_method=True)
29
54
  self.simulate = channel.stream_stream(
30
55
  '/fscompiler.Compile/simulate',
31
56
  request_serializer=compiler__service__pb2.simulation_input.SerializeToString,
32
57
  response_deserializer=compiler__service__pb2.simulation_output.FromString,
33
- )
58
+ _registered_method=True)
34
59
  self.version = channel.unary_unary(
35
60
  '/fscompiler.Compile/version',
36
61
  request_serializer=google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
37
62
  response_deserializer=compiler__service__pb2.version_info.FromString,
38
- )
63
+ _registered_method=True)
39
64
 
40
65
 
41
66
  class CompileServicer(object):
@@ -93,6 +118,7 @@ def add_CompileServicer_to_server(servicer, server):
93
118
  generic_handler = grpc.method_handlers_generic_handler(
94
119
  'fscompiler.Compile', rpc_method_handlers)
95
120
  server.add_generic_rpc_handlers((generic_handler,))
121
+ server.add_registered_method_handlers('fscompiler.Compile', rpc_method_handlers)
96
122
 
97
123
 
98
124
  # This class is part of an EXPERIMENTAL API.
@@ -111,11 +137,21 @@ class Compile(object):
111
137
  wait_for_ready=None,
112
138
  timeout=None,
113
139
  metadata=None):
114
- return grpc.experimental.unary_unary(request, target, '/fscompiler.Compile/compile',
140
+ return grpc.experimental.unary_unary(
141
+ request,
142
+ target,
143
+ '/fscompiler.Compile/compile',
115
144
  compiler__service__pb2.model.SerializeToString,
116
145
  compiler__service__pb2.compiled_artifacts.FromString,
117
- options, channel_credentials,
118
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
146
+ options,
147
+ channel_credentials,
148
+ insecure,
149
+ call_credentials,
150
+ compression,
151
+ wait_for_ready,
152
+ timeout,
153
+ metadata,
154
+ _registered_method=True)
119
155
 
120
156
  @staticmethod
121
157
  def ping(request,
@@ -128,11 +164,21 @@ class Compile(object):
128
164
  wait_for_ready=None,
129
165
  timeout=None,
130
166
  metadata=None):
131
- return grpc.experimental.unary_unary(request, target, '/fscompiler.Compile/ping',
167
+ return grpc.experimental.unary_unary(
168
+ request,
169
+ target,
170
+ '/fscompiler.Compile/ping',
132
171
  compiler__service__pb2.data.SerializeToString,
133
172
  compiler__service__pb2.data.FromString,
134
- options, channel_credentials,
135
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
173
+ options,
174
+ channel_credentials,
175
+ insecure,
176
+ call_credentials,
177
+ compression,
178
+ wait_for_ready,
179
+ timeout,
180
+ metadata,
181
+ _registered_method=True)
136
182
 
137
183
  @staticmethod
138
184
  def simulate(request_iterator,
@@ -145,11 +191,21 @@ class Compile(object):
145
191
  wait_for_ready=None,
146
192
  timeout=None,
147
193
  metadata=None):
148
- return grpc.experimental.stream_stream(request_iterator, target, '/fscompiler.Compile/simulate',
194
+ return grpc.experimental.stream_stream(
195
+ request_iterator,
196
+ target,
197
+ '/fscompiler.Compile/simulate',
149
198
  compiler__service__pb2.simulation_input.SerializeToString,
150
199
  compiler__service__pb2.simulation_output.FromString,
151
- options, channel_credentials,
152
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
200
+ options,
201
+ channel_credentials,
202
+ insecure,
203
+ call_credentials,
204
+ compression,
205
+ wait_for_ready,
206
+ timeout,
207
+ metadata,
208
+ _registered_method=True)
153
209
 
154
210
  @staticmethod
155
211
  def version(request,
@@ -162,8 +218,18 @@ class Compile(object):
162
218
  wait_for_ready=None,
163
219
  timeout=None,
164
220
  metadata=None):
165
- return grpc.experimental.unary_unary(request, target, '/fscompiler.Compile/version',
221
+ return grpc.experimental.unary_unary(
222
+ request,
223
+ target,
224
+ '/fscompiler.Compile/version',
166
225
  google_dot_protobuf_dot_empty__pb2.Empty.SerializeToString,
167
226
  compiler__service__pb2.version_info.FromString,
168
- options, channel_credentials,
169
- insecure, call_credentials, compression, wait_for_ready, timeout, metadata)
227
+ options,
228
+ channel_credentials,
229
+ insecure,
230
+ call_credentials,
231
+ compression,
232
+ wait_for_ready,
233
+ timeout,
234
+ metadata,
235
+ _registered_method=True)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: femtocrux
3
- Version: 0.5.0
3
+ Version: 0.5.2
4
4
  Summary: Femtosense Compiler
5
5
  Home-page: https://github.com/femtosense/femtocrux
6
6
  Author: Femtosense
@@ -1,21 +1,21 @@
1
1
  femtocrux/ENV_REQUIREMENTS.sh,sha256=t_O1B4hJAMgxvH9gwp1qls6eVFmhSYBJe64KmuK_H-4,1389
2
2
  femtocrux/PY_REQUIREMENTS,sha256=ItZMLU9SXzT6zUFc960ccY2U4l2i8q0H9-FsVfPXeDg,303
3
- femtocrux/VERSION,sha256=oK1QZAE5pST4ZZEVcUW_HUZ06pwGW_6iFVjw97BEMMg,6
3
+ femtocrux/VERSION,sha256=JuCrg6of9r0K44gnh6kmY6oZ2xKOEkH_yZN1-5ygwSE,6
4
4
  femtocrux/__init__.py,sha256=yIWd9I2PEXCn_PKIILAN3mkWeTf0tgtVualeTIHNxfQ,342
5
5
  femtocrux/version.py,sha256=uNg2kHxQo6oUN1ah7s9_85rCZVRoTHGPD1GAQPZW4lw,164
6
6
  femtocrux/client/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
7
7
  femtocrux/client/client.py,sha256=PNaXL_XTe_7_r14WWKmp1RnvAW-kvYzDXcimseA8sEo,22726
8
8
  femtocrux/grpc/__init__.py,sha256=uiMHQt5I2eAKJqI3Zh0h1Gm7cmPR4PbaGS71nCJQCGw,169
9
- femtocrux/grpc/compiler_service_pb2.py,sha256=bUFQwqbLMWSDGu1SyMDcrFfg6rbIvLGMLOjQs5KDpb8,4458
10
- femtocrux/grpc/compiler_service_pb2_grpc.py,sha256=L9EQFYMFVACngUrAEmSJDgUTSPSi3rDoG7TERg-pFq4,7002
9
+ femtocrux/grpc/compiler_service_pb2.py,sha256=Fu4wOuUsu4lN1Ig3GacvuzYJ7MPRq-hTbqSzrCDqRAc,4460
10
+ femtocrux/grpc/compiler_service_pb2_grpc.py,sha256=SgL_HC0nLzuwjpm8U6CdRPb2sJjVOLQrhKHpp0D-gHk,8737
11
11
  femtocrux/server/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
12
12
  femtocrux/server/exceptions.py,sha256=lI6n471n5QKf5G3aL_1kuBVEItD-jBgithVVpPDwNYc,609
13
13
  femtocrux/server/healthcheck.py,sha256=ehqAwnv0D0zpy-AUZAPwv8rp874DZCwUmP8nzdXzZvI,1565
14
14
  femtocrux/server/server.py,sha256=tmXVleZQB59oFzdmut3na4NnDvr0gmxphXF3N3MQx6I,7919
15
15
  femtocrux/util/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
16
16
  femtocrux/util/utils.py,sha256=FZ8cssDom4B3FDbVU_ew4Cf3wOWjo2w1jwcbnLzoYnM,1003
17
- femtocrux-0.5.0.dist-info/LICENSE,sha256=eN9ZI1xHjUmFvN3TEeop5kBGXRUBfbsl55KBNBYYFqI,36
18
- femtocrux-0.5.0.dist-info/METADATA,sha256=-yBCxGfR5PPSfCXUh8Gc-hjNnF-UEJk10XnOj7exmO4,3536
19
- femtocrux-0.5.0.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
- femtocrux-0.5.0.dist-info/top_level.txt,sha256=BkTttlioC3je__8577wxRieZqY3Abu7FOOdMnmYbcNI,10
21
- femtocrux-0.5.0.dist-info/RECORD,,
17
+ femtocrux-0.5.2.dist-info/LICENSE,sha256=eN9ZI1xHjUmFvN3TEeop5kBGXRUBfbsl55KBNBYYFqI,36
18
+ femtocrux-0.5.2.dist-info/METADATA,sha256=P66oOHRV4rSI2CrJxEdmuqZ8mRiXPW34Yh4EkJ6DZwo,3536
19
+ femtocrux-0.5.2.dist-info/WHEEL,sha256=GJ7t_kWBFywbagK5eo9IoUwLW6oyOeTKmQ-9iHFVNxQ,92
20
+ femtocrux-0.5.2.dist-info/top_level.txt,sha256=BkTttlioC3je__8577wxRieZqY3Abu7FOOdMnmYbcNI,10
21
+ femtocrux-0.5.2.dist-info/RECORD,,