lite-bootstrap 1.3.0__tar.gz → 1.3.2__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 (37) hide show
  1. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/PKG-INFO +2 -1
  2. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/litestar_bootstrapper.py +7 -1
  3. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/pyproject.toml +7 -2
  4. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/README.md +0 -0
  5. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/__init__.py +0 -0
  6. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/__init__.py +0 -0
  7. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/base.py +0 -0
  8. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/fastapi_bootstrapper.py +0 -0
  9. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/fastmcp_bootstrapper.py +0 -0
  10. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/faststream_bootstrapper.py +0 -0
  11. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/bootstrappers/free_bootstrapper.py +0 -0
  12. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/exceptions.py +0 -0
  13. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/helpers/__init__.py +0 -0
  14. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/helpers/fastapi_helpers.py +0 -0
  15. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/helpers/path.py +0 -0
  16. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/import_checker.py +0 -0
  17. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/__init__.py +0 -0
  18. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/base.py +0 -0
  19. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/cors_instrument.py +0 -0
  20. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/healthchecks_instrument.py +0 -0
  21. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/logging_factory.py +0 -0
  22. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/logging_instrument.py +0 -0
  23. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/opentelemetry_instrument.py +0 -0
  24. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/prometheus_instrument.py +0 -0
  25. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/pyroscope_instrument.py +0 -0
  26. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/sentry_instrument.py +0 -0
  27. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/instruments/swagger_instrument.py +0 -0
  28. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/py.typed +0 -0
  29. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/fastapi_docs/redoc.standalone.js +0 -0
  30. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/fastapi_docs/swagger-ui-bundle.js +0 -0
  31. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/fastapi_docs/swagger-ui.css +0 -0
  32. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/litestar_docs/asyncapi-web-component.js +0 -0
  33. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/litestar_docs/default.min.css +0 -0
  34. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/litestar_docs/swagger-ui-bundle.js +0 -0
  35. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/litestar_docs/swagger-ui-standalone-preset.js +0 -0
  36. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/static/litestar_docs/swagger-ui.css +0 -0
  37. {lite_bootstrap-1.3.0 → lite_bootstrap-1.3.2}/lite_bootstrap/types.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: lite-bootstrap
3
- Version: 1.3.0
3
+ Version: 1.3.2
4
4
  Summary: Lightweight bootstrap for production-ready Python microservices
5
5
  Keywords: microservices,bootstrap,opentelemetry,sentry,error-tracing,fastapi,litestar,faststream,structlog,fastmcp,python
6
6
  Author: Artur Shiriev
@@ -15,6 +15,7 @@ Classifier: Programming Language :: Python :: 3.13
15
15
  Classifier: Programming Language :: Python :: 3.14
16
16
  Classifier: Typing :: Typed
17
17
  Classifier: Topic :: Software Development :: Libraries
18
+ Requires-Dist: typing-extensions
18
19
  Requires-Dist: fastapi ; extra == 'fastapi'
19
20
  Requires-Dist: lite-bootstrap[fastapi-sentry,fastapi-otl,fastapi-logging,fastapi-metrics,pyroscope] ; extra == 'fastapi-all'
20
21
  Requires-Dist: lite-bootstrap[fastapi,logging] ; extra == 'fastapi-logging'
@@ -33,10 +33,16 @@ if import_checker.is_litestar_installed:
33
33
  from litestar.logging.config import StructLoggingConfig
34
34
  from litestar.openapi import OpenAPIConfig
35
35
  from litestar.openapi.plugins import SwaggerRenderPlugin
36
- from litestar.plugins.prometheus import PrometheusConfig, PrometheusController
37
36
  from litestar.plugins.structlog import StructlogConfig, StructlogPlugin
38
37
  from litestar.static_files import create_static_files_router
39
38
 
39
+ if import_checker.is_litestar_installed and import_checker.is_prometheus_client_installed:
40
+ # litestar.plugins.prometheus imports prometheus_client, which the `litestar`
41
+ # extra does not install (only `litestar-metrics` does). Used only inside
42
+ # LitestarPrometheusInstrument.bootstrap(), gated by check_dependencies() ->
43
+ # is_prometheus_client_installed, so this guard matches the usage.
44
+ from litestar.plugins.prometheus import PrometheusConfig, PrometheusController
45
+
40
46
  if import_checker.is_litestar_opentelemetry_installed:
41
47
  from litestar.middleware import ASGIMiddleware
42
48
  from litestar.types.asgi_types import ASGIApp, Receive, Scope, Send
@@ -19,8 +19,13 @@ classifiers = [
19
19
  "Typing :: Typed",
20
20
  "Topic :: Software Development :: Libraries",
21
21
  ]
22
- version = "1.3.0"
23
- dependencies = []
22
+ version = "1.3.2"
23
+ dependencies = [
24
+ # Runtime use: `typing_extensions.Self` (base.py) and `typing_extensions.TypedDict`
25
+ # (healthchecks) — the latter is required by pydantic/FastAPI on Python < 3.12
26
+ # (`typing.TypedDict` is rejected there). Pure Python, so ft-friendly.
27
+ "typing-extensions",
28
+ ]
24
29
 
25
30
  [project.urls]
26
31
  Homepage = "https://lite-bootstrap.modern-python.org"
File without changes