Skip to content

Commit 4fdea05

Browse files
Refactored __init__.py to improve imports and maintainability
1 parent 88ae193 commit 4fdea05

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

prometheus_api_client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
21
"""A collection of tools to collect and manipulate prometheus metrics."""
32

43
__title__ = "prometheus-connect"
54
__version__ = "0.5.7"
65

6+
from .exceptions import PrometheusApiClientException, MetricValueConversionError
77
def __getattr__(name):
88
if name == "PrometheusConnect":
99
from .prometheus_connect import PrometheusConnect
@@ -20,4 +20,4 @@ def __getattr__(name):
2020
elif name == "MetricRangeDataFrame":
2121
from .metric_range_df import MetricRangeDataFrame
2222
return MetricRangeDataFrame
23-
raise AttributeError(f"module {__name__} has no attribute {name}")
23+
raise AttributeError(f"module {__name__} has no attribute {name}")

0 commit comments

Comments
 (0)