gittable.download
download
download(
repo: str,
files: collections.abc.Iterable[str] = ("**",),
directory: pathlib.Path | str | None = None,
branch: str = "",
user: str = "",
password: str = "",
) -> list[str]
Download files from a git repository and return a list of the files downloaded.
Parameters:
-
repo(str) –A git URL, as you would pass to
git clone -
files(collections.abc.Iterable[str], default:('**',)) –One or more glob patterns or relative file paths
-
directory(pathlib.Path | str | None, default:None) –The target directory (if not provided, the current directory is used)
-
branch(str, default:'') –A branch from which to retrieve (if not provided, files will be retrieved from HEAD)
-
user(str, default:'') – -
password(str, default:'') –
Source code in src/gittable/download.py
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 | |