monkey-service-kit 2.4.0__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 (34) hide show
  1. monkey_service_kit-2.4.0/CHANGELOG.md +115 -0
  2. monkey_service_kit-2.4.0/LICENSE +677 -0
  3. monkey_service_kit-2.4.0/PKG-INFO +22 -0
  4. monkey_service_kit-2.4.0/README.md +167 -0
  5. monkey_service_kit-2.4.0/pyproject.toml +99 -0
  6. monkey_service_kit-2.4.0/service_kit/__init__.py +7 -0
  7. monkey_service_kit-2.4.0/service_kit/api/__init__.py +39 -0
  8. monkey_service_kit-2.4.0/service_kit/api/api_utils.py +65 -0
  9. monkey_service_kit-2.4.0/service_kit/api/error_handling.py +119 -0
  10. monkey_service_kit-2.4.0/service_kit/api/request_id_middleware.py +33 -0
  11. monkey_service_kit-2.4.0/service_kit/api/request_log_middleware.py +67 -0
  12. monkey_service_kit-2.4.0/service_kit/api/responses.py +76 -0
  13. monkey_service_kit-2.4.0/service_kit/api/testing/__init__.py +1 -0
  14. monkey_service_kit-2.4.0/service_kit/api/testing/fixtures.py +17 -0
  15. monkey_service_kit-2.4.0/service_kit/api/types.py +3 -0
  16. monkey_service_kit-2.4.0/service_kit/base_model.py +45 -0
  17. monkey_service_kit-2.4.0/service_kit/configuration/__init__.py +8 -0
  18. monkey_service_kit-2.4.0/service_kit/configuration/feature_flag.py +52 -0
  19. monkey_service_kit-2.4.0/service_kit/configuration/service_configuration.py +49 -0
  20. monkey_service_kit-2.4.0/service_kit/configuration/types.py +18 -0
  21. monkey_service_kit-2.4.0/service_kit/configuration/utils.py +16 -0
  22. monkey_service_kit-2.4.0/service_kit/errors.py +48 -0
  23. monkey_service_kit-2.4.0/service_kit/logging/__init__.py +19 -0
  24. monkey_service_kit-2.4.0/service_kit/logging/_logger.py +203 -0
  25. monkey_service_kit-2.4.0/service_kit/logging/error_logging.py +121 -0
  26. monkey_service_kit-2.4.0/service_kit/logging/log_level.py +11 -0
  27. monkey_service_kit-2.4.0/service_kit/logging/security_risk.py +11 -0
  28. monkey_service_kit-2.4.0/service_kit/logging/startup.py +177 -0
  29. monkey_service_kit-2.4.0/service_kit/logging/testing/__init__.py +2 -0
  30. monkey_service_kit-2.4.0/service_kit/logging/testing/fixtures.py +13 -0
  31. monkey_service_kit-2.4.0/service_kit/py.typed +0 -0
  32. monkey_service_kit-2.4.0/service_kit/types.py +6 -0
  33. monkey_service_kit-2.4.0/service_kit/utils/__init__.py +1 -0
  34. monkey_service_kit-2.4.0/service_kit/utils/timer.py +68 -0
@@ -0,0 +1,115 @@
1
+ # Changelog
2
+ All notable changes to this project will be documented in this
3
+ file.
4
+
5
+ The format is based on [Keep a
6
+ Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to
7
+ the [PEP 440 version scheme](https://peps.python.org/pep-0440/#version-scheme).
8
+
9
+
10
+ ## [Unreleased]
11
+ ### Added
12
+ ### Changed
13
+ - Package name to `monkey-service-kit`, as `service-kit` its rejected by PyPI.
14
+ ### Deprecated
15
+ ### Fixed
16
+ ### Removed
17
+ ### Security
18
+ - A bug in pydantic(https://github.com/pydantic/pydantic/issues/9139) causes
19
+ `SecretString` to still be logged plaintext in case of a validation error.
20
+ This bug is circumvented by hiding all input in validation errors by default.
21
+
22
+
23
+ ## [2.4.0] - 2026-08-19
24
+ ### Added
25
+ - `extra` parameter to `api.bootstrap_logging()`.
26
+
27
+ ### Changed
28
+ - Logging of the `ServiceConfiguration` in `bootstrap_logging()` to have a
29
+ better structure.
30
+
31
+
32
+ ## [2.3.0] - 2026-08-18
33
+ ### Added
34
+ - `sort_fields` parameter to `logging.configure_logger()`.
35
+ - `extra` parameter to `logging.configure_logger()`.
36
+
37
+ ### Changed
38
+ - Leave structured log fields unsorted by default. This allows for a more
39
+ natural ordering of fields. Fields can still be sorted by passing the
40
+ `sort_fields=True` parameter to `logging.configure_logger()`.
41
+
42
+ ### Deprecated
43
+ - "UNKNOWN" as parent commit value when parent commits are not provided to
44
+ `log_git_status()`.
45
+
46
+
47
+ ## [2.2.0] - 2026-07-01
48
+ ### Added
49
+ - `log_python_version()`
50
+ - `log_startup_information()` -- a shortcut for logging both the Python version
51
+ and git status.
52
+
53
+
54
+ ## [2.1.0] - 2026-04-05
55
+ ### Added
56
+ - `service_kit.configuration.FeatureFlag` pydantic type.
57
+
58
+
59
+ ## [2.0.1] - 2026-02-05
60
+ ### Changed
61
+ - Module exports to comply with the latest guidance from typing.python.org.
62
+
63
+ ### Fixed
64
+ - All dependency specifications to be PEP 508 compliant.
65
+
66
+
67
+ ## [2.0.0] - 2025-11-19
68
+ ### Added
69
+ - `service_kit.logging.intercept_uvicorn_loggers()`
70
+ - `service_kit.utils.Timer`
71
+
72
+ ### Changed
73
+ - FastAPI, Uvicorn, and related dependencies are only installed if the \[api\]
74
+ extra is specified.
75
+ - RequestIDMiddleware to use UUIDv7 instead of ULID if UUIDv7 is available.
76
+ - `service_kit.testing` has been split into `service_kit.api.testing` and
77
+ `service_kit.logging.testing`.
78
+
79
+
80
+ ## [1.4.0.post1] - 2025-10-30
81
+ ### Changed
82
+ - Allow use of ServiceKit with monkey-types 2.0.0.
83
+
84
+
85
+ ## [1.4.0] - 2025-08-07
86
+ ### Added
87
+ - Parent commit IDs to the log message produced by `log_git_status()`.
88
+
89
+
90
+ ## [1.3.0] - 2025-08-05
91
+ ### Added
92
+ - `log_git_status()` function to service\_kit.logging.
93
+
94
+
95
+ ## [1.2.0.post1] - 2025-03-05
96
+ ### Added
97
+ - Documentation generated with Sphinx.
98
+
99
+
100
+ ## [1.2.0] - 2025-02-21
101
+ ### Added
102
+ - 403 FORBIDDEN response type.
103
+
104
+
105
+ ## [1.1.1] - 2025-01-21
106
+ ### Changed
107
+ - Use poetry 2.x.
108
+
109
+ ### Fixed
110
+ - Added missing dependency "pygments".
111
+
112
+
113
+ ## [1.1.0] - 2025-01-16
114
+ ### Added
115
+ - service\_kit.logging.log\_postgres\_error().