Learn how to create your first stream using the Livepeer Python SDK.
Prerequisites
Install the SDK
pip install livepeer
Initialize the SDK
import livepeer from livepeer.models import operations lpClient = livepeer.SDK( api_key="", # Your API key )
Use the SDK
import livepeer from livepeer.models import components lpClient = livepeer.SDK( api_key="", ) req = components.NewStreamPayload( name='test_stream' ) res = lpClient.stream.create(req) if res.data is not None: # handle response pass
Was this page helpful?