CLI, Environment

catalog

usage: quilt3 catalog [-h] [--detailed-help] [--host HOST] [--port PORT]
                      [--no-browser]
                      [navigation_target]

Run Quilt catalog locally

positional arguments:
  navigation_target     Which page in the local catalog to open. Leave blank
                        to go to the catalog landing page, pass in an S3 url
                        (e.g. 's3://bucket/myfile.txt') to go to file viewer,
                        or pass in a package name in the form
                        'BUCKET:USER/PKG' to go to the package viewer.

optional arguments:
  -h, --help            show this help message and exit
  --detailed-help, --detailed_help
                        Display detailed information about this command and
                        then exit
  --host HOST           Bind socket to this host
  --port PORT           Bind to a socket with this port
  --no-browser          Don't open catalog in a browser after startup

Run the Quilt catalog on your machine. Running quilt3 catalog launches a Python webserver on your local machine that serves a catalog web app and provides required backend services using temporary AWS credentials. Temporary credentials are derived from your default AWS credentials (or active AWS_PROFILE) using boto3.sts.get_session_token. For more details about configuring and using AWS credentials in boto3, see the AWS documentation: https://boto3.amazonaws.com/v1/documentation/api/latest/guide/configuration.html

Previewing files in S3

The Quilt catalog allows users to preview files in S3 by downloading and processing/converting them inside the Python webserver running on local machine. Neither your AWS credentials nor data requested goes through any third-party cloud services aside of S3.

config

config-default-remote-registry

disable-telemetry

install

list-packages

login

logout

push

verify

Environment variables

QUILT_DISABLE_CACHE

Turn off cache. Defaults to False.

QUILT_DISABLE_USAGE_METRICS

Disable anonymous usage collection. Defaults to False

QUILT_MANIFEST_MAX_RECORD_SIZE

Maximum size of a record in package manifest. Setting this variable is strongly discouraged. Defaults to 1_000_000.

QUILT_MINIMIZE_STDOUT

Turn off TQDM progress bars for log files. Defaults to False

QUILT_TRANSFER_MAX_CONCURRENCY

Number of threads for file transfers. Defaults to 10.

This variable could be tried for improving file transfer rate. The optimal value depends on network bandwidth, CPU performance, file sizes, etc.

XDG_*

quilt3 uses platformdirs so you can set one or more of the XDG environment variables to customize where quilt3 writes to disk.

For example, AWS Lambda requires the user to use /tmp/* as the scratch directory. You can override quilt3.util.CACHE_PATH, so that quilt3 install will succeed, by setting the XDG_CACHE_HOME environment variable in code or in your AWS Lambda environment variables.

You must set XDG environment variables before import quilt3 in order for them to take effect.

Constants (see util.py for more)

  • APP_AUTHOR

  • APP_NAME

  • BASE_DIR - Base directory of the application

  • BASE_PATH - Base pathlib path for the application directory

  • CACHE_PATH - Pathlib path for the user cache directory

  • CONFIG_PATH - Base pathlib path for the application configuration file

  • OPEN_DATA_URL - Application data url

  • PACKAGE_NAME_FORMAT - Regex for legal package names

  • TEMPFILE_DIR_PATH - Base pathlib path for the application tempfiles

Last updated

Was this helpful?