#  Copyright (c) 2026. Jose M. Requena-Plens
"""Transition shim: PyOctaveBand has been renamed to phonometry.

Re-exports the complete phonometry API under the legacy ``pyoctaveband``
name so existing code keeps working. New code should ``import phonometry``.
"""

import warnings

from phonometry import *  # noqa: F403
from phonometry import __all__, __version__  # noqa: F401

# FutureWarning (not DeprecationWarning): visible by default, so users of
# the old name actually see the migration notice.
warnings.warn(
    "PyOctaveBand has been renamed to 'phonometry'. The API is identical: "
    "replace 'import pyoctaveband' with 'import phonometry'. "
    "See https://jmrplens.github.io/phonometry/",
    FutureWarning,
    stacklevel=2,
)
