Generate SDK

Generate the Python client based on your suga.yaml:
suga.yaml
buckets:
  image:
    access:
      app:
        - read
        - write
suga generate --python --python-out ./suga_gen
For all available options, see the suga generate command documentation.

Import

from suga_gen.client import SugaClient

Usage

# Initialize client
client = SugaClient()

# Access your resources (names from your suga.yaml)
client.image.write("file.txt", b"data")
content = client.image.read("file.txt")

Available Resources