from __future__ import annotations

from importlib.metadata import PackageNotFoundError, version

from ._parser import XmlSource
from .api import generate_workbook_from_xml, write_workbook_from_xml

try:
    __version__ = version("xml-to-xlsx")
except PackageNotFoundError:
    __version__ = "0.0.0"


__all__ = [
    "XmlSource",
    "__version__",
    "generate_workbook_from_xml",
    "write_workbook_from_xml",
]
