Skip to main content
The Product Service in the Galtea SDK allows you to manage products that you want to evaluate. This Service is exposed by the galtea.products object.
Remember that we will be using the galtea object. More information here.
It is not supported to create product from the sdk, therefore you need to do this from the dashboard.

Quick Example

from galtea import Galtea

galtea = Galtea(api_key="YOUR_API_KEY")

# List all products
products = galtea.products.list()
print(f"Total products: {len(products)}")

for product in products:
    print(f"- {product.name} (ID: {product.id})")

# Get a specific product by ID
product = galtea.products.get(id="YOUR_PRODUCT_ID")
print(f"Product: {product.name}")
print(f"Description: {product.description}")

# Get product by name
product = galtea.products.get_by_name(name="My Product")
print(f"Found: {product.name}")
Products must be created through the Galtea Dashboard. The SDK provides read-only access.

Service Methods

Product

A functionality or service being evaluated