grpcio-health-checking 1.75.0rc1__tar.gz → 1.76.0rc1__tar.gz

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 (20) hide show
  1. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/PKG-INFO +3 -2
  2. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/v1/_async.py +6 -8
  3. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/v1/health.py +15 -19
  4. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/v1/health_pb2_grpc.py +2 -2
  5. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_version.py +1 -1
  6. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpcio_health_checking.egg-info/PKG-INFO +3 -2
  7. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpcio_health_checking.egg-info/requires.txt +1 -1
  8. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/python_version.py +2 -2
  9. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/LICENSE +0 -0
  10. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/MANIFEST.in +0 -0
  11. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/README.rst +0 -0
  12. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/__init__.py +0 -0
  13. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/v1/__init__.py +0 -0
  14. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/v1/health_pb2.py +0 -0
  15. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpc_health/v1/health_pb2.pyi +0 -0
  16. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpcio_health_checking.egg-info/SOURCES.txt +0 -0
  17. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpcio_health_checking.egg-info/dependency_links.txt +0 -0
  18. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/grpcio_health_checking.egg-info/top_level.txt +0 -0
  19. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/setup.cfg +0 -0
  20. {grpcio_health_checking-1.75.0rc1 → grpcio_health_checking-1.76.0rc1}/setup.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: grpcio-health-checking
3
- Version: 1.75.0rc1
3
+ Version: 1.76.0rc1
4
4
  Summary: Standard Health Checking Service for gRPC
5
5
  Home-page: https://grpc.io
6
6
  Author: The gRPC Authors
@@ -14,11 +14,12 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
17
18
  Classifier: License :: OSI Approved :: Apache Software License
18
19
  Requires-Python: >=3.9
19
20
  License-File: LICENSE
20
21
  Requires-Dist: protobuf<7.0.0,>=6.31.1
21
- Requires-Dist: grpcio>=1.75.0rc1
22
+ Requires-Dist: grpcio>=1.76.0rc1
22
23
 
23
24
  gRPC Python Health Checking
24
25
  ===========================
@@ -104,8 +104,7 @@ class HealthServicer(_health_pb2_grpc.HealthServicer):
104
104
  """
105
105
  if self._gracefully_shutting_down:
106
106
  return
107
- else:
108
- await self._set(service, status)
107
+ await self._set(service, status)
109
108
 
110
109
  async def enter_graceful_shutdown(self) -> None:
111
110
  """Permanently sets the status of all services to NOT_SERVING.
@@ -116,9 +115,8 @@ class HealthServicer(_health_pb2_grpc.HealthServicer):
116
115
  """
117
116
  if self._gracefully_shutting_down:
118
117
  return
119
- else:
120
- self._gracefully_shutting_down = True
121
- for service in self._server_status:
122
- await self._set(
123
- service, _health_pb2.HealthCheckResponse.NOT_SERVING
124
- )
118
+ self._gracefully_shutting_down = True
119
+ for service in self._server_status:
120
+ await self._set(
121
+ service, _health_pb2.HealthCheckResponse.NOT_SERVING
122
+ )
@@ -46,8 +46,7 @@ class _Watcher:
46
46
  self._condition.wait()
47
47
  if self._responses:
48
48
  return self._responses.popleft()
49
- else:
50
- raise StopIteration()
49
+ raise StopIteration()
51
50
 
52
51
  def next(self):
53
52
  return self._next()
@@ -107,8 +106,7 @@ class HealthServicer(_health_pb2_grpc.HealthServicer):
107
106
  if status is None:
108
107
  context.set_code(grpc.StatusCode.NOT_FOUND)
109
108
  return _health_pb2.HealthCheckResponse()
110
- else:
111
- return _health_pb2.HealthCheckResponse(status=status)
109
+ return _health_pb2.HealthCheckResponse(status=status)
112
110
 
113
111
  # pylint: disable=arguments-differ
114
112
  def Watch(self, request, context, send_response_callback=None):
@@ -150,15 +148,14 @@ class HealthServicer(_health_pb2_grpc.HealthServicer):
150
148
  with self._lock:
151
149
  if self._gracefully_shutting_down:
152
150
  return
153
- else:
154
- self._server_status[service] = status
155
- if service in self._send_response_callbacks:
156
- for send_response_callback in self._send_response_callbacks[
157
- service
158
- ]:
159
- send_response_callback(
160
- _health_pb2.HealthCheckResponse(status=status)
161
- )
151
+ self._server_status[service] = status
152
+ if service in self._send_response_callbacks:
153
+ for send_response_callback in self._send_response_callbacks[
154
+ service
155
+ ]:
156
+ send_response_callback(
157
+ _health_pb2.HealthCheckResponse(status=status)
158
+ )
162
159
 
163
160
  def enter_graceful_shutdown(self):
164
161
  """Permanently sets the status of all services to NOT_SERVING.
