Prerequisites
To get the most out of this guide, you’ll need to:
Use the SDK
Now that you have the SDK installed and initialized, you can use it in your app.
Let’s create a stream.
Try it yourself
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?