Skip to main content
Version: 0.6

Core superduper usage

In this section we walk through how to perform the key operations with superduper. There are three key patterns C-A-E:

Connect

from superduper import superduper
db = superduper('<data-connection>')

Apply

db.apply(<ai_component>)

Package

<ai_component>.export('<path>')
from superduper import Template
template = Template(
'<template-name>',
component=<ai_component>,
substitutions={'<value_to_replace>': '<variable_name>', ...}
)

Execute

Execute a query:

query = db['table'].filter(...) # .select(...) | .outputs(...) | .like(...)
results = query.execute()

Use an installed Component:

component = db.load('<component>', '<identifier>')

component.<method>(*args, **kwargs)