from pathlib import Path

from .plugins import (
    SnowfakeryPlugin,
    lazy,
    memorable,
    PluginResult,
    PluginResultIterator,
)
from .api import generate_data, SnowfakeryApplication

# TODO: when Python 3.6 is irrelevant, make this lazy:

# https://www.python.org/dev/peps/pep-0562/

version_file = Path(__file__).parent / "version.txt"
with version_file.open() as f:
    version = f.read().strip()

__all__ = (
    "generate_data",
    "SnowfakeryApplication",
    "SnowfakeryPlugin",
    "lazy",
    "memorable",
    "PluginResult",
    "PluginResultIterator",
)
