sovereign 0.25.1__py3-none-any.whl → 0.25.3__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.

Potentially problematic release.


This version of sovereign might be problematic. Click here for more details.

sovereign/schemas.py CHANGED
@@ -367,6 +367,8 @@ class SovereignAsgiConfig(BaseSettings):
367
367
  worker_timeout: int = 30
368
368
  worker_tmp_dir: str = "/dev/shm"
369
369
  graceful_timeout: int = worker_timeout * 2
370
+ max_requests: int = 0
371
+ max_requests_jitter: int = 0
370
372
 
371
373
  class Config:
372
374
  fields = {
@@ -377,6 +379,8 @@ class SovereignAsgiConfig(BaseSettings):
377
379
  "threads": {"env": "SOVEREIGN_THREADS"},
378
380
  "preload_app": {"env": "SOVEREIGN_PRELOAD"},
379
381
  "worker_timeout": {"env": "SOVEREIGN_WORKER_TIMEOUT"},
382
+ "max_requests": {"env": "SOVEREIGN_MAX_REQUESTS"},
383
+ "max_requests_jitter": {"env": "SOVEREIGN_MAX_REQUESTS_JITTER"},
380
384
  }
381
385
 
382
386
  def as_gunicorn_conf(self) -> Dict[str, Any]:
@@ -392,6 +396,8 @@ class SovereignAsgiConfig(BaseSettings):
392
396
  "worker_class": self.worker_class,
393
397
  "worker_tmp_dir": self.worker_tmp_dir,
394
398
  "graceful_timeout": self.graceful_timeout,
399
+ "max_requests": self.max_requests,
400
+ "max_requests_jitter": self.max_requests_jitter,
395
401
  }
396
402
 
397
403
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: sovereign
3
- Version: 0.25.1
3
+ Version: 0.25.3
4
4
  Summary: Envoy Proxy control-plane written in Python
5
5
  Home-page: https://pypi.org/project/sovereign/
6
6
  License: Apache-2.0
@@ -37,7 +37,7 @@ Requires-Dist: cachelib (>=0.10.2,<0.11.0)
37
37
  Requires-Dist: cachetools (>=5.3.2,<6.0.0)
38
38
  Requires-Dist: cashews[redis] (>=6.3.0,<7.0.0) ; extra == "caching"
39
39
  Requires-Dist: croniter (>=1.4.1,<2.0.0)
40
- Requires-Dist: cryptography (>=41.0.4,<42.0.0)
40
+ Requires-Dist: cryptography (>=42.0.5,<43.0.0)
41
41
  Requires-Dist: datadog (>=0.47.0,<0.48.0) ; extra == "statsd"
42
42
  Requires-Dist: fastapi (>=0.110.0,<0.111.0)
43
43
  Requires-Dist: glom (>=23.3.0,<24.0.0)
@@ -16,7 +16,7 @@ sovereign/modifiers/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSu
16
16
  sovereign/modifiers/lib.py,sha256=DbXsxrrjnFE4Y7rbwpeiM5tS5w5NBwSdYH58AtDTP0I,2884
17
17
  sovereign/modifiers/test.py,sha256=7_c2hWXn_sYJ6997N1_uSWtClOikcOzu1yRCY56-l-4,361
18
18
  sovereign/response_class.py,sha256=beMAFV-4L6DwyWzJzy71GkEW4gb7fzH1jd8-Tul13cU,427
19
- sovereign/schemas.py,sha256=JsL_qL5dMhiAH2FB9UHb9nkRT4sUcT5qwuk129pNm3o,28718
19
+ sovereign/schemas.py,sha256=FL0iQAftCVVFOL7r_l9scqllyMum0g2AD0qhMyONyg0,29025
20
20
  sovereign/server.py,sha256=z8Uz1UYIZix0S40Srk774WIMDN2jl2SozO8irib0wc4,1402
21
21
  sovereign/sources/__init__.py,sha256=g9hEpFk8j5i1ApHQpbc9giTyJW41Ppgsqv5P9zGxOJk,78
22
22
  sovereign/sources/file.py,sha256=A4UWoRU39v2Ex5Mtdl_uw53iMkslYylF4CiiwW7LOpk,689
@@ -54,8 +54,8 @@ sovereign/views/crypto.py,sha256=o8NSyiUBy7v1pMOXt_1UBi68FNcGkXSlEVg9C18y8kY,332
54
54
  sovereign/views/discovery.py,sha256=TVvWTMzWydsC-SNKL9WsSss_Hfnt2Ed4SVC2A8Na7Jo,5932
55
55
  sovereign/views/healthchecks.py,sha256=_WkMunlrFpqGTLgtNtRr7gCsDCv5kiuYxCyTi-dMEKM,1357
56
56
  sovereign/views/interface.py,sha256=Xi5F36Zn7ATbMtuhlE8f9xTEKj9T7GzHg6XLdb3bQjY,7023
57
- sovereign-0.25.1.dist-info/LICENSE.txt,sha256=2X125zvAb9AYLjCgdMDQZuufhm0kwcg31A8pGKj_-VY,560
58
- sovereign-0.25.1.dist-info/METADATA,sha256=_JqPvgxJUGAyrrDXqPaeUKwO95kuZLJKtQ5cfnMY8fQ,6465
59
- sovereign-0.25.1.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
60
- sovereign-0.25.1.dist-info/entry_points.txt,sha256=kOn848ucVbNvtsGABDuwzOHmNiOb0Ey8dV85Z3dLv3Y,222
61
- sovereign-0.25.1.dist-info/RECORD,,
57
+ sovereign-0.25.3.dist-info/LICENSE.txt,sha256=2X125zvAb9AYLjCgdMDQZuufhm0kwcg31A8pGKj_-VY,560
58
+ sovereign-0.25.3.dist-info/METADATA,sha256=Rz7POoW7RiaY2il8UVKed92Ei4-HzS0X-UiKgY-RkYc,6465
59
+ sovereign-0.25.3.dist-info/WHEEL,sha256=d2fvjOD7sXsVzChCqf0Ty0JbHKBaLYwDbGQDwQTnJ50,88
60
+ sovereign-0.25.3.dist-info/entry_points.txt,sha256=kOn848ucVbNvtsGABDuwzOHmNiOb0Ey8dV85Z3dLv3Y,222
61
+ sovereign-0.25.3.dist-info/RECORD,,