piptools.scripts.sync module

piptools.scripts.sync._compose_install_flags(finder: PackageFinder, no_index: bool, index_url: str | None, extra_index_url: tuple[str, ...], trusted_host: tuple[str, ...], find_links: tuple[str, ...], user_only: bool, cert: str | None, client_cert: str | None) list[str]

Compose install flags with the given finder and CLI options.

piptools.scripts.sync._get_installed_distributions(local_only: bool = True, user_only: bool = False, paths: list[str] | None = None) list[Distribution]

Return a list of installed Distribution objects.

piptools.scripts.sync._validate_python_executable(python_executable: str) None

Validates incoming python_executable argument passed to CLI.