python3-commons 0.3.14__tar.gz → 0.3.16__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.

Potentially problematic release.


This version of python3-commons might be problematic. Click here for more details.

Files changed (45) hide show
  1. {python3-commons-0.3.14/src/python3_commons.egg-info → python3-commons-0.3.16}/PKG-INFO +2 -2
  2. {python3-commons-0.3.14 → python3-commons-0.3.16}/requirements.txt +1 -1
  3. {python3-commons-0.3.14 → python3-commons-0.3.16}/setup.cfg +2 -2
  4. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/logging/formatter.py +7 -0
  5. {python3-commons-0.3.14 → python3-commons-0.3.16/src/python3_commons.egg-info}/PKG-INFO +2 -2
  6. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons.egg-info/requires.txt +1 -1
  7. {python3-commons-0.3.14 → python3-commons-0.3.16}/.coveragerc +0 -0
  8. {python3-commons-0.3.14 → python3-commons-0.3.16}/.github/workflows/python-publish.yaml +0 -0
  9. {python3-commons-0.3.14 → python3-commons-0.3.16}/.gitignore +0 -0
  10. {python3-commons-0.3.14 → python3-commons-0.3.16}/AUTHORS.rst +0 -0
  11. {python3-commons-0.3.14 → python3-commons-0.3.16}/CHANGELOG.rst +0 -0
  12. {python3-commons-0.3.14 → python3-commons-0.3.16}/LICENSE +0 -0
  13. {python3-commons-0.3.14 → python3-commons-0.3.16}/README.md +0 -0
  14. {python3-commons-0.3.14 → python3-commons-0.3.16}/README.rst +0 -0
  15. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/Makefile +0 -0
  16. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/_static/.gitignore +0 -0
  17. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/authors.rst +0 -0
  18. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/changelog.rst +0 -0
  19. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/conf.py +0 -0
  20. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/index.rst +0 -0
  21. {python3-commons-0.3.14 → python3-commons-0.3.16}/docs/license.rst +0 -0
  22. {python3-commons-0.3.14 → python3-commons-0.3.16}/pyproject.toml +0 -0
  23. {python3-commons-0.3.14 → python3-commons-0.3.16}/requirements_dev.txt +0 -0
  24. {python3-commons-0.3.14 → python3-commons-0.3.16}/requirements_test.txt +0 -0
  25. {python3-commons-0.3.14 → python3-commons-0.3.16}/setup.py +0 -0
  26. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/__init__.py +0 -0
  27. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/conf.py +0 -0
  28. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/db.py +0 -0
  29. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/fs.py +0 -0
  30. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/helpers.py +0 -0
  31. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/logging/__init__.py +0 -0
  32. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/logging/filters.py +0 -0
  33. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/minio.py +0 -0
  34. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/object_storage.py +0 -0
  35. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/serializers/__init__.py +0 -0
  36. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/serializers/json.py +0 -0
  37. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/serializers/msgpack.py +0 -0
  38. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons/serializers/msgspec.py +0 -0
  39. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons.egg-info/SOURCES.txt +0 -0
  40. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons.egg-info/dependency_links.txt +0 -0
  41. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons.egg-info/not-zip-safe +0 -0
  42. {python3-commons-0.3.14 → python3-commons-0.3.16}/src/python3_commons.egg-info/top_level.txt +0 -0
  43. {python3-commons-0.3.14 → python3-commons-0.3.16}/tests/conftest.py +0 -0
  44. {python3-commons-0.3.14 → python3-commons-0.3.16}/tests/test_msgpack.py +0 -0
  45. {python3-commons-0.3.14 → python3-commons-0.3.16}/tests/test_msgspec.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-commons
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Summary: Re-usable Python3 code
5
5
  Home-page: https://github.com/kamikaze/python3-commons
6
6
  Author: Oleg Korsak
@@ -18,7 +18,7 @@ Requires-Dist: asyncpg==0.29.0
18
18
  Requires-Dist: minio==7.2.5
19
19
  Requires-Dist: msgpack==1.0.8
20
20
  Requires-Dist: msgspec==0.18.6
21
- Requires-Dist: pydantic[email]==2.6.3
21
+ Requires-Dist: pydantic[email]==2.6.4
22
22
  Requires-Dist: pydantic-settings==2.2.1
23
23
  Provides-Extra: testing
24
24
  Requires-Dist: pytest; extra == "testing"
@@ -2,5 +2,5 @@ asyncpg==0.29.0
2
2
  minio==7.2.5
3
3
  msgpack==1.0.8
4
4
  msgspec==0.18.6
5
- pydantic[email]==2.6.3
5
+ pydantic[email]==2.6.4
6
6
  pydantic-settings==2.2.1
@@ -1,6 +1,6 @@
1
1
  [metadata]
2
2
  name = python3-commons
3
- version = 0.3.14
3
+ version = 0.3.16
4
4
  description = Re-usable Python3 code
5
5
  author = Oleg Korsak
6
6
  author_email = kamikaze.is.waiting.you@gmail.com
@@ -27,7 +27,7 @@ install_requires =
27
27
  minio==7.2.5
28
28
  msgpack==1.0.8
29
29
  msgspec==0.18.6
30
- pydantic[email]==2.6.3
30
+ pydantic[email]==2.6.4
31
31
  pydantic-settings==2.2.1
32
32
  python_requires = >=3.12
33
33
 
@@ -1,16 +1,23 @@
1
1
  import json
2
2
  import logging
3
3
  import traceback
4
+ from contextvars import ContextVar
4
5
 
5
6
  from python3_commons.serializers.json import CustomJSONEncoder
6
7
 
7
8
 
9
+ correlation_id: ContextVar[str | None] = ContextVar('correlation_id', default=None)
10
+
11
+
8
12
  class JSONFormatter(logging.Formatter):
9
13
  @staticmethod
10
14
  def format_exception(exc_info):
11
15
  return ''.join(traceback.format_exception(*exc_info))
12
16
 
13
17
  def format(self, record):
18
+ if corr_id := correlation_id.get():
19
+ record.correlation_id = corr_id
20
+
14
21
  if record.exc_info:
15
22
  record.exc_text = self.format_exception(record.exc_info)
16
23
  else:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python3-commons
3
- Version: 0.3.14
3
+ Version: 0.3.16
4
4
  Summary: Re-usable Python3 code
5
5
  Home-page: https://github.com/kamikaze/python3-commons
6
6
  Author: Oleg Korsak
@@ -18,7 +18,7 @@ Requires-Dist: asyncpg==0.29.0
18
18
  Requires-Dist: minio==7.2.5
19
19
  Requires-Dist: msgpack==1.0.8
20
20
  Requires-Dist: msgspec==0.18.6
21
- Requires-Dist: pydantic[email]==2.6.3
21
+ Requires-Dist: pydantic[email]==2.6.4
22
22
  Requires-Dist: pydantic-settings==2.2.1
23
23
  Provides-Extra: testing
24
24
  Requires-Dist: pytest; extra == "testing"
@@ -2,7 +2,7 @@ asyncpg==0.29.0
2
2
  minio==7.2.5
3
3
  msgpack==1.0.8
4
4
  msgspec==0.18.6
5
- pydantic[email]==2.6.3
5
+ pydantic[email]==2.6.4
6
6
  pydantic-settings==2.2.1
7
7
 
8
8
  [testing]