cli
callback
callback(
_: Annotated[
bool | None,
typer.Option(
--version,
callback=version_callback,
is_eager=True,
),
] = None,
)
SoferAI's Torah Downloader
Source code in src/torah_dl/cli.py
77 78 79 80 81 82 83 84 85 86 87 |
|
download_url
download_url(
url: Annotated[
str, typer.Argument(help="URL to download")
],
output_path: Annotated[
Path,
typer.Argument(
help="Path to save the downloaded file"
),
] = Path("audio"),
)
Download a file from a URL and show progress.
Source code in src/torah_dl/cli.py
45 46 47 48 49 50 51 52 53 54 |
|
extract_url
extract_url(
url: str,
url_only: Annotated[
bool,
typer.Option(
--url - only,
help="Only output the download URL",
),
] = False,
)
Extract information from a given URL
Source code in src/torah_dl/cli.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 |
|
list_extractors_command
list_extractors_command()
List all available extractors.
Source code in src/torah_dl/cli.py
57 58 59 60 61 62 63 64 65 |
|
version_callback
version_callback(value: bool)
print version information to shell
Source code in src/torah_dl/cli.py
68 69 70 71 72 73 74 |
|