Download pypi artifacts
Download a wheel or a source distribution from a PyPI repository. rp reads the simple index of the project (GET <repo>/simple/<package>/, the page pip reads), picks the version (–version, default the highest release, else the highest pre-release, as pip does; a yanked file is never picked unless –version names it), picks one file of that version, and downloads it from the link of the index. The link carries the SHA-256 of the file, and the download is verified against it (a file whose link has no usable digest is stored and reported as not verified).
The package name may be written in any spelling (My_Package.Name, my-package-name): rp asks for the PEP 503 normalized name, which is what the server stores.
A version usually has several files. rp chooses by itself only when the choice is clear (one file, or one pure Python wheel); otherwise it lists the files and stops, and you pick one with –file <name>, or narrow it down with –type wheel or –type sdist. rp does not match wheels to a platform.
rp download pypi <package> [flags]
Options
--dir string Directory to store the file in (created when missing) (default ".")
--file string Exact file name to download (for example demo-1.0.0-py3-none-any.whl)
--force Replace the file when it already exists
--repo string Repository to download from (required)
--type string Choose among wheels or source distributions only: wheel or sdist
--version string Version to download (default: the newest the format knows)
Options inherited from parent commands
--api-url string Panel API URL of the profile, overrides the stored value
--ca-file string PEM file with extra trusted CA certificates
--debug Print debug output with secrets redacted
--hostname string Repsy host to use instead of the current profile
--insecure Do not verify TLS certificates (unsafe; plain http is chosen with the URL, not with this flag)
--insecure-storage Keep credentials in a plain 0600 file instead of the OS keyring (unsafe; a warning is printed once per command)
--jq string Filter JSON output with a jq expression (implies --output json)
--no-color Disable colored output
--no-input Never prompt; fail when input is needed
--output table|json|yaml Output format: table, json or yaml (default table; json when --jq is given)
--owner string Owner segment of Cloud protocol URLs; --owner= means none
--registry-url string Protocol host URL of the profile, overrides the stored value
--web-url string Panel UI URL of the profile (where /cli/auth lives), overrides the stored value
--yes Answer yes to confirmation prompts
See also
- rp download - Download artifacts from a repository