CLI, environment

catalog

usage: quilt3 catalog [-h] [--detailed_help] [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    Display detailed information about this command and then
                     exit

Run the Quilt catalog on your machine (requires Docker). Running quilt3 catalog launches a webserver on your local machine using Docker and a Python microservice that supplies temporary AWS credentials to the catalog. 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 without downloading. It relies on a API Gateway and AWS Lambda to generate certain previews in the cloud. The catalog launched by quilt3 catalog sends preview requests to https://open.quiltdata.com. Preview requests contain short-lived signed URLs generated using your AWS credentials. Data is encrypted in transit and no data is retained by Quilt. Nevertheless, it is recommended that you use quilt3 catalog only for public data. We strongly encourage users with sensitive data in S3 to run a private Quilt deployment. Visit https://quiltdata.com for more information.

install

verify

login

logout

config

disable-telemetry

list-packages

push

config-default-remote-registry

Environment variables

QUILT_DISABLE_USAGE_METRICS

Disable anonymous usage collection. Defaults to False

QUILT_MINIMIZE_STDOUT

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

QUILT_DISABLE_CACHE

Turn off cache. 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.

QUILT_MANIFEST_MAX_RECORD_SIZE

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

XDG_*

Quilt uses appdirs for Python to determine where to write data. You can therefore override the following path constants with environment variables using the XDG standard (see appdirs docs).

For instance, 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 in Lambda, by setting the XDG_CACHE_HOME environment variable.

Constants (see util.py for more)

  • APP_NAME

  • APP_AUTHOR

  • 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

  • TEMPFILE_DIR_PATH - Base pathlib path for the application tempfiles

  • CONFIG_PATH - Base pathlib path for the application configuration file

  • OPEN_DATA_URL - Application data url

  • PACKAGE_NAME_FORMAT - Regex for legal package names

Last updated

Was this helpful?