from typing import Generator
import pkg_resources


def get_plugins() -> Generator[pkg_resources.EntryPoint, None, None]:
    """Iterate over available plugins."""
    return pkg_resources.iter_entry_points(group="stan.plugins")