"""Data-shaping helpers, plus re-exports for names documented at this path.
What is *defined* here is frame reshaping that names no service: building a UTC
datetime column out of the separate date/time/zone columns a caller names.
The one-shot HTTP query path is in :mod:`dataretrieval._querying` and the
WQX3 / legacy-WQP column conventions in :mod:`dataretrieval._wqx`; nothing here
depends on either -- the names below are re-exported so their documented
``dataretrieval.utils`` paths keep resolving.
By default, do not add new service-specific behavior here (ADR 0001).
"""
from __future__ import annotations
import warnings
import pandas as pd
import dataretrieval._querying as _querying
import dataretrieval.transport.http as _transport_http
from dataretrieval._ambient import Ambient # noqa: F401 # compatibility re-export
from dataretrieval._response_metadata import (
BaseMetadata, # noqa: F401 # compatibility re-export; defined there now
)
from dataretrieval.codes import tz
# Compatibility names retained at their historical utility paths.
HTTPX_DEFAULTS = _transport_http.HTTPX_DEFAULTS
USER_AGENT = _transport_http.USER_AGENT
_default_headers = _transport_http.default_headers
_get = _transport_http.get
# Public functions whose implementation moved to the private query module; this
# is the path they are documented at.
query = _querying.query
to_str = _querying.to_str