Get up and running with Quilt in minutes! This guide provides multiple learning paths based on your experience level and preferred learning style.
Start coding immediately with our interactive Python tutorial:
quilt3 through practical examplesWatch comprehensive video guides:
Explore production datasets with guided examples:
pip install quilt3
For public datasets like s3://quilt-example, no authentication is needed. For private buckets or catalogs, choose your authentication method:
import quilt3
# Interactive login (for local development, notebooks)
quilt3.login() # Opens browser for OAuth/SSO
# OR use an API key (for automation, CI/CD, scripts)
import os
# QUILT_REGISTRY_URL is the `registryUrl` from your catalog's /config.json
quilt3.login_with_api_key(
os.environ["QUILT_API_KEY"],
registry_url=os.environ["QUILT_REGISTRY_URL"],
)
📚 Learn more: See the Authentication Guide for detailed setup instructions, best practices, and use cases.
import quilt3
# Browse available datasets (no auth needed for public data)
packages = list(quilt3.list_packages("s3://quilt-example"))
print(f"Found {len(packages)} public datasets")
# Load a sample dataset
pkg = quilt3.Package.browse("examples/hurdat", "s3://quilt-example")
print(pkg)
# Access a file (using pkg from previous step)
data_file = pkg["README_NF_QUILT.md"]
# get() returns the file's physical location (an S3 URI), not its contents
print(data_file.get())
# Read the file contents into memory as a string
content = data_file.get_as_string()
print(content)
import quilt3
import tempfile
import os
# Create a temporary file
with tempfile.NamedTemporaryFile(mode='w', delete=False, suffix='.txt') as f:
f.write("Hello, Quilt!")
temp_file = f.name
# Create a new package
new_pkg = quilt3.Package()
new_pkg.set("my_data.txt", temp_file)
new_pkg.set_meta({"description": "My first Quilt package"})
# Clean up
os.unlink(temp_file)
# Note: Pushing requires S3 credentials, so we'll just show the package
print(f"Package created with {len(new_pkg)} files")
Discover publicly available datasets:
Ready to dive deeper? Continue with the Mental Model to understand how Quilt organizes and manages your data.