Merge pull request #4225 from pipecat-ai/aleix/transport-and-other-deprecations

Remove deprecated transport module aliases and sync package
This commit is contained in:
Aleix Conchillo Flaqué
2026-04-01 19:43:22 -07:00
committed by GitHub
17 changed files with 2 additions and 257 deletions

View File

@@ -0,0 +1 @@
- ⚠️ Removed deprecated `pipecat.sync` package. Use `pipecat.utils.sync` instead.

View File

@@ -0,0 +1 @@
- ⚠️ Removed deprecated `pipecat.transports.services` and `pipecat.transports.network` module aliases. Update imports to use `pipecat.transports.daily.transport`, `pipecat.transports.livekit.transport`, `pipecat.transports.websocket.*`, `pipecat.transports.webrtc.*`, and `pipecat.transports.daily.utils` respectively.

View File

@@ -1,17 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Base notifier interface for Pipecat."""
import warnings
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Package pipecat.sync is deprecated, use pipecat.utils.sync instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,17 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Event-based notifier implementation using asyncio Event primitives."""
import warnings
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Package pipecat.sync is deprecated, use pipecat.utils.sync instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""FastAPI WebSocket transport implementation for Pipecat.
This module provides WebSocket-based transport for real-time audio/video streaming
using FastAPI and WebSocket connections. Supports binary and text serialization
with configurable session timeouts and WAV header generation.
"""
import warnings
from pipecat.transports.websocket.fastapi import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.network.fastapi_websocket` is deprecated, "
"use `pipecat.transports.websocket.fastapi` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Small WebRTC transport implementation for Pipecat.
This module provides a WebRTC transport implementation using aiortc for
real-time audio and video communication. It supports bidirectional media
streaming, application messaging, and client connection management.
"""
import warnings
from pipecat.transports.smallwebrtc.transport import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.network.small_webrtc` is deprecated, "
"use `pipecat.transports.smallwebrtc.transport` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Small WebRTC connection implementation for Pipecat.
This module provides a WebRTC connection implementation using aiortc,
with support for audio/video tracks, data channels, and signaling
for real-time communication applications.
"""
import warnings
from pipecat.transports.smallwebrtc.connection import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.network.webrtc_connection` is deprecated, "
"use `pipecat.transports.smallwebrtc.connection` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""WebSocket client transport implementation for Pipecat.
This module provides a WebSocket client transport that enables bidirectional
communication over WebSocket connections, with support for audio streaming,
frame serialization, and connection management.
"""
import warnings
from pipecat.transports.websocket.client import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.network.websocket_client` is deprecated, "
"use `pipecat.transports.websocket.client` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""WebSocket server transport implementation for Pipecat.
This module provides WebSocket server transport functionality for real-time
audio and data streaming, including client connection management, session
handling, and frame serialization.
"""
import warnings
from pipecat.transports.websocket.server import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.network.websocket_server` is deprecated, "
"use `pipecat.transports.websocket.server` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Daily transport implementation for Pipecat.
This module provides comprehensive Daily video conferencing integration including
audio/video streaming, transcription, recording, dial-in/out functionality, and
real-time communication features.
"""
import warnings
from pipecat.transports.daily.transport import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.services.daily` is deprecated, "
"use `pipecat.transports.daily.transport` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,23 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Daily REST Helpers.
Methods that wrap the Daily API to create rooms, check room URLs, and get meeting tokens.
"""
import warnings
from pipecat.transports.daily.utils import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.services.helpers.daily_rest` is deprecated, "
"use `pipecat.transports.daily.utils` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""LiveKit transport implementation for Pipecat.
This module provides comprehensive LiveKit real-time communication integration
including audio streaming, data messaging, participant management, and room
event handling for conversational AI applications.
"""
import warnings
from pipecat.transports.livekit.transport import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.services.livekit` is deprecated, "
"use `pipecat.transports.livekit.transport` instead.",
DeprecationWarning,
stacklevel=2,
)

View File

@@ -1,25 +0,0 @@
#
# Copyright (c) 2024-2026, Daily
#
# SPDX-License-Identifier: BSD 2-Clause License
#
"""Tavus transport implementation for Pipecat.
This module provides integration with the Tavus platform for creating conversational
AI applications with avatars. It manages conversation sessions and provides real-time
audio/video streaming capabilities through the Tavus API.
"""
import warnings
from pipecat.transports.tavus.transport import *
with warnings.catch_warnings():
warnings.simplefilter("always")
warnings.warn(
"Module `pipecat.transports.services.tavus` is deprecated, "
"use `pipecat.transports.tavus.transport` instead.",
DeprecationWarning,
stacklevel=2,
)