microbootstrap 0.4.2__tar.gz → 0.4.3__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.
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/PKG-INFO +1 -1
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/bootstrappers/litestar.py +12 -14
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/pyproject.toml +1 -1
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/README.md +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/__init__.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/bootstrappers/__init__.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/bootstrappers/base.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/bootstrappers/fastapi.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/config/__init__.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/config/fastapi.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/config/litestar.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/console_writer.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/exceptions.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/granian_server.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/helpers.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/__init__.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/base.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/cors_instrument.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/instrument_box.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/logging_instrument.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/opentelemetry_instrument.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/prometheus_instrument.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/sentry_instrument.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/swagger_instrument.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/middlewares/__init__.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/middlewares/fastapi.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/middlewares/litestar.py +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/py.typed +0 -0
- {microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/settings.py +0 -0
|
@@ -63,27 +63,25 @@ class LitestarSwaggerInstrument(SwaggerInstrument):
|
|
|
63
63
|
),
|
|
64
64
|
)
|
|
65
65
|
if self.instrument_config.swagger_offline_docs
|
|
66
|
-
else ()
|
|
66
|
+
else (SwaggerRenderPlugin(),)
|
|
67
67
|
)
|
|
68
68
|
|
|
69
|
-
|
|
70
|
-
path
|
|
71
|
-
title
|
|
72
|
-
version
|
|
73
|
-
description
|
|
74
|
-
render_plugins
|
|
75
|
-
|
|
76
|
-
)
|
|
69
|
+
all_swagger_params: typing.Final = {
|
|
70
|
+
"path": self.instrument_config.swagger_path,
|
|
71
|
+
"title": self.instrument_config.service_name,
|
|
72
|
+
"version": self.instrument_config.service_version,
|
|
73
|
+
"description": self.instrument_config.service_description,
|
|
74
|
+
"render_plugins": render_plugins,
|
|
75
|
+
} | self.instrument_config.swagger_extra_params
|
|
77
76
|
|
|
78
|
-
bootstrap_result: typing.Final = {
|
|
77
|
+
bootstrap_result: typing.Final[dict[str, typing.Any]] = {
|
|
78
|
+
"openapi_config": openapi.OpenAPIConfig(**all_swagger_params)
|
|
79
|
+
}
|
|
79
80
|
if self.instrument_config.swagger_offline_docs:
|
|
80
81
|
bootstrap_result["static_files_config"] = [
|
|
81
82
|
generate_static_files_config(static_files_handler_path=self.instrument_config.service_static_path),
|
|
82
83
|
]
|
|
83
|
-
return
|
|
84
|
-
**bootstrap_result,
|
|
85
|
-
"openapi_config": openapi_config,
|
|
86
|
-
}
|
|
84
|
+
return bootstrap_result
|
|
87
85
|
|
|
88
86
|
|
|
89
87
|
@LitestarBootstrapper.use_instrument()
|
|
@@ -26,7 +26,7 @@ classifiers = [
|
|
|
26
26
|
"Programming Language :: Python :: 3.11",
|
|
27
27
|
"Programming Language :: Python :: 3.12",
|
|
28
28
|
]
|
|
29
|
-
version = "0.4.
|
|
29
|
+
version = "0.4.3"
|
|
30
30
|
description = "Package for bootstrapping new micro-services"
|
|
31
31
|
authors = ["community-of-python"]
|
|
32
32
|
readme = "README.md"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/logging_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/opentelemetry_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/prometheus_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/sentry_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.2 → microbootstrap-0.4.3}/microbootstrap/instruments/swagger_instrument.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|