Python SDK
Install from PyPI:
pip install scrift
Package: pypi.org/project/scrift
Quick example
from scrift import Scrift
client = Scrift(api_key="YOUR_API_KEY")
# Get a brand
brand = client.catalog.get("stripe")
print(brand.name) # Stripe
print(brand.brand_color) # #635BFF
print(brand.dark_mode_color)
# List brands
result = client.catalog.list(limit=20)
for item in result.items:
print(item.slug, item.name)
# Search
results = client.catalog.search("github")
# Batch lookup
batch = client.catalog.batch(["stripe", "github", "vercel"])
Source: github.com/phazeo/scrift-python