Skip to main content

Quilt3 catalog: local development mode

Project description

Quilt3 catalog: Local development mode

Open source implementation of the Quilt3 registry that works in the local environment (not requiring AWS cloud services aside from S3 / S3 Select).

This package is not intended to be installed/used directly by end users. Instead, install quilt3[catalog] and use quilt3 catalog CLI command.

Developing

TL;DR

# set up venv, assuming poetry is available in the PATH
poetry install

# build catalog bundle
(cd ../catalog && npm i && npm run build && cp -r build ../quilt3_local/quilt3_local/catalog_bundle)

# run the app at http://localhost:3000
poetry run quilt3-local

Set-up

Python environment set-up

First, you need poetry installed.

Then, you have to set up the virtualenv by running poetry install from the project directory -- it will create a virtualenv and install the requirements.

Catalog (node.js) environment set-up

Refer to the catalog documentation.

Running

You can either serve a static catalog bundle (produced by npm run build) or proxy static files from a running catalog instance.

NOTE: you need valid AWS credentials available, see boto3 docs for details.

Serving a static catalog bundle

Run poetry run quilt3-local to start the app on port 3000 serving the static catalog bundle from the ./quilt3_local/catalog_bundle directory. Path to the bundle can be overriden by QUILT_CATALOG_BUNDLE env var. Port can be configured via PORT env var.

In order to serve the bundle, you should first build it by running npm run build from the catalog directory and then either copying it to ./quilt3_loca/catalog_bundle or overriding QUILT_CATALOG_BUNDLE to point to your bundle. However, this approach is not very convenient when developing catalog features, since it requires rebuilding the bundle to pick up the changes. To address this there's a "proxy" mode available.

Proxying a running catalog instance

In this mode the app proxies all the static files requests to a running catalog instance. One can be started by executing PORT=3001 npm start from the catalog directory (setting port to 3001 required to avoid conflict with the quilt3_local app's default settings).

After starting up a catalog instance, you can start the quilt3_local app and point it to that instance by running QUILT_CATALOG_URL=http://localhost:3001 poetry run quilt3-local (the app will be available at http://localhost:3000 and will serve static files from the catalog running at http://localhost:3001, catalog URL configurable via QUILT_CATALOG_URL env var).

Building and publishing

  1. Bump package version in pyproject.toml

  2. Make sure you set up credentials for poetry

  3. Build and publish the package: poetry publish --build

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

quilt3_local-1.0.0rc3.tar.gz (22.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

quilt3_local-1.0.0rc3-py3-none-any.whl (22.5 MB view details)

Uploaded Python 3

File details

Details for the file quilt3_local-1.0.0rc3.tar.gz.

File metadata

  • Download URL: quilt3_local-1.0.0rc3.tar.gz
  • Upload date:
  • Size: 22.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.2.0

File hashes

Hashes for quilt3_local-1.0.0rc3.tar.gz
Algorithm Hash digest
SHA256 1aac24c5f8a9145b662913b8454e2157885e8649d80e53f585dcfbfe8ea30a80
MD5 f7f3c1c08006464d81c153df3121c0e1
BLAKE2b-256 d7dc16a0b8f8e39790674c5c7e4cc471ca136d1171e2f682b1cf2e569196d1f6

See more details on using hashes here.

File details

Details for the file quilt3_local-1.0.0rc3-py3-none-any.whl.

File metadata

  • Download URL: quilt3_local-1.0.0rc3-py3-none-any.whl
  • Upload date:
  • Size: 22.5 MB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.1.12 CPython/3.10.1 Darwin/21.2.0

File hashes

Hashes for quilt3_local-1.0.0rc3-py3-none-any.whl
Algorithm Hash digest
SHA256 5b7aa2ab0b368603b55b5db4988a52f5d9c3644262580a733e8155d084a8735c
MD5 47fa18660a259289d6a5995d4ace24d7
BLAKE2b-256 a7a03dd5ed4d6a32a297245e3d63db2b154c033b3a1b3f036b86f0ca1afaac74

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page