python-json-logger 3.2.0__py3-none-any.whl → 3.2.1.dev1__py3-none-any.whl

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: python-json-logger
3
- Version: 3.2.0
3
+ Version: 3.2.1.dev1
4
4
  Summary: JSON Log Formatter for the Python Logging Package
5
5
  Author-email: Zakaria Zajac <zak@madzak.com>, Nicholas Hairs <info+python-json-logger@nicholashairs.com>
6
6
  Maintainer-email: Nicholas Hairs <info+python-json-logger@nicholashairs.com>
@@ -47,9 +47,9 @@ Requires-Dist: mkdocs-gen-files; extra == "dev"
47
47
  Requires-Dist: mkdocs-literate-nav; extra == "dev"
48
48
  Requires-Dist: mike; extra == "dev"
49
49
 
50
- <!-- [![PyPi](https://img.shields.io/pypi/v/python-json-logger.svg)](https://pypi.python.org/pypi/python-json-logger/)
50
+ [![PyPi](https://img.shields.io/pypi/v/python-json-logger.svg)](https://pypi.python.org/pypi/python-json-logger/)
51
51
  [![PyPI - Status](https://img.shields.io/pypi/status/python-json-logger)](https://pypi.python.org/pypi/python-json-logger/)
52
- [![Python Versions](https://img.shields.io/pypi/pyversions/python-json-logger.svg)](https://github.com/nhairs/python-json-logger) -->
52
+ [![Python Versions](https://img.shields.io/pypi/pyversions/python-json-logger.svg)](https://github.com/nhairs/python-json-logger)
53
53
  [![License](https://img.shields.io/github/license/nhairs/python-json-logger.svg)](https://github.com/nhairs/python-json-logger)
54
54
  ![Build Status](https://github.com/nhairs/python-json-logger/actions/workflows/test-suite.yml/badge.svg)
55
55
  #
@@ -60,10 +60,6 @@ Python JSON Logger enables you produce JSON logs when using Python's `logging` p
60
60
  JSON logs are machine readable allowing for much easier parsing and ingestion into log aggregation tools.
61
61
 
62
62
 
63
- ### 🚨 Important 🚨
64
-
65
- This repository is a maintained fork of [madzak/python-json-logger](https://github.com/madzak/python-json-logger) pending [a PEP 541 request](https://github.com/pypi/support/issues/3607) for the PyPI package. The future direction of the project is being discussed [here](https://github.com/nhairs/python-json-logger/issues/1).
66
-
67
63
  ## Documentation
68
64
 
69
65
  - [Documentation](https://nhairs.github.io/python-json-logger/latest/)
@@ -0,0 +1,16 @@
1
+ pythonjsonlogger/__init__.py,sha256=2QcveuId10CyXff_BtJ_6kXIarHT5oq66XHHMFiaE8s,419
2
+ pythonjsonlogger/core.py,sha256=zrf2vBMPVjPv5ornwWs2TOi68FbWDnuhj_DrcUiuBG0,13328
3
+ pythonjsonlogger/defaults.py,sha256=-XgxIj8ioq7CsnBBMsQhTRpU-lKbLrpQLJTCaT3iH38,6577
4
+ pythonjsonlogger/exception.py,sha256=r3DXDk7TThscnMVNPpVRaRSFHTnY-ygea6nn-FgjwsI,804
5
+ pythonjsonlogger/json.py,sha256=TsKD_1-TDjaeMUg6la_aVzIWd7GBxgAntY6zWzVe7lU,4165
6
+ pythonjsonlogger/jsonlogger.py,sha256=sfltkYGwRhRvqcpT-kxlPfcMuOc4ngEa4W4NVTiBpMI,417
7
+ pythonjsonlogger/msgspec.py,sha256=M5kiIX4RLr1PwvWKx21N8sgk05LCFymBAWM4cRR3VNA,2161
8
+ pythonjsonlogger/orjson.py,sha256=HVhIHo7CrTwj9pZuZzUmj1qsW0coNdVmDKSDycDs-pM,2357
9
+ pythonjsonlogger/py.typed,sha256=4RLptUHQuSqzK6CDbigff8uvWQjwPPQMxikWPkV4OtA,80
10
+ pythonjsonlogger/utils.py,sha256=qr04nb61TkVw7cJTXAtLBfyH_NBvyYUlR_mehH76-RM,1126
11
+ python_json_logger-3.2.1.dev1.dist-info/LICENSE,sha256=GOqVF546Xg4k62zhbED7--IxM8JQKTOi91-KPhoFW1Q,1329
12
+ python_json_logger-3.2.1.dev1.dist-info/METADATA,sha256=0IeIadiU85OUHVlSmaK_IkDVajdlbJsRVHvnSjFmajE,3999
13
+ python_json_logger-3.2.1.dev1.dist-info/NOTICE,sha256=uRQnFcGZCwuIBR2AIHVvhKi9w1KkiI_vAyralfxCsk4,209
14
+ python_json_logger-3.2.1.dev1.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
15
+ python_json_logger-3.2.1.dev1.dist-info/top_level.txt,sha256=9G-OsTkbwPgM8t-bXKPmWDBRZv9cbzLIiEDE5EnGk2I,17
16
+ python_json_logger-3.2.1.dev1.dist-info/RECORD,,
@@ -8,22 +8,10 @@ import warnings
8
8
  ## Installed
9
9
 
10
10
  ## Application
11
- import pythonjsonlogger.json
12
- import pythonjsonlogger.utils
11
+ from . import json
12
+ from . import utils
13
13
 
14
14
  ### CONSTANTS
15
15
  ### ============================================================================
16
- ORJSON_AVAILABLE = pythonjsonlogger.utils.package_is_available("orjson")
17
- MSGSPEC_AVAILABLE = pythonjsonlogger.utils.package_is_available("msgspec")
18
-
19
-
20
- ### DEPRECATED COMPATIBILITY
21
- ### ============================================================================
22
- def __getattr__(name: str):
23
- if name == "jsonlogger":
24
- warnings.warn(
25
- "pythonjsonlogger.jsonlogger has been moved to pythonjsonlogger.json",
26
- DeprecationWarning,
27
- )
28
- return pythonjsonlogger.json
29
- raise AttributeError(f"module {__name__} has no attribute {name}")
16
+ ORJSON_AVAILABLE = utils.package_is_available("orjson")
17
+ MSGSPEC_AVAILABLE = utils.package_is_available("msgspec")
@@ -0,0 +1,18 @@
1
+ """Stub module retained for compatibility.
2
+
3
+ It retains access to old names whilst sending deprecation warnings.
4
+ """
5
+
6
+ # pylint: disable=wrong-import-position,unused-import
7
+
8
+ import warnings
9
+
10
+ ## Throw warning
11
+ warnings.warn(
12
+ "pythonjsonlogger.jsonlogger has been moved to pythonjsonlogger.json",
13
+ DeprecationWarning,
14
+ )
15
+
16
+ ## Import names
17
+ from .json import JsonFormatter, JsonEncoder
18
+ from .core import RESERVED_ATTRS
@@ -1,15 +0,0 @@
1
- pythonjsonlogger/__init__.py,sha256=mvnVMTGrh32otHxVE7-MsxT9kBvmMyS6I3NCQDe55LY,898
2
- pythonjsonlogger/core.py,sha256=zrf2vBMPVjPv5ornwWs2TOi68FbWDnuhj_DrcUiuBG0,13328
3
- pythonjsonlogger/defaults.py,sha256=-XgxIj8ioq7CsnBBMsQhTRpU-lKbLrpQLJTCaT3iH38,6577
4
- pythonjsonlogger/exception.py,sha256=r3DXDk7TThscnMVNPpVRaRSFHTnY-ygea6nn-FgjwsI,804
5
- pythonjsonlogger/json.py,sha256=TsKD_1-TDjaeMUg6la_aVzIWd7GBxgAntY6zWzVe7lU,4165
6
- pythonjsonlogger/msgspec.py,sha256=M5kiIX4RLr1PwvWKx21N8sgk05LCFymBAWM4cRR3VNA,2161
7
- pythonjsonlogger/orjson.py,sha256=HVhIHo7CrTwj9pZuZzUmj1qsW0coNdVmDKSDycDs-pM,2357
8
- pythonjsonlogger/py.typed,sha256=4RLptUHQuSqzK6CDbigff8uvWQjwPPQMxikWPkV4OtA,80
9
- pythonjsonlogger/utils.py,sha256=qr04nb61TkVw7cJTXAtLBfyH_NBvyYUlR_mehH76-RM,1126
10
- python_json_logger-3.2.0.dist-info/LICENSE,sha256=GOqVF546Xg4k62zhbED7--IxM8JQKTOi91-KPhoFW1Q,1329
11
- python_json_logger-3.2.0.dist-info/METADATA,sha256=5eZGCDrb3mmrvVyiug9EYBtzaD_PDzZmHw_UUy4dlKc,4357
12
- python_json_logger-3.2.0.dist-info/NOTICE,sha256=uRQnFcGZCwuIBR2AIHVvhKi9w1KkiI_vAyralfxCsk4,209
13
- python_json_logger-3.2.0.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
14
- python_json_logger-3.2.0.dist-info/top_level.txt,sha256=9G-OsTkbwPgM8t-bXKPmWDBRZv9cbzLIiEDE5EnGk2I,17
15
- python_json_logger-3.2.0.dist-info/RECORD,,