reuse.download module¶
Functions for downloading license files from spdx/license-data-list.
-
reuse.download.
download_license
(spdx_identifier)[source]¶ Download the license text from the SPDX repository.
-
reuse.download.
put_license_in_file
(spdx_identifier, destination)[source]¶ Download a license and put it in the destination file.
This function exists solely for convenience.
- Parameters
- Raises
requests.RequestException – if the license could not be downloaded.
FileExistsError – if the license file already exists.
- Return type
None