Sisyphe.core.sisypheDownload

External packages/modules

Sisyphe.core.sisypheDownload.downloadFromHost(urls: str | list[str], dst: str = 'C:\\Users\\lotte\\PycharmProjects\\PythonProject3.10', info: str = '', wait: DialogWait | None = None) None

Download file from mega.nz url link.

Parameters

urlsstr | list[str]

list of the mega.nz download links

dststr

destination folder, files are saved in dst folder

infostr

installation name displayed in wait dialog

waitSisyphe.gui.dialogWait.DialogWait

progress bar dialog (optional)

Sisyphe.core.sisypheDownload.getPackageFolder() str

Get the package folder of the current Python environment:

  • venv execution: ./.venv/Lib/site-packages

  • frozen execution: ./_internal

Returns

str

package folder

Sisyphe.core.sisypheDownload.getPackageMetadata(packages: str | list[str] | None = None, wait: DialogWait | None = None) dict[str, str | list[str]]

Extract metadata from packages: version, installation folders, and required packages. If no package is provided, all installed packages are processed.

Parameters

packagesstr | list[str] | None

list of packages for which metadata should be extracted. All installed packages if None.

waitDialogWait | None = None

progress dialog

Returns

dict[str, str | list[str]]

keys: ‘version’ = version, ‘folders’ = installation folder(s), ‘requires’ = required package(s)

Sisyphe.core.sisypheDownload.getPackagesToUpdate(packages: str | dict[str, str], wait: DialogWait | None = None) dict[str, str]

List of packages to check for installation or update.

Parameters

packages : str | dict[str, str]

  • if str, path to a text file (line ‘name version’)

  • if dict[str, str], key = package name, value = package version

waitDialogWait | None = None

progress dialog

Returns

dict[str, str]

Packages that need to be updated, keys: package name, values: package version

Sisyphe.core.sisypheDownload.installFromHost(urls: str | list[str], temp: str = 'C:\\Users\\lotte\\PycharmProjects\\PythonProject3.10', dst: str = '', info: str = '', wait: DialogWait | None = None) None

Download and install files from mega.nz url link(s).

Parameters

urlsstr | list[str]

list of url

tempstr

temporary folder, files are saved in temp folder

dststr

destination folder, files are recursively copied from temp to dst

infostr

installation name displayed in wait dialog

waitSisyphe.gui.dialogWait.DialogWait

progress bar dialog (optional)

Sisyphe.core.sisypheDownload.updatePackages(temp: str = 'C:\\Users\\lotte\\PycharmProjects\\PythonProject3.10', dst: str = '', wait: DialogWait | None = None) None

Install or update package(s).

Parameters

tempstr

temporary folder with the packages to be installed

dststr

destination folder, files are recursively copied from temp to dst

waitSisyphe.gui.dialogWait.DialogWait

progress bar dialog (optional)

Sisyphe.core.sisypheDownload.updatePySisyphe(wait: DialogWait | None = None) None

Download and install last version of PySisyphe.

Parameters

waitSisyphe.gui.dialogWait.DialogWait

progress bar dialog (Optional)