Skip to main content

LiveKit SDK for Python

Python SDK to integrate LiveKit's real-time video, audio, and data capabilities into your Python applications using WebRTC. Designed for use with LiveKit Agents to build powerful voice AI apps.

See https://docs.livekit.io/ for more information.

Publishing pre-encoded video

Use EncodedVideoSource when an upstream encoder already provides compressed frames. The source uses the same native passthrough encoder as the Rust SDK; Python does not decode or re-encode the video.

from livekit import rtc

source = rtc.EncodedVideoSource(width=640, height=360)
track = rtc.LocalVideoTrack.create_video_track("camera", source)
await room.local_participant.publish_track(
    track,
    rtc.TrackPublishOptions(
        video_codec=rtc.VideoCodec.VP9,
        video_encoder=rtc.VideoEncoderBackend.ENCODER_BACKEND_PRE_ENCODED,
        simulcast=False,
    ),
)
# Supply each complete encoded frame at its playback time.
source.capture_frame(rtc.EncodedVideoFrame(
    data=encoded_vp9_frame,
    width=640,
    height=360,
    codec=rtc.VideoCodec.VP9,
    frame_type=rtc.EncodedFrameType.ENCODED_FRAME_KEY,
    timestamp_us=capture_timestamp_us,
))
feedback = source.take_feedback()
# Forward feedback.keyframe_requested and feedback.rate_control to your encoder.
# At shutdown, unpublish the track and release the source:
await room.local_participant.unpublish_track(track.sid)
await source.aclose()

Supported codecs are H.264, H.265, VP8, VP9 and AV1, subject to receiver support. Submit complete access units (Annex B for H.264/H.265), not WebM/MP4 container bytes or RTP packets. A container must first be demuxed; demuxing extracts compressed frames and does not reconstruct pixels. The codec must match the publication and stay fixed, and simulcast must be disabled.

The caller controls pacing and handles keyframe and bitrate feedback. In particular, a prerecorded file cannot generate a new keyframe on demand for a late subscriber or after packet loss. WebM's auxiliary alpha data is not part of the VP9 color access unit and is not transported by this API.

Metadata

Release files for livekit 1.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for livekit 1.3.0
File Size Uploaded Provenance Actions
livekit-1.3.0.tar.gz 404.6 kB With provenance Details for livekit-1.3.0.tar.gz

Built distributions (wheels)

Table of built distributions (wheels) for livekit 1.3.0
File Actions
livekit-1.3.0-py3-none-win_arm64.whl Python 3 none Windows ARM64 Details for livekit-1.3.0-py3-none-win_arm64.whl
livekit-1.3.0-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details for livekit-1.3.0-py3-none-win_amd64.whl
livekit-1.3.0-py3-none-manylinux_2_28_x86_64.whl Python 3 none Linux glibc 2.28+ x86-64 Details for livekit-1.3.0-py3-none-manylinux_2_28_x86_64.whl
livekit-1.3.0-py3-none-manylinux_2_28_aarch64.whl Python 3 none Linux glibc 2.28+ ARM64 Details for livekit-1.3.0-py3-none-manylinux_2_28_aarch64.whl
livekit-1.3.0-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details for livekit-1.3.0-py3-none-macosx_11_0_arm64.whl
livekit-1.3.0-py3-none-macosx_10_15_x86_64.whl Python 3 none macOS 10.15+ x86-64 Details for livekit-1.3.0-py3-none-macosx_10_15_x86_64.whl

Total release size: 61.3 MB

Release files / livekit-1.3.0.tar.gz

Download URL livekit-1.3.0.tar.gz
Size 404.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a40a72a20c4a38e6e8ac75695568f862b193c1c5a840a413e37bfa481bf336dc
BLAKE2b-256 checksum
How to use checksums
4db051a0f0726117b3010081951d28a7447c46a856c7693e2894e6045daf74a6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / livekit-1.3.0-py3-none-win_arm64.whl

Download URL livekit-1.3.0-py3-none-win_arm64.whl
Size 9.0 MB
Tags Python 3 Windows ARM64
SHA-256 checksum
How to use checksums
8e0ae148e53d0c9a493260acbf8361654e5e594b32862c731c731205c7090273
BLAKE2b-256 checksum
How to use checksums
d6c3605165052aea779f91553d213430e431cd316ee6fd6c5f80c2ad6a02bbb8
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / livekit-1.3.0-py3-none-win_amd64.whl

Download URL livekit-1.3.0-py3-none-win_amd64.whl
Size 10.9 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
46db69d8adcf94058d5b37c6a24878ba327563d2cb6a8287f7dcddc93b1d2194
BLAKE2b-256 checksum
How to use checksums
049f64e1887d197cda7a3828e2d79dc1210b457090eb8bf9f1815c4f92560200
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / livekit-1.3.0-py3-none-manylinux_2_28_x86_64.whl

Download URL livekit-1.3.0-py3-none-manylinux_2_28_x86_64.whl
Size 11.4 MB
Tags Linux glibc 2.28+ x86-64 Python 3
SHA-256 checksum
How to use checksums
dc369f687b8a7c21e233a622a3c3e333c7c7a44d094472d33a2a422f22137484
BLAKE2b-256 checksum
How to use checksums
be850c59fbba7180b4a031f2d74f00daa5df1dc061825532ce59cb6fb5ea2820
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / livekit-1.3.0-py3-none-manylinux_2_28_aarch64.whl

Download URL livekit-1.3.0-py3-none-manylinux_2_28_aarch64.whl
Size 10.2 MB
Tags Linux glibc 2.28+ ARM64 Python 3
SHA-256 checksum
How to use checksums
e8e60f88925b812adb06adb73e5e3b1c667c401b019b6213a9bac81e0328b3b3
BLAKE2b-256 checksum
How to use checksums
4a2dd01010364e83cc9700fd60496221adbcedbe3533adba7c0c979a970ae0d2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / livekit-1.3.0-py3-none-macosx_11_0_arm64.whl

Download URL livekit-1.3.0-py3-none-macosx_11_0_arm64.whl
Size 9.1 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
2028e2c93537142e1aaf19bdce4ee3bf699fc629227ab88375818695a202c7c2
BLAKE2b-256 checksum
How to use checksums
6526b284e6c7163ec09b40cb720ad8143ce2e6fcdf5032a3a152416433cf9896
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Release files / livekit-1.3.0-py3-none-macosx_10_15_x86_64.whl

Download URL livekit-1.3.0-py3-none-macosx_10_15_x86_64.whl
Size 10.4 MB
Tags Python 3 macOS 10.15+ x86-64
SHA-256 checksum
How to use checksums
e855de7277cf78fb0dce9da3e18f4627fce7300accd295581823cd3d78065cf7
BLAKE2b-256 checksum
How to use checksums
93a4d4bc73a07d6cce4031ac06cceb314f1e3bf34e5c38a1c4037312fddb85ee
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

Security for livekit 1.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

All 7 files in this release have been uploaded with provenance metadata.

Select from 7 files

Attestation for livekit-1.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 16, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

1.3.0 This release

7 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page