python-observabilityclient/observabilityclient
Takashi Kajinami e64b943b77 Drop direct usage of simplejson
simplejson is not in requirements so is not install automatically.
The requests library uses the built-in json module instead of the 3rd-
party simplejson library in case the simplejson library is not present.
We should use the alias (requests.JsonDecodeError) instead of
the actual exception from underlying modules to adapt to that
selection logic.

Also remove duplicated code in __str__ and __repr__. The logic in
__repr__ does not contain handling for non-json response and looks
incomplete.

Change-Id: I89749eebc1e410f023169a115ffbfa9ef04cf3ad
2024-05-25 13:52:32 +00:00
..
tests Sort column order in cli output 2024-04-10 02:13:13 -04:00
utils Sort column order in cli output 2024-04-10 02:13:13 -04:00
v1 Drop unused --dev and --messy 2024-01-10 23:57:06 +09:00
__init__.py Initial commit 2022-04-25 13:02:34 +02:00
client.py Prometheus interaction (#7) 2023-08-03 15:30:19 +02:00
i18n.py Add i18n.py and use it in v1/base.py and v1/cli.py 2023-11-08 02:28:00 -05:00
plugin.py Add automated unit testing and a set of tests (#9) 2023-09-05 14:54:33 +02:00
prometheus_client.py Drop direct usage of simplejson 2024-05-25 13:52:32 +00:00