from pathlib import Path


def get_modules(modules_path: Path) -> filter:
    """Return all modules available in modules directory"""
    return filter(
        lambda x: x.name != "__init__.py" and x.suffix == ".py" and x.is_file(),
        modules_path.parent.glob("*.py"),
    )