gwss.unpkg

Module Contents

Classes

Unpkg

class gwss.unpkg.Unpkg(package: str, version: str, dir_: os.PathLike | None, name: os.PathLike, filename: os.PathLike, s_or_s: str | None)[source]
base_url[source]
unpkg_dl(url, dest_file: os.PathLike) bool | Any[source]

Download the package file from unpkg.com :param url: url to download from :type url: furl | str | None :param dest_file: local file to download to :type dest_file: str | PathLike

Returns:

  • True if files are successfully downloaded

  • False otherwise

unpkg_url() furl.furl[source]

Create a URL using the base URL, package, version, directory, file, and extension.

return:

Returns:

The created URL as a string.