All docs
PackageManager·
method
PackageManager.install_url
install a package from an http(s) archive or GitHub repo url
Python
install_url(url: str) -> Optional[PackageInfo]
Returns PackageInfo — the installed package, or None on failure
Parameters#
| name | type | default | description |
|---|---|---|---|
url |
str |
— | an http(s) .zip / .lsdpkg archive URL, or a GitHub repository URL |
Example#
Python
from lsdtools.advanced import PackageManager
pm = PackageManager()
pm.install_url("https://github.com/acme/lsd-views") # a repo
pm.install_url("https://example.com/mim.zip") # a direct archive
Notes#
Only http:// / https:// URLs are accepted. A plain GitHub repo URL is expanded to its
default-branch source archive (both main and master are tried); a URL that is already an
archive, release, or raw link is fetched verbatim. The download goes to a temp file and is then
passed to install, so the same directory/zip/lsdpkg rules
apply. Returns None on a network error or if nothing installable is found.
See also#
API: install · add_local · remove
Guides: Install from the store · The Package Manager
By LSD Team · Last updated Jul 17, 2026
Ask on Discord
View as Markdown