Space Duck Python SDK Reference

Agent Types SDK Changelog Skill Versions

spaceduck.py

This page documents the public functions available in the spaceduck.py client.

get_metrics()

def get_metrics():

Returns a dictionary of metrics.

list_connections()

def list_connections(duckling_id, beak_key):

Returns a list of connections for a given duckling.

peck(requester_id, target_email, purpose)

def peck(requester_id, target_email, purpose):

Initiates a peck request.

approve_peck(peck_id, otp)

def approve_peck(peck_id, otp):

Approves a peck request with an OTP.

rotate_key(spaceduck_id, duckling_id)

def rotate_key(spaceduck_id, duckling_id):

Rotates the Beak Key for a given spaceduck.

my_cert(beak_key)

def my_cert(beak_key):

Retrieves the certificate for a given Beak Key.