Common Operations

Code examples for frequent API operations.

Setup

Python SDK Setup

from kernel import KernelClient
import os

# Initialize client with token
client = KernelClient(token=os.environ["KERNEL_TOKEN"])

# Or with explicit base URL
client = KernelClient(
    token=os.environ["KERNEL_TOKEN"],
    base_url="https://kv2.dev.asimov.io"
)

Constructs

List Constructs

Get Construct Details

Create Construct

Update Construct

Export Construct

Parts

List Parts

Create Part

Search Parts

Repositories

List Repositories

Create Repository

Simulations

Run Simulation

Check Run Status

Codon Optimization

Optimize Sequence

Error Handling

Basic Error Handling

Rate Limit Handling

Batch Operations

Bulk Export

Bulk Create

Next Steps

Last updated