"""HedgeBuddy - Cross-platform environment variable management for Python scripts.

This library reads environment variables stored by the HedgeBuddy desktop app,
providing a clean alternative to system environment variables.

Basic usage:
    >>> from hedgebuddy import var
    >>> api_key = var("API_KEY")
    >>> report_path = var("REPORT_PATH")

Advanced usage:
    >>> from hedgebuddy import get, exists, all_vars
    >>> api_key = get("API_KEY", default="fallback-key")
    >>> if exists("OPTIONAL_VAR"):
    ...     value = var("OPTIONAL_VAR")
    >>> all_variables = all_vars()
"""

from .core import var, get, exists, all_vars, inject_env
from .exceptions import (
    HedgeBuddyError,
    VariableNotFoundError,
    StorageNotFoundError,
    StorageCorruptedError,
)

__version__ = "0.5.1"
__all__ = [
    "var",
    "get",
    "exists",
    "all_vars",
    "inject_env",
    "HedgeBuddyError",
    "VariableNotFoundError",
    "StorageNotFoundError",
    "StorageCorruptedError",
]
