microbootstrap 0.4.0__tar.gz → 0.4.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.
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/PKG-INFO +2 -5
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/README.md +1 -4
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/settings.py +2 -2
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/pyproject.toml +1 -1
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/__init__.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/bootstrappers/__init__.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/bootstrappers/base.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/bootstrappers/fastapi.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/bootstrappers/litestar.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/config/__init__.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/config/fastapi.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/config/litestar.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/console_writer.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/exceptions.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/granian_server.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/helpers.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/__init__.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/base.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/cors_instrument.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/instrument_box.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/logging_instrument.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/opentelemetry_instrument.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/prometheus_instrument.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/sentry_instrument.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/swagger_instrument.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/middlewares/__init__.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/middlewares/fastapi.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/middlewares/litestar.py +0 -0
- {microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/py.typed +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: microbootstrap
|
|
3
|
-
Version: 0.4.
|
|
3
|
+
Version: 0.4.2
|
|
4
4
|
Summary: Package for bootstrapping new micro-services
|
|
5
5
|
Keywords: python,microservice,bootstrap,opentelemetry,logging,error-tracing,litestar,fastapi
|
|
6
6
|
Author: community-of-python
|
|
@@ -145,7 +145,6 @@ from microbootstrap import LitestarSettings
|
|
|
145
145
|
|
|
146
146
|
class YourSettings(LitestarSettings):
|
|
147
147
|
# General settings
|
|
148
|
-
service_debug: bool = False
|
|
149
148
|
service_name: str = "my-awesome-service"
|
|
150
149
|
|
|
151
150
|
# Sentry settings
|
|
@@ -188,7 +187,6 @@ Example:
|
|
|
188
187
|
|
|
189
188
|
```python
|
|
190
189
|
class YourSettings(BaseServiceSettings):
|
|
191
|
-
service_debug: bool = True
|
|
192
190
|
service_name: str = "micro-service"
|
|
193
191
|
|
|
194
192
|
your_awesome_parameter: str = "really awesome"
|
|
@@ -219,7 +217,6 @@ from microbootstrap.settings import BaseServiceSettings
|
|
|
219
217
|
|
|
220
218
|
|
|
221
219
|
class ServiceSettings(BaseServiceSettings):
|
|
222
|
-
service_debug: bool = True
|
|
223
220
|
service_environment: str | None = None
|
|
224
221
|
service_name: str = "micro-service"
|
|
225
222
|
service_description: str = "Micro service description"
|
|
@@ -373,7 +370,7 @@ These settings are subsequently passed to [opentelemetry](https://opentelemetry.
|
|
|
373
370
|
<b>microbootstrap</b> provides in-memory JSON logging through the use of [structlog](https://pypi.org/project/structlog/).
|
|
374
371
|
For more information on in-memory logging, refer to [MemoryHandler](https://docs.python.org/3/library/logging.handlers.html#memoryhandler).
|
|
375
372
|
|
|
376
|
-
To utilize this feature, your application must be in non-debug mode, meaning `service_debug` should be set to `False
|
|
373
|
+
To utilize this feature, your application must be in non-debug mode, meaning `service_debug` should be set to `False`, which is the default.
|
|
377
374
|
|
|
378
375
|
```python
|
|
379
376
|
import logging
|
|
@@ -97,7 +97,6 @@ from microbootstrap import LitestarSettings
|
|
|
97
97
|
|
|
98
98
|
class YourSettings(LitestarSettings):
|
|
99
99
|
# General settings
|
|
100
|
-
service_debug: bool = False
|
|
101
100
|
service_name: str = "my-awesome-service"
|
|
102
101
|
|
|
103
102
|
# Sentry settings
|
|
@@ -140,7 +139,6 @@ Example:
|
|
|
140
139
|
|
|
141
140
|
```python
|
|
142
141
|
class YourSettings(BaseServiceSettings):
|
|
143
|
-
service_debug: bool = True
|
|
144
142
|
service_name: str = "micro-service"
|
|
145
143
|
|
|
146
144
|
your_awesome_parameter: str = "really awesome"
|
|
@@ -171,7 +169,6 @@ from microbootstrap.settings import BaseServiceSettings
|
|
|
171
169
|
|
|
172
170
|
|
|
173
171
|
class ServiceSettings(BaseServiceSettings):
|
|
174
|
-
service_debug: bool = True
|
|
175
172
|
service_environment: str | None = None
|
|
176
173
|
service_name: str = "micro-service"
|
|
177
174
|
service_description: str = "Micro service description"
|
|
@@ -325,7 +322,7 @@ These settings are subsequently passed to [opentelemetry](https://opentelemetry.
|
|
|
325
322
|
<b>microbootstrap</b> provides in-memory JSON logging through the use of [structlog](https://pypi.org/project/structlog/).
|
|
326
323
|
For more information on in-memory logging, refer to [MemoryHandler](https://docs.python.org/3/library/logging.handlers.html#memoryhandler).
|
|
327
324
|
|
|
328
|
-
To utilize this feature, your application must be in non-debug mode, meaning `service_debug` should be set to `False
|
|
325
|
+
To utilize this feature, your application must be in non-debug mode, meaning `service_debug` should be set to `False`, which is the default.
|
|
329
326
|
|
|
330
327
|
```python
|
|
331
328
|
import logging
|
|
@@ -25,7 +25,7 @@ ENV_PREFIX: typing.Final = os.getenv(ENV_PREFIX_VAR_NAME, "")
|
|
|
25
25
|
class BaseServiceSettings(
|
|
26
26
|
pydantic_settings.BaseSettings,
|
|
27
27
|
):
|
|
28
|
-
service_debug: bool =
|
|
28
|
+
service_debug: bool = False
|
|
29
29
|
service_environment: str | None = None
|
|
30
30
|
service_name: str = pydantic.Field(
|
|
31
31
|
"micro-service", validation_alias=pydantic.AliasChoices("SERVICE_NAME", f"{ENV_PREFIX}SERVICE_NAME")
|
|
@@ -38,7 +38,7 @@ class BaseServiceSettings(
|
|
|
38
38
|
|
|
39
39
|
server_host: str = "0.0.0.0" # noqa: S104
|
|
40
40
|
server_port: int = 8000
|
|
41
|
-
server_reload: bool =
|
|
41
|
+
server_reload: bool = False
|
|
42
42
|
server_workers_count: int = 1
|
|
43
43
|
|
|
44
44
|
model_config = pydantic_settings.SettingsConfigDict(
|
|
@@ -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.2"
|
|
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.0 → microbootstrap-0.4.2}/microbootstrap/instruments/logging_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/opentelemetry_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/prometheus_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/sentry_instrument.py
RENAMED
|
File without changes
|
{microbootstrap-0.4.0 → microbootstrap-0.4.2}/microbootstrap/instruments/swagger_instrument.py
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|