def pylock_to_req(path: Path, output_path: Optional[Path] = None) -> None:
    """Convert a pylock.toml file to requirements.txt."""
    pkgs = parse_pylock_toml(path)
    if not output_path:
        output_path = path.parent / (path.stem.replace('pylock', 'requirement_with_hash') + '.txt')
    write_requirements_txt(pkgs, output_path)
Convert a pylock.toml file to requirements.txt.
winpython/wheelhouse.py