wordle.utils

Utility functions.

New in version 0.2.0.

Functions:

clone_into_tmpdir(git_url, tmpdir[, sha, depth])

Clone the git repository at git_url into tmpdir.

clone_into_tmpdir(git_url, tmpdir, sha=None, depth=None)[source]

Clone the git repository at git_url into tmpdir.

Parameters
  • git_url (str) – The url of the git repository to process

  • tmpdir (Union[str, Path, PathLike])

  • sha (Optional[str]) – An optional SHA hash of a commit to checkout. Default None.

  • depth (Optional[int]) – An optional depth to clone at. If None and sha is None the depth is 1. If None and sha is given the depth is unlimited. Default None.

New in version 0.2.0.

Return type

Path