Installing a Package
Searching for packages
As explained in "Uploading a Package", packages are managed using registries. There is a one local registry on your machine, and potentially many remote registries elsewhere "in the world". Use list_packages to see the packages available on a registry:
import quilt3
# list local packages
list(quilt3.list_packages())['aneesh/cli-push',
'examples/hurdat',
'aleksey/hurdat']# list remote packages
list(quilt3.list_packages("s3://quilt-example"))['aleksey/hurdat',
'examples/hurdat',
'quilt/altair',
'quilt/hurdat',
'quilt/open_fruit',
'quilt/open_images']Installing a package
To make a remote package and all of its data available locally, install it.
The examples in this section use the examples/hurdat demo package:
Note that unless this registry is public, you will need to be logged into a user who has read access to this registry in order to install from it:
Data files that you download are written to a folder in your local registry by default. You can specify an alternative destination using dest:
Finally, you can install a specific version of a package by specifying the corresponding top hash:
Browsing a package manifest
An alternative to install is browse. browse downloads a package manifest without also downloading the data in the package.
browse is advantageous when you don't want to download everything in a package at once. For example if you just want to look at a package's metadata.
Importing a package
You can import a local package from within Python:
This allows you to manage your data and code dependencies all in one place in your Python scripts or Jupyter notebooks.
Last updated
Was this helpful?

