Learn how to create your first stream using the Livepeer Python SDK.
Prerequisites
Install the SDK
pip install git+https://github.com/livepeer/livepeer-python.git
Initialize the SDK
import livepeer from livepeer.models import components lpClient = livepeer.Livepeer( api_key="<YOUR_BEARER_TOKEN_HERE>", )
Use the SDK
import livepeer from livepeer.models import components lpClient = livepeer.Livepeer( api_key="<YOUR_BEARER_TOKEN_HERE>", ) req = components.NewStreamPayload( name='test_stream', ) res = s.stream.create(req) if res.stream is not None: # handle response pass
Try it yourself
Was this page helpful?