@@ -172,9 +169,8 @@ class HealthServicer(_health_pb2_grpc.HealthServicer):
172
169
  with self._lock:
173
170
  if self._gracefully_shutting_down:
174
171
  return
175
- else:
176
- for service in self._server_status:
177
- self.set(
178
- service, _health_pb2.HealthCheckResponse.NOT_SERVING
179
- ) # pylint: disable=no-member
180
- self._gracefully_shutting_down = True
172
+ for service in self._server_status:
173
+ self.set(
174
+ service, _health_pb2.HealthCheckResponse.NOT_SERVING
175
+ ) # pylint: disable=no-member
176
+ self._gracefully_shutting_down = True
@@ -5,7 +5,7 @@ import warnings
5
5
 
6
6
  from grpc_health.v1 import health_pb2 as grpc__health_dot_v1_dot_health__pb2
7
7
 
8
- GRPC_GENERATED_VERSION = '1.75.0rc1'
8
+ GRPC_GENERATED_VERSION = '1.76.0rc1'
9
9
  GRPC_VERSION = grpc.__version__
10
10
  _version_not_supported = False
11
11
 
@@ -18,7 +18,7 @@ except ImportError:
18
18
  if _version_not_supported:
19
19
  raise RuntimeError(
20
20
  f'The grpc package installed is at version {GRPC_VERSION},'
21
- + f' but the generated code in grpc_health/v1/health_pb2_grpc.py depends on'
21
+ + ' but the generated code in grpc_health/v1/health_pb2_grpc.py depends on'
22
22
  + f' grpcio>={GRPC_GENERATED_VERSION}.'
23
23
  + f' Please upgrade your grpc module to grpcio>={GRPC_GENERATED_VERSION}'
24
24
  + f' or downgrade your generated code using grpcio-tools<={GRPC_VERSION}.'
@@ -14,4 +14,4 @@
14
14
 
15
15
  # AUTO-GENERATED FROM `$REPO_ROOT/templates/src/python/grpcio_health_checking/grpc_version.py.template`!!!
16
16
 
17
- VERSION = '1.75.0rc1'
17
+ VERSION = '1.76.0rc1'
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: grpcio-health-checking
3
- Version: 1.75.0rc1
3
+ Version: 1.76.0rc1
4
4
  Summary: Standard Health Checking Service for gRPC
5
5
  Home-page: https://grpc.io
6
6
  Author: The gRPC Authors
@@ -14,11 +14,12 @@ Classifier: Programming Language :: Python :: 3.10
14
14
  Classifier: Programming Language :: Python :: 3.11
15
15
  Classifier: Programming Language :: Python :: 3.12
16
16
  Classifier: Programming Language :: Python :: 3.13
17
+ Classifier: Programming Language :: Python :: 3.14
17
18
  Classifier: License :: OSI Approved :: Apache Software License
18
19
  Requires-Python: >=3.9
19
20
  License-File: LICENSE
20
21
  Requires-Dist: protobuf<7.0.0,>=6.31.1
21
- Requires-Dist: grpcio>=1.75.0rc1
22
+ Requires-Dist: grpcio>=1.76.0rc1
22
23
 
23
24
  gRPC Python Health Checking
24
25
  ===========================
@@ -1,2 +1,2 @@
1
1
  protobuf<7.0.0,>=6.31.1
2
- grpcio>=1.75.0rc1
2
+ grpcio>=1.76.0rc1
@@ -14,7 +14,7 @@
14
14
 
15
15
  # AUTO-GENERATED FROM `$REPO_ROOT/templates/src/python/grpcio_health_checking/python_version.py.template`!!!
16
16
 
17
- SUPPORTED_PYTHON_VERSIONS = ["3.9","3.10","3.11","3.12","3.13"]
17
+ SUPPORTED_PYTHON_VERSIONS = ["3.9","3.10","3.11","3.12","3.13","3.14"]
18
18
 
19
19
  MIN_PYTHON_VERSION = 3.9
20
- MAX_PYTHON_VERSION = 3.13
20
+ MAX_PYTHON_VERSION = 3.14