Get#
Description#
Download a single file from the given URL to the specified local filename.
Sometimes, it can be handy to have a quick way of retrieving a single file or folder with a command line tool. This is what the get command was made for.
For CLI options, run wrapp get --help.
Python API Reference#
- async wrapp.get(
- url: str,
- filename: str | None,
- overwrite: bool = False,
- context: CommandParameters = CommandParameters(debug=False, verbose=False, dry_run=False, log_file=None, hash_cache_file=None),
- *,
- scheduler: SchedulerContext | None = None,
Download a single file from the given URL to the specified local filename
- Parameters:
url – URL to download
filename – Optional alternate file name to download to. If not given the file will have the same name as in the source URL
overwrite – Specify to allow overwriting the target if it already exists
context – Global configuration parameters
scheduler – Optionally pre-constructed SchedulerContext. When calling many functions in a row make sure to pre-construct the scheduler.
- Raises:
FailedCommand – When prerequisites not matched
StorageOperationError – Raised when network or file operations fail