title | description | icon |
---|---|---|
Python |
Learn how to create your first stream using the Livepeer Python SDK. |
python |
- [Create an API key](https://livepeer.studio/dashboard/developers/api-keys)
Get the Livepeer Python SDK.
pip install git+https://github.com/livepeer/livepeer-python.git
The first step is to initialize the SDK with your Livepeer Studio API key.
import livepeer
from livepeer.models import components
lpClient = livepeer.Livepeer(
api_key="<YOUR_BEARER_TOKEN_HERE>",
)
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
Checkout Livepeer API Reference to learn more about the Livepeer API and the Javascript SDK